shish пре 5 година
родитељ
комит
e0d389679d
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      app/ghs/controllers/AdminController.php
  2. 1 1
      app/ghs/controllers/AuthController.php

+ 2 - 2
app/ghs/controllers/AdminController.php

@@ -129,7 +129,7 @@ class AdminController extends BaseController
 		if (empty($miniOpenId)) {
 			util::fail('没有找到管理员信息(miniOpenId)');
 		}
-		$cacheKey = 'SHOP_MINI_SESSION_KEY_' . $miniOpenId;
+		$cacheKey = 'GHS_SHOP_MINI_SESSION_KEY_' . $miniOpenId;
 		$sessionKey = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
 		$wxMiniSecret = Yii::getAlias("@vendor/weixinMiniSecret");
 		require_once($wxMiniSecret . '/wxBizDataCrypt.php');
@@ -161,7 +161,7 @@ class AdminController extends BaseController
 		if (empty($miniOpenId)) {
 			util::fail('没有找到管理员信息(miniOpenId)');
 		}
-		$cacheKey = 'SHOP_MINI_SESSION_KEY_' . $miniOpenId;
+		$cacheKey = 'GHS_SHOP_MINI_SESSION_KEY_' . $miniOpenId;
 		$sessionKey = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
 		if (empty($sessionKey)) {
 			util::fail('sesstion key empty');

+ 1 - 1
app/ghs/controllers/AuthController.php

@@ -192,7 +192,7 @@ class AuthController extends PublicController
             Yii::info(json_encode($arr));
             util::fail('没有获取到小程序openId');
         }
-        $cacheKey = 'SHOP_MINI_SESSION_KEY_' . $openid;
+        $cacheKey = 'GHS_SHOP_MINI_SESSION_KEY_' . $openid;
         Yii::$app->redis->executeCommand('SET', [$cacheKey, $sessionKey]);
         //用户来源
         $userSource = UserClass::$userSourceId['mini']['name'];