Authored by 郝肖肖

客户端类型 验证 plusstar

@@ -128,9 +128,14 @@ class PlusstarData @@ -128,9 +128,14 @@ class PlusstarData
128 $result['getNewProduct'] = array(); 128 $result['getNewProduct'] = array();
129 $result['getUidProductFav'] = array(); 129 $result['getUidProductFav'] = array();
130 $result['getArticleByBrand'] = array(); 130 $result['getArticleByBrand'] = array();
131 - 131 +
  132 + $clientType = 'iphone';
132 // 客户端类型 133 // 客户端类型
133 - $clientType = $isApp ? 'iphone' : 'h5'; 134 + if (stristr($_SERVER['HTTP_USER_AGENT'], 'android')) {
  135 + $clientType = 'android';
  136 + }
  137 + $clientType = $isApp ? $clientType : 'h5';
  138 +
134 $isUidOk = $uid && is_numeric($uid); 139 $isUidOk = $uid && is_numeric($uid);
135 $key = CacheConfig::KEY_ACTION_GUANG_PLUSTAR_DATA . sprintf('_%s_%s_%s', $id, $clientType, $gender); 140 $key = CacheConfig::KEY_ACTION_GUANG_PLUSTAR_DATA . sprintf('_%s_%s_%s', $id, $clientType, $gender);
136 141