|
@@ -62,6 +62,10 @@ public class LoginService {
|
|
|
|
|
|
public Object login(LoginParam param) {
|
|
|
if(environment.equals("test")){
|
|
|
+ JSONObject jsonObject = fdkkClient.fdkkLogin(param);
|
|
|
+ if(jsonObject.getInteger("code") != 0){
|
|
|
+ throw new BusinessException(jsonObject.getInteger("code"),jsonObject.getString("msg");
|
|
|
+ }
|
|
|
return fdkkClient.fdkkLogin(param).getJSONObject("data");
|
|
|
}
|
|
|
if (StringUtils.isEmpty(param.getPassword()) || StringUtils.isEmpty(param.getPhoneNum())){
|