|
|
@@ -26,15 +26,15 @@ class CustomClass extends BaseClass
|
|
|
$userId = $user['id'];
|
|
|
$name = $user['name'] ?? '';
|
|
|
$mobile = $user['mobile'] ?? '';
|
|
|
- $key = self::getCustomCacheKey($sjId, $shopId, $userId);
|
|
|
- $currentId = Yii::$app->redis->executeCommand('GET', [$key]);
|
|
|
- if (!empty($currentId)) {
|
|
|
- $info = self::getById($currentId);
|
|
|
- if (!empty($info)) {
|
|
|
- $info['avatar'] = imgUtil::groupImg($info['avatar']);
|
|
|
- return $info;
|
|
|
- }
|
|
|
- }
|
|
|
+// $key = self::getCustomCacheKey($sjId, $shopId, $userId);
|
|
|
+// $currentId = Yii::$app->redis->executeCommand('GET', [$key]);
|
|
|
+// if (!empty($currentId)) {
|
|
|
+// $info = self::getById($currentId);
|
|
|
+// if (!empty($info)) {
|
|
|
+// $info['avatar'] = imgUtil::groupImg($info['avatar']);
|
|
|
+// return $info;
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
$info = self::getByCondition(['shopId' => $shopId, 'userId' => $userId]);
|
|
|
if (empty($info)) {
|
|
|
@@ -54,8 +54,8 @@ class CustomClass extends BaseClass
|
|
|
if (empty($info)) {
|
|
|
return $info;
|
|
|
}
|
|
|
- $id = $info['id'];
|
|
|
- Yii::$app->redis->executeCommand('SET', [$key, $id]);
|
|
|
+// $id = $info['id'];
|
|
|
+// Yii::$app->redis->executeCommand('SET', [$key, $id]);
|
|
|
$info['avatar'] = imgUtil::groupImg($info['avatar']);
|
|
|
return $info;
|
|
|
}
|