-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
关于小程序退款报appid参数长度不够的bug #43
Comments
晚些时候将修复。 感谢您的支持! |
如果您线上环境 php>=7.0 ,您可使用 v1.x 版本将在晚些时候修复 感谢您的支持! |
v1.x 版本已修复。 如果需要退款小程序的订单,请在 $config_biz 中传入"miniapp" => true。可参考 v2.x 版本的使用方法。 感谢您的支持! |
Closed
Closed
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
问题描述
使用这个包时,对小程序的小程序的订单退款时会报appid参数长度不够,不管设置成appid 还是 miniapp_id
代码
protected function getResult($end_point, $cert = false)
{
$this->config['sign'] = $this->getSign($this->config);
报错详情
getResult error:appid参数长度有误
参考解决办法
wechat.php 文件的够着函数接收 小程序的appid
$this->config = [
'appid' =>empty($this->user_config->get('app_id', ''))?$this->user_config->get('miniapp_id', ''):$this->user_config->get('app_id', ''),
'mch_id' => $this->user_config->get('mch_id', ''),
'nonce_str' => $this->createNonceStr(),
'sign_type' => 'MD5',
'notify_url' => $this->user_config->get('notify_url', ''),
'trade_type' => $this->getTradeType(),
];
The text was updated successfully, but these errors were encountered: