|
|
|
@@ -321,7 +321,7 @@ public class WechatWeappCodeController { |
|
|
|
try { |
|
|
|
WxOpenMaService openMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(appId); |
|
|
|
String openRet = openMaService.setSupportVersion(version); |
|
|
|
logger.info(openRet.toString()); |
|
|
|
logger.info(openRet); |
|
|
|
return new ResultData(openRet); |
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
@@ -334,7 +334,14 @@ public class WechatWeappCodeController { |
|
|
|
public ResultData undoCodeAudit(String appId) { |
|
|
|
try { |
|
|
|
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(); |
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
|