Authored by hf

do test login and register

@@ -31,6 +31,7 @@ class LoginData @@ -31,6 +31,7 @@ class LoginData
31 $param['area'] = $area; 31 $param['area'] = $area;
32 $param['profile'] = $profile; 32 $param['profile'] = $profile;
33 $param['password'] = $password; 33 $param['password'] = $password;
  34 + $param['client_secret'] = Sign::getSign($param);
34 35
35 return Yohobuy::post(Yohobuy::API_URL, $param); 36 return Yohobuy::post(Yohobuy::API_URL, $param);
36 } 37 }
@@ -46,6 +47,7 @@ class LoginData @@ -46,6 +47,7 @@ class LoginData
46 $param = Yohobuy::param(); 47 $param = Yohobuy::param();
47 $param['method'] = 'app.passport.profile'; 48 $param['method'] = 'app.passport.profile';
48 $param['uid'] = $uid; 49 $param['uid'] = $uid;
  50 + $param['client_secret'] = Sign::getSign($param);
49 51
50 return Yohobuy::get(Yohobuy::API_URL, $param); 52 return Yohobuy::get(Yohobuy::API_URL, $param);
51 } 53 }