Authored by whb

缓存时间

... ... @@ -22,7 +22,7 @@ class IndexData
$params = array('parent_id'=>'','platform'=>'web',
'status'=> $status,'fields'=> $fields
);
return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_OPERATIONS_CATEGORY,'getCategory', $params, true);
return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_OPERATIONS_CATEGORY,'getCategory', $params, 3600);
}
/**
... ... @@ -40,7 +40,7 @@ class IndexData
$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, true);
return Yohobuy::get(Yohobuy::SERVICE_URL . self::URL_OPERATIONS_RESOURCE_GET, $params, 3600);
}
/**
... ...
... ... @@ -20,7 +20,7 @@ class UserData extends \LibModels\Wap\Home\UserData
$param['debug'] = 'Y';
$param['screen_size'] = '320x568';
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(Yohobuy::API_URL, $param, true);
return Yohobuy::get(Yohobuy::API_URL, $param, 3600);
}
/**
... ... @@ -37,6 +37,6 @@ class UserData extends \LibModels\Wap\Home\UserData
$param['debug'] = 'Y';
$param['screen_size'] = '320x568';
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(Yohobuy::API_URL, $param, true);
return Yohobuy::get(Yohobuy::API_URL, $param, 3600);
}
}
\ No newline at end of file
... ...
... ... @@ -16,7 +16,7 @@ class BackData extends \LibModels\Wap\Passport\BackData
$param['method'] = 'app.register.checkCodeValid';
$param['code'] = $code;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(Yohobuy::API_URL, $param, true); // 缓存1小时
return Yohobuy::get(Yohobuy::API_URL, $param, 3600); // 缓存1小时
}
/**
... ...