feat: 支付调试
parent
0c0b268a65
commit
fcfd9bc985
|
@ -121,12 +121,12 @@ class WeChatPayServer
|
|||
}
|
||||
|
||||
//pc端
|
||||
if (in_array($order_source, [Client_::pc, Client_::api])) {
|
||||
if (in_array($order_source, [Client_::pc])) {
|
||||
$data = self::getNativeCode($result, $order);
|
||||
}
|
||||
|
||||
//h5(非微信环境)
|
||||
if ($order_source == Client_::h5) {
|
||||
if (in_array($order_source, [Client_::h5, Client_::api])) {
|
||||
$redirect_url = request()->domain() . '/mobile/pages/user_order/user_order';
|
||||
$redirect_url = urlencode($redirect_url);
|
||||
$data = $result['mweb_url'] . '&redirect_url=' . $redirect_url;
|
||||
|
|
Loading…
Reference in New Issue