shish 5 лет назад
Родитель
Сommit
c20a629802
3 измененных файлов с 8 добавлено и 4 удалено
  1. 2 2
      app/pt/controllers/WxController.php
  2. 2 2
      app/pt/controllers/WxOpenController.php
  3. 4 0
      sql.sql

+ 2 - 2
app/pt/controllers/WxController.php

@@ -48,8 +48,8 @@ class WxController extends PublicController
         if (isset($get['appId']) == false || empty($get['appId'])) {
             util::stop('没有取到公众号的appId');
         }
-        $weixinSecret = Yii::getAlias("@vendor/weixinSecret");
-        require_once($weixinSecret . '/wxBizMsgCrypt.php');
+        $wxSecret = Yii::getAlias("@vendor/weixinSecret");
+        require_once($wxSecret . '/wxBizMsgCrypt.php');
         $appId = $get['appId'];//公众号appId
         $encryptMsg = $postData;
         //取开放平台信息

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

@@ -419,8 +419,8 @@ class WxOpenController extends PublicController
         if (isset ($openData) == false || empty($openData)) {
             util::stop('has no post data');
         }
-        $weixinSecret = Yii::getAlias("@vendor/weixinSecret");
-        require_once($weixinSecret . '/wxBizMsgCrypt.php');
+        $wxSecret = Yii::getAlias("@vendor/weixinSecret");
+        require_once($wxSecret . '/wxBizMsgCrypt.php');
         $get = Yii::$app->request->get();
         $encryptMsg = $openData;
         $openId = configDict::getConfig('openId');

+ 4 - 0
sql.sql

@@ -1,3 +1,7 @@
+1.补充供货商的wxopen信息 包括appSecret style = 2 其它内容参考开放平台里的数据
+2.api.pt.hzghd.com nginx要指向到pt目录 并且开通https
+3.api.shop.hzghd.com 指向到ghs目录 并且开通https
+
 先确认app模块下的hd ghs pt里的runtime有没创建成功
 
 CREATE TABLE xhItem(