Authored by hf

code review by hf: modify guang plusstar cache key add gender to unique

@@ -131,7 +131,7 @@ class PlusstarData @@ -131,7 +131,7 @@ class PlusstarData
131 // 客户端类型 131 // 客户端类型
132 $clientType = $isApp ? 'iphone' : 'h5'; 132 $clientType = $isApp ? 'iphone' : 'h5';
133 $isUidOk = $uid && is_numeric($uid); 133 $isUidOk = $uid && is_numeric($uid);
134 - $key = CacheConfig::KEY_ACTION_GUANG_PLUSTAR_DATA . strval($id) . $clientType; 134 + $key = CacheConfig::KEY_ACTION_GUANG_PLUSTAR_DATA . sprintf('_%s_%s_%s', $id, $clientType, $gender);
135 135
136 if (USE_CACHE) { 136 if (USE_CACHE) {
137 // 先尝试获取一级缓存(master), 有数据则直接返回. 137 // 先尝试获取一级缓存(master), 有数据则直接返回.