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;
     private FdkkClient fdkkClient;
 
 
     public Object login(LoginParam param) {
     public Object login(LoginParam param) {
-        if(environment.equals("test")){
+        if(environment.equals("test")){ //测试环境登录
             JSONObject jsonObject = fdkkClient.fdkkLogin(param);
             JSONObject jsonObject = fdkkClient.fdkkLogin(param);
             if(jsonObject.getInteger("code") != 0){
             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");
             return fdkkClient.fdkkLogin(param).getJSONObject("data");
         }
         }