Authored by whb

PC的注册添加clientype=web

... ... @@ -159,11 +159,14 @@ class RegData
*/
public static function regMobile($area, $mobile, $password)
{
$clientType = 'web';
$param = Yohobuy::param();
$param['method'] = 'app.passport.register';
$param['area'] = $area;
$param['profile'] = $mobile;
$param['password'] = $password;
$param['client_type'] = $clientType;
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::post(Yohobuy::API_URL, $param);
... ...