Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信下载账单报错。 #1021

Open
ChenRuihua opened this issue Aug 26, 2024 · 2 comments
Open

微信下载账单报错。 #1021

ChenRuihua opened this issue Aug 26, 2024 · 2 comments

Comments

@ChenRuihua
Copy link

ChenRuihua commented Aug 26, 2024

包版本号

3.7.1

问题描述

你的代码

`
$plugin = $pay->mergeCommonPlugins([GetTradePlugin::class]); //申请交易账单
$params = [
'bill_date' => '2024-08-25',
'bill_type' => 'ALL',
];
$result = Pay::wechat()->pay($plugin, $params);
dump($result);

    $plugin = $pay->mergeCommonPlugins([DownloadPlugin::class]);
    $params = [
        'download_url' => $result->download_url,
        //'hash_type' => $result->hash_type,
        //'hash_value' => $result->hash_value,
    ];
    $bill = $pay->pay($plugin, $params);
    dump($bill);

`

报错详情

iShot_2024-08-26_20 36 29

sdk 日志

nginx/apache 日志

涉及到 异步通知、同步通知 的问题,请贴出来

@ChenRuihua
Copy link
Author

` $plugin = $pay->mergeCommonPlugins([DownloadPlugin::class]);
$params = [
'download_url' => $result->download_url,
//'hash_type' => $result->hash_type,
//'hash_value' => $result->hash_value,
//'download_verify' => false,
];

    $pay->pay(
        [
            StartPlugin::class,
            DownloadPlugin::class,
            AddPayloadBodyPlugin::class,
            AddPayloadSignaturePlugin::class,
            AddRadarPlugin::class,
            ResponsePlugin::class,
            ParserPlugin::class
        ],
        $params
    );

`
这样写也不行,报错
Yansongda\Artful\Exception\InvalidResponseException
微信返回状态码异常,请检查参数是否错误

@yansongda
Copy link
Owner

有办法帮忙调试看看么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants