| @@ -321,7 +321,7 @@ public class WechatWeappCodeController { | |||||
| try { | try { | ||||
| WxOpenMaService openMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(appId); | WxOpenMaService openMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(appId); | ||||
| String openRet = openMaService.setSupportVersion(version); | String openRet = openMaService.setSupportVersion(version); | ||||
| logger.info(openRet.toString()); | |||||
| logger.info(openRet); | |||||
| return new ResultData(openRet); | return new ResultData(openRet); | ||||
| } catch (WxErrorException e) { | } catch (WxErrorException e) { | ||||
| logger.error(e.getMessage()); | logger.error(e.getMessage()); | ||||
| @@ -334,7 +334,14 @@ public class WechatWeappCodeController { | |||||
| public ResultData undoCodeAudit(String appId) { | public ResultData undoCodeAudit(String appId) { | ||||
| try { | try { | ||||
| WxOpenMaService openMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(appId); | WxOpenMaService openMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(appId); | ||||
| openMaService.undoCodeAudit(); | |||||
| WxOpenResult openResult = openMaService.undoCodeAudit(); | |||||
| WxWeappCodeStatus codeStatus = weappCodeStatusService.getByAppId(appId); | |||||
| if(codeStatus != null) { | |||||
| if(openResult.getErrcode().equals('0')) { | |||||
| codeStatus.setAuditStatus(EnumWeappAuditStatus.UNDO.getCode()); | |||||
| } | |||||
| weappCodeStatusService.updateAuditStatus(codeStatus); | |||||
| } | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } catch (WxErrorException e) { | } catch (WxErrorException e) { | ||||
| logger.error(e.getMessage()); | logger.error(e.getMessage()); | ||||