Authored by whb

资源位web

@@ -32,14 +32,14 @@ class IndexData @@ -32,14 +32,14 @@ class IndexData
32 * @param string $client_type 32 * @param string $client_type
33 * @return array 33 * @return array
34 */ 34 */
35 - public static function getResourceData($content_code, $client_type = 'android') 35 + public static function getResourceData($content_code, $client_type = 'web')
36 { 36 {
37 // 构建必传参数 37 // 构建必传参数
38 $params = Yohobuy::param(); 38 $params = Yohobuy::param();
39 $params['content_code'] = $content_code; 39 $params['content_code'] = $content_code;
40 $params['client_type'] = $client_type; 40 $params['client_type'] = $client_type;
  41 + $params['private_key'] = Yohobuy::$privateKeyList[$client_type];
41 $params['client_secret'] = Sign::getSign($params); 42 $params['client_secret'] = Sign::getSign($params);
42 -  
43 return Yohobuy::get(Yohobuy::SERVICE_URL . self::URL_OPERATIONS_RESOURCE_GET, $params); 43 return Yohobuy::get(Yohobuy::SERVICE_URL . self::URL_OPERATIONS_RESOURCE_GET, $params);
44 } 44 }
45 } 45 }