...
|
...
|
@@ -32,14 +32,14 @@ class IndexData |
|
|
* @param string $client_type
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function getResourceData($content_code, $client_type = 'android')
|
|
|
public static function getResourceData($content_code, $client_type = 'web')
|
|
|
{
|
|
|
// 构建必传参数
|
|
|
$params = Yohobuy::param();
|
|
|
$params['content_code'] = $content_code;
|
|
|
$params['client_type'] = $client_type;
|
|
|
$params['private_key'] = Yohobuy::$privateKeyList[$client_type];
|
|
|
$params['client_secret'] = Sign::getSign($params);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::SERVICE_URL . self::URL_OPERATIONS_RESOURCE_GET, $params);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|