feat: 支付调试

master
yin5th 2023-09-26 16:34:05 +08:00
parent bbc8fc976c
commit 200f31aee9
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ class WeChatPayServer
}
//pc端
if ($order_source == Client_::pc) {
if (in_array($order_source, [Client_::pc, Client_::api])) {
$data = self::getNativeCode($result, $order);
}
@ -143,7 +143,7 @@ class WeChatPayServer
}
} catch (Exception $e) {
self::$error = '支付失败:' . $e->getMessage();
self::$error = '支付失败:' . $e->getMessage().$e->getFile().'--'.$e->getLine();
return false;
}
}