...
|
...
|
@@ -155,9 +155,10 @@ class RegData |
|
|
* @param string $area 地区号 如"86"
|
|
|
* @param string $mobile 手机号
|
|
|
* @param string $password 登录密码
|
|
|
* @param string $shoppingKey 未登录用户唯一识别码, 默认为空
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function regMobile($area, $mobile, $password)
|
|
|
public static function regMobile($area, $mobile, $password, $shoppingKey = '')
|
|
|
{
|
|
|
$clientType = 'web';
|
|
|
$param = Yohobuy::param();
|
...
|
...
|
@@ -166,9 +167,12 @@ class RegData |
|
|
$param['profile'] = $mobile;
|
|
|
$param['password'] = $password;
|
|
|
$param['client_type'] = $clientType;
|
|
|
if (!empty($shoppingKey)) {
|
|
|
$param['shopping_key'] = $shoppingKey;
|
|
|
}
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
|
|
|
return Yohobuy::post(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|