| xqd
@@ -51,7 +51,7 @@ class PayController extends Controller
|
|
|
if ($validator->fails()) {
|
|
|
return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
|
|
|
}
|
|
|
- $userAuth = Auth('api')->user();
|
|
|
+ /* // $userAuth = Auth('api')->user();
|
|
|
$money = $request->input('price');
|
|
|
$trade_no = 'Pay'.date('YmdHis').rand(1000,9999);
|
|
|
|
| xqd
@@ -66,9 +66,9 @@ class PayController extends Controller
|
|
|
'openid' => $userAuth->openid
|
|
|
]);
|
|
|
dd($result);
|
|
|
+*/
|
|
|
|
|
|
-
|
|
|
- if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
|
|
|
+ /* if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
|
|
|
$payment = Factory::payment($this->options());
|
|
|
$jssdk = $payment->jssdk;
|
|
|
|
| xqd
@@ -79,7 +79,7 @@ class PayController extends Controller
|
|
|
$msg = "签名失败,请稍后再试!";
|
|
|
|
|
|
return $this->api(compact('msg'));
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
|