Browse Source

二个平台 参数

shish 5 năm trước cách đây
mục cha
commit
7e1cf6ee45
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      app/pt/controllers/WxOpenController.php

+ 3 - 2
app/pt/controllers/WxOpenController.php

@@ -415,15 +415,16 @@ class WxOpenController extends PublicController
 
     public function actionApi()
     {
+        $get = Yii::$app->request->get();
+        Yii::info('参数:'.json_encode($get));
+
         $openData = file_get_contents('php://input');
         if (isset ($openData) == false || empty($openData)) {
             util::stop('has no post data');
         }
         $wxSecret = Yii::getAlias("@vendor/weixinSecret");
         require_once($wxSecret . '/wxBizMsgCrypt.php');
-        $get = Yii::$app->request->get();
 
-        Yii::info('参数:'.json_encode($get));
 
         $encryptMsg = $openData;
         $openId = configDict::getConfig('openId');