chenxiqiang 6 роки тому
джерело
коміт
4ffdb0a750

+ 3
- 2
manage-server/app/Http/Controllers/PaymentController.php Переглянути файл

35
 
35
 
36
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
36
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
37
                 //第二次签名
37
                 //第二次签名
38
-                $result = $app->jssdk->appConfig($result['prepay_id']);
38
+                //$result = $app->jssdk->appConfig($result['prepay_id']);
39
+                $config = $app->configForAppPayment($result['prepay_id']);
39
                 return response()->json([
40
                 return response()->json([
40
                     "status" => 0,
41
                     "status" => 0,
41
                     "code" => "success",
42
                     "code" => "success",
42
-                    "msg" => $result
43
+                    "msg" => $config
43
                 ]);
44
                 ]);
44
             } else {
45
             } else {
45
                 return response()->json([
46
                 return response()->json([

Loading…
Відмінити
Зберегти