Authored by whb

regiter添加shoppingkey

@@ -167,11 +167,11 @@ class RegData @@ -167,11 +167,11 @@ class RegData
167 $param['profile'] = $mobile; 167 $param['profile'] = $mobile;
168 $param['password'] = $password; 168 $param['password'] = $password;
169 $param['client_type'] = $clientType; 169 $param['client_type'] = $clientType;
170 - $param['private_key'] = Yohobuy::$privateKeyList[$clientType];  
171 - $param['client_secret'] = Sign::getSign($param);  
172 if (!empty($shoppingKey)) { 170 if (!empty($shoppingKey)) {
173 $param['shopping_key'] = $shoppingKey; 171 $param['shopping_key'] = $shoppingKey;
174 } 172 }
  173 + $param['private_key'] = Yohobuy::$privateKeyList[$clientType];
  174 + $param['client_secret'] = Sign::getSign($param);
175 175
176 return Yohobuy::post(Yohobuy::API_URL, $param); 176 return Yohobuy::post(Yohobuy::API_URL, $param);
177 } 177 }