...
|
...
|
@@ -24,15 +24,21 @@ class LoginData |
|
|
* @param string $area 地区编号
|
|
|
* @param string $profile 邮箱或手机号
|
|
|
* @param string $password 密码
|
|
|
* @param string $shoppingKey 未登录用户唯一识别码, 默认为空
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function signin($area, $profile, $password)
|
|
|
public static function signin($area, $profile, $password, $shoppingKey = null)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'app.passport.signin';
|
|
|
$param['area'] = $area;
|
|
|
$param['profile'] = $profile;
|
|
|
$param['password'] = $password;
|
|
|
|
|
|
if (!empty($shoppingKey)) {
|
|
|
$param['shopping_key'] = $shoppingKey;
|
|
|
}
|
|
|
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
return Yohobuy::post(Yohobuy::API_URL, $param);
|
...
|
...
|
|