mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-09-17 17:26:40 +08:00
修复通道测试服务器报500错误
This commit is contained in:
parent
05c1b08e95
commit
dfb8edff22
@ -279,6 +279,8 @@ class PayController
|
||||
$action = isset($info['action']) ? $info['action'] : '';
|
||||
if ($action === 'mpay') {
|
||||
$data = json_decode($info['data'], true);
|
||||
if (!is_array($data)) return 200;
|
||||
if(!isset($data['aid']) || !isset($data['pid'])) return 202;
|
||||
$config = PayAccount::getAccountConfig($data['aid'], $data['pid']);
|
||||
$payclient_path = "\\payclient\\{$config['payclass']}";
|
||||
$Payclient = new $payclient_path($info, $config);
|
||||
|
Loading…
Reference in New Issue
Block a user