lyhzzz преди 2 години
родител
ревизия
3ac8d03728
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/main/java/com/fdkankan/ucenter/service/impl/LoginService.java

+ 2 - 2
src/main/java/com/fdkankan/ucenter/service/impl/LoginService.java

@@ -61,10 +61,10 @@ public class LoginService {
     private FdkkClient fdkkClient;
 
     public Object login(LoginParam param) {
-        if(environment.equals("test")){
+        if(environment.equals("test")){ //测试环境登录
             JSONObject jsonObject = fdkkClient.fdkkLogin(param);
             if(jsonObject.getInteger("code") != 0){
-                throw new BusinessException(jsonObject.getInteger("code"),jsonObject.getString("msg");
+                throw new BusinessException(jsonObject.getInteger("code"),jsonObject.getString("msg"));
             }
             return fdkkClient.fdkkLogin(param).getJSONObject("data");
         }