| @@ -205,7 +205,7 @@ public interface TtOpenMaService extends TtMaService { | |||||
| * 单个帐号每天审核撤回次数最多不超过1次,一个月不超过10次。 | * 单个帐号每天审核撤回次数最多不超过1次,一个月不超过10次。 | ||||
| * </p> | * </p> | ||||
| */ | */ | ||||
| String API_UNDO_CODE_AUDIT = "https://api.weixin.qq.com/wxa/undocodeaudit"; | |||||
| String API_UNDO_CODE_AUDIT = "https://open.microapp.bytedance.com/openapi/v1/microapp/package/revoke_audit"; | |||||
| /** | /** | ||||
| * 16.1 小程序分阶段发布-分阶段发布接口 | * 16.1 小程序分阶段发布-分阶段发布接口 | ||||
| @@ -421,7 +421,7 @@ public interface TtOpenMaService extends TtMaService { | |||||
| * 15. 小程序审核撤回 | * 15. 小程序审核撤回 | ||||
| * 单个帐号每天审核撤回次数最多不超过1次,一个月不超过10次。 | * 单个帐号每天审核撤回次数最多不超过1次,一个月不超过10次。 | ||||
| */ | */ | ||||
| WxOpenResult undoCodeAudit() throws WxErrorException; | |||||
| TtOpenResult undoCodeAudit() throws WxErrorException; | |||||
| /** | /** | ||||
| * 查询当前设置的最低基础库版本及各版本用户占比 (仅供第三方代小程序调用) | * 查询当前设置的最低基础库版本及各版本用户占比 (仅供第三方代小程序调用) | ||||
| @@ -469,9 +469,10 @@ public class TtOpenMaServiceImpl extends TtMaServiceImpl implements TtOpenMaServ | |||||
| * @throws WxErrorException | * @throws WxErrorException | ||||
| */ | */ | ||||
| @Override | @Override | ||||
| public WxOpenResult undoCodeAudit() throws WxErrorException { | |||||
| String response = get(API_UNDO_CODE_AUDIT, null); | |||||
| return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class); | |||||
| public TtOpenResult undoCodeAudit() throws WxErrorException { | |||||
| String uri = API_UNDO_CODE_AUDIT + "?component_appid=" + ttOpenComponentService.getWxOpenConfigStorage().getComponentAppId(); | |||||
| String response = ttOpenComponentService.postByAppAccessToken(appId,uri,null,"authorizer_access_token"); | |||||
| return TtOpenGsonBuilder.create().fromJson(response, TtOpenResult.class); | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -687,7 +687,7 @@ public class WechatWeappCodeController extends BaseController { | |||||
| if(auditStatus != null) { | if(auditStatus != null) { | ||||
| try { | try { | ||||
| TtOpenMaService openMaService = openService.getTtOpenComponentService().getTtMaServiceByAppid(appId); | TtOpenMaService openMaService = openService.getTtOpenComponentService().getTtMaServiceByAppid(appId); | ||||
| WxOpenResult openResult = openMaService.undoCodeAudit(); | |||||
| TtOpenResult openResult = openMaService.undoCodeAudit(); | |||||
| Date curDate = new Date(); | Date curDate = new Date(); | ||||
| if(openResult.isSuccess()) { | if(openResult.isSuccess()) { | ||||
| // 审核状态 | // 审核状态 | ||||
| @@ -823,7 +823,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| // 审核通过,已发布不可撤回 | // 审核通过,已发布不可撤回 | ||||
| try { | try { | ||||
| TtOpenMaService openMaService = openService.getTtOpenComponentService().getTtMaServiceByAppid(auditStatus.getAppId()); | TtOpenMaService openMaService = openService.getTtOpenComponentService().getTtMaServiceByAppid(auditStatus.getAppId()); | ||||
| WxOpenResult openResult = openMaService.undoCodeAudit(); | |||||
| TtOpenResult openResult = openMaService.undoCodeAudit(); | |||||
| logger.info(openResult.toString()); | logger.info(openResult.toString()); | ||||
| if(openResult.isSuccess()) { | if(openResult.isSuccess()) { | ||||
| auditStatus.setAuditStatus(EnumWeappAuditStatus.UNDO.getCode()); | auditStatus.setAuditStatus(EnumWeappAuditStatus.UNDO.getCode()); | ||||