...
|
...
|
@@ -19,26 +19,12 @@ class GradeData |
|
|
* @param string $uid 用户id
|
|
|
* @return array 接口返回的会员等级数据
|
|
|
*/
|
|
|
public static function getGradeData($gender, $channel, $uid) {
|
|
|
$urlList = array();
|
|
|
public static function getGradeData($uid) {
|
|
|
//获取会员等级数据
|
|
|
$param = Yohobuy::param();
|
|
|
$param['yh_channel'] = $channel;
|
|
|
$param = array();
|
|
|
$param['uid'] = $uid;
|
|
|
$param['method'] = 'app.Passport.vip';
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['grade'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
|
|
|
|
|
|
//获取用户基本信息数据(用来得到username)
|
|
|
$param = Yohobuy::param();
|
|
|
$param['gender'] = $gender;
|
|
|
$param['uid'] = $uid;
|
|
|
$param['yh_channel'] = $channel;
|
|
|
$param['method'] = 'app.passport.profile';
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['userProfile'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
|
|
|
|
|
|
return Yohobuy::getMulti($urlList);
|
|
|
var_dump($param);
|
|
|
var_dump(Yohobuy::jsonPost(Yohobuy::API_URL_MYCENTER.'UserVipRest/getVipDetailInfo', $param));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|