mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
【程序目录】小程序支付提示优化
This commit is contained in:
parent
4a5a993d22
commit
86cc190063
@ -92,6 +92,9 @@ class PayServices
|
||||
return $pay->create($orderId, $price, $successAction, $body, '', ['openid' => $openid, 'isCode' => $isCode, 'pay_new_weixin_open' => (bool)sys_config('pay_new_weixin_open')]);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
if (strpos($e->getMessage(), 'api unauthorized rid') !== false) {
|
||||
throw new ApiException('请在微信支付配置中将小程序商户号选择改为商户号绑定');
|
||||
}
|
||||
throw new ApiException($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user