Browse Source

跨境商品支付接入

kevin 1 year ago
parent
commit
a4c706e05a
1 changed files with 4 additions and 4 deletions
  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.