Procházet zdrojové kódy

独立出二个开放平台

shish před 5 roky
rodič
revize
c20a629802

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

@@ -48,8 +48,8 @@ class WxController extends PublicController
         if (isset($get['appId']) == false || empty($get['appId'])) {
         if (isset($get['appId']) == false || empty($get['appId'])) {
             util::stop('没有取到公众号的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
         $appId = $get['appId'];//公众号appId
         $encryptMsg = $postData;
         $encryptMsg = $postData;
         //取开放平台信息
         //取开放平台信息

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

@@ -419,8 +419,8 @@ class WxOpenController extends PublicController
         if (isset ($openData) == false || empty($openData)) {
         if (isset ($openData) == false || empty($openData)) {
             util::stop('has no post data');
             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();
         $get = Yii::$app->request->get();
         $encryptMsg = $openData;
         $encryptMsg = $openData;
         $openId = configDict::getConfig('openId');
         $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有没创建成功
 先确认app模块下的hd ghs pt里的runtime有没创建成功
 
 
 CREATE TABLE xhItem(
 CREATE TABLE xhItem(