Showing
1 changed file
with
3 additions
and
0 deletions
@@ -159,11 +159,14 @@ class RegData | @@ -159,11 +159,14 @@ class RegData | ||
159 | */ | 159 | */ |
160 | public static function regMobile($area, $mobile, $password) | 160 | public static function regMobile($area, $mobile, $password) |
161 | { | 161 | { |
162 | + $clientType = 'web'; | ||
162 | $param = Yohobuy::param(); | 163 | $param = Yohobuy::param(); |
163 | $param['method'] = 'app.passport.register'; | 164 | $param['method'] = 'app.passport.register'; |
164 | $param['area'] = $area; | 165 | $param['area'] = $area; |
165 | $param['profile'] = $mobile; | 166 | $param['profile'] = $mobile; |
166 | $param['password'] = $password; | 167 | $param['password'] = $password; |
168 | + $param['client_type'] = $clientType; | ||
169 | + $param['private_key'] = Yohobuy::$privateKeyList[$clientType]; | ||
167 | $param['client_secret'] = Sign::getSign($param); | 170 | $param['client_secret'] = Sign::getSign($param); |
168 | 171 | ||
169 | return Yohobuy::post(Yohobuy::API_URL, $param); | 172 | return Yohobuy::post(Yohobuy::API_URL, $param); |
-
Please register or login to post a comment