...
|
...
|
@@ -181,7 +181,7 @@ class Store extends Api |
|
|
'openid' => Db::name('third')->where('user_id',$this->auth->id)->value('openid'),
|
|
|
];
|
|
|
$order = new Order($attributes);
|
|
|
$order_result = $payment->pay($order);
|
|
|
$order_result = $payment->prepare($order);
|
|
|
if($order_result['return_code'] == 'SUCCESS' && $order_result['result_code'] == 'SUCCESS') {
|
|
|
$prepayId = $order_result->prepay_id;
|
|
|
$pay_data = $payment->configForJSSDKPayment($prepayId);
|
...
|
...
|
@@ -470,7 +470,7 @@ class Store extends Api |
|
|
'openid' => Db::name('third')->where('user_id',$this->auth->id)->value('openid'),
|
|
|
];
|
|
|
$order = new Order($attributes);
|
|
|
$order_result = $payment->pay($order);
|
|
|
$order_result = $payment->prepare($order);
|
|
|
if($order_result['return_code'] == 'SUCCESS' && $order_result['result_code'] == 'SUCCESS') {
|
|
|
$prepayId = $order_result->prepay_id;
|
|
|
$pay_data = $payment->configForJSSDKPayment($prepayId);
|
...
|
...
|
|