Authored by hf

code review by zheng.zhang: do yuanxiao chouqian huodong

... ... @@ -21,17 +21,17 @@ class UserData
* 个人详情数据
*
* @param int $uid 用户ID
* @param int $udid 客户端唯一标识
* @param int|false $cache 是否使用缓存
* @return array 个人详情接口返回的数据
*/
public static function userData($uid)
public static function userData($uid, $cache = 3600)
{
$param = Yohobuy::param();
$param['method'] = 'app.passport.profile';
$param['uid'] = $uid;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(Yohobuy::API_URL, $param, 3600); // 缓存1小时
return Yohobuy::get(Yohobuy::API_URL, $param, $cache); // 缓存1小时
}
/**
... ...