소스 검색

错误提示

lyhzzz 2 년 전
부모
커밋
54380a7f83
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      src/main/java/com/fdkankan/ucenter/controller/AuthLicenseController.java

+ 3 - 4
src/main/java/com/fdkankan/ucenter/controller/AuthLicenseController.java

@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.fdkankan.ucenter.common.ResultData;
 import com.fdkankan.ucenter.common.utils.AuthLicenseUtil;
 import com.fdkankan.ucenter.util.DateUserUtil;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.joda.time.DateTime;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -27,6 +28,7 @@ import java.util.Date;
  * @since 2022-11-22
  */
 @RestController
+@Slf4j
 @RequestMapping("/ucenter/authLicense")
 public class AuthLicenseController {
 
@@ -51,10 +53,7 @@ public class AuthLicenseController {
                 snInfo.set("sn", snPassWord);
             }
         }catch (Exception e){
-            jsonObject = new JSONObject();
-            JSONObject licenseInfo = new JSONObject();
-            licenseInfo.set("snInfo",new JSONObject());
-            jsonObject.set("licenseInfo",licenseInfo);
+            log.error("authLicense-getAuthInfo-error:",e);
         }
         return ResultData.ok(jsonObject);
     }