|
@@ -42,7 +42,6 @@ class WeChatPay extends Controller
|
|
|
'trade_type' => $trade_type, // 请对应换成你的支付方式对应的值类型
|
|
|
'openid' => $openid,
|
|
|
];
|
|
|
- var_dump($parameter);
|
|
|
switch ($trade_type){
|
|
|
case 'JSAPI':
|
|
|
$app = Factory::payment(config('app.wx_pay'));
|
|
@@ -63,7 +62,6 @@ class WeChatPay extends Controller
|
|
|
if(in_array($trade_type ,['JSAPI'])) $parameter['openid'] = $openid;
|
|
|
if(in_array($trade_type ,['MWEB'])) $parameter['spbill_create_ip'] = request()->ip();
|
|
|
$result = $app->order->unify($parameter);
|
|
|
- var_dump($result);
|
|
|
$jssdk = $app->jssdk;
|
|
|
if($trade_type == 'APP') {
|
|
|
$config = $jssdk->appConfig($result['prepay_id']);
|