Explorar o código

跨境商品支付接入

kevin hai 1 ano
pai
achega
a4c706e05a
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      frontendApi/modules/v1/controllers/ShopController.php

+ 4 - 4
frontendApi/modules/v1/controllers/ShopController.php

@@ -765,18 +765,18 @@ class ShopController extends BaseController {
      * @throws \Exception
      * @throws \Exception
      */
      */
     public function actionUpopWebhook() {
     public function actionUpopWebhook() {
-        $request = Yii::$app->request;
-        LoggerTool::info(['actionUpopWebhook', $request]);
-
         if (\Yii::$app->request->isPost) {
         if (\Yii::$app->request->isPost) {
             $data = \Yii::$app->request->post();
             $data = \Yii::$app->request->post();
+            $type = 'post';
         } elseif (\Yii::$app->request->isGet) {
         } elseif (\Yii::$app->request->isGet) {
             $data = \Yii::$app->request->get();
             $data = \Yii::$app->request->get();
+            $type = 'get';
         } else {
         } else {
             $data = '.................';
             $data = '.................';
+            $type = '.................';
         }
         }
 
 
-        LoggerTool::info(['actionUpopWebhook', $data]);
+        LoggerTool::info(['actionUpopWebhook', $type, $data]);
 
 
 
 
         // 支付成功的webhook.
         // 支付成功的webhook.