|
|
|
@@ -479,6 +479,8 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
List<WxWeappCodeStatusVo> apps = weappCodeStatusService.getList(queryVo); |
|
|
|
apps.stream().forEach( app -> { |
|
|
|
Gson gson = new GsonBuilder().create(); |
|
|
|
WxWeappCodeStatus codeStatus = weappCodeStatusService.getByAppId(app.getAppId()); |
|
|
|
|
|
|
|
try { |
|
|
|
WxOpenMaService openMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(app.getAppId()); |
|
|
|
WxOpenResult openRet = openMaService.releaesAudited(); |
|
|
|
@@ -487,7 +489,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
releaseSuccess = true; |
|
|
|
} |
|
|
|
logger.info(openRet.toString()); |
|
|
|
WxWeappCodeStatus codeStatus = weappCodeStatusService.getByAppId(app.getAppId()); |
|
|
|
|
|
|
|
if(codeStatus != null) { |
|
|
|
if(releaseSuccess) { |
|
|
|
codeStatus.setReleaseStatus(EnumWeappReleaseStatus.SUCCESS.getCode()); |
|
|
|
@@ -499,6 +501,11 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
} |
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
if(codeStatus != null) { |
|
|
|
codeStatus.setReleaseStatus(EnumWeappReleaseStatus.FAIL.getCode()); |
|
|
|
codeStatus.setReleaseErrCode(e.getMessage()); |
|
|
|
weappCodeStatusService.updateReleaseStatus(codeStatus); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
return new ResultData(); |
|
|
|
|