|
@@ -145,12 +145,11 @@ class Box extends Base
|
|
|
'total_fee' => $total_fee,
|
|
|
'trade_type' => 'MWEB', // 请对应换成你的支付方式对应的值类型
|
|
|
]);
|
|
|
- dump($result);die;
|
|
|
if ($result['return_code']=='SUCCESS'){
|
|
|
$jssdk = $app->jssdk;
|
|
|
- $order1 = $jssdk->appConfig($result['prepay_id']);
|
|
|
+ $order1 = $jssdk->bridgeConfig($result['prepay_id']);
|
|
|
$retrun_data['order_no'] = $order_no;
|
|
|
- $retrun_data['pay'] = $order1;
|
|
|
+ $retrun_data['pay'] = json_decode($order1,true);
|
|
|
Db::commit();
|
|
|
}else{
|
|
|
$com=false;
|