wangliang 2 жил өмнө
parent
commit
4f01cd2422

+ 1 - 1
teachcloud-common-api/src/main/java/com/qmth/teachcloud/common/api/api/TSAuthController.java

@@ -88,7 +88,7 @@ public class TSAuthController {
                                    @ApiParam(value = "accessSecret", required = true) @RequestParam(required = true) String accessSecret) throws Exception {
         AppInfo appInfo = solarService.update(accessKey, accessSecret);
         if (Objects.isNull(appInfo)) {
-            throw ExceptionResultEnum.AUTH_INFO_ERROR.exception("激活失败,请检查key和secret输入是否正确\"");
+            throw ExceptionResultEnum.ERROR.exception("激活失败,请检查key和secret输入是否正确\"");
         }
         authInfoService.appInfoInit(appInfo, accessKey, accessSecret);
         return ResultUtil.ok(true);

+ 1 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/service/impl/AuthInfoServiceImpl.java

@@ -143,7 +143,7 @@ public class AuthInfoServiceImpl implements AuthInfoService {
     public void updateLicense(byte[] licenseData) throws Exception {
         AppInfo appInfo = solarService.update(licenseData);
         if (Objects.isNull(appInfo)) {
-            throw ExceptionResultEnum.AUTH_INFO_ERROR.exception("激活失败");
+            throw ExceptionResultEnum.ERROR.exception("激活失败");
         }
         authInfoService.saveAuthInfo(appInfo, AuthEnum.OFF_LINE, licenseData);
     }