kevin 1 год назад
Родитель
Сommit
a4c706e05a
1 измененных файлов с 4 добавлено и 4 удалено
  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
      */
     public function actionUpopWebhook() {
-        $request = Yii::$app->request;
-        LoggerTool::info(['actionUpopWebhook', $request]);
-
         if (\Yii::$app->request->isPost) {
             $data = \Yii::$app->request->post();
+            $type = 'post';
         } elseif (\Yii::$app->request->isGet) {
             $data = \Yii::$app->request->get();
+            $type = 'get';
         } else {
             $data = '.................';
+            $type = '.................';
         }
 
-        LoggerTool::info(['actionUpopWebhook', $data]);
+        LoggerTool::info(['actionUpopWebhook', $type, $data]);
 
 
         // 支付成功的webhook.