Authored by 周少峰

call test api

... ... @@ -106,8 +106,7 @@ class BindData
}
$param['client_secret'] = Sign::getSign($param);
// return Yohobuy::get(API_URL, $param);
return Yohobuy::get('http://devapi.yoho.cn:28078/', $param);
return Yohobuy::get(API_URL, $param);
}
/**
... ... @@ -133,8 +132,7 @@ class BindData
}
$param['client_secret'] = Sign::getSign($param);
// return Yohobuy::get(API_URL, $param);
return Yohobuy::get('http://devapi.yoho.cn:28078/', $param);
return Yohobuy::get(API_URL, $param);
}
/**
... ...
... ... @@ -249,7 +249,7 @@ class BindController extends AbstractAction
}
//$shoppingKey用于购物车信息同步
$shoppingKey = Helpers::getShoppingKeyByCookie();
$res = BindData::bindMobile($openId, $sourceType, $phoneNum, $areaCode, $password, $shoppingKey);
$res = BindData::bindMobile($openId, $sourceType, $phoneNum, $areaCode, $password, '', $shoppingKey);
if (!isset($res['code'])) {
break;
}
... ...