Browse Source

update tt

master
xhxu 2 years ago
parent
commit
168cf11ef8
4 changed files with 8 additions and 7 deletions
  1. +2
    -2
      mallinkService/src/main/java/com/iformall/service/toutiao/api/TtOpenMaService.java
  2. +4
    -3
      mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenMaServiceImpl.java
  3. +1
    -1
      mlToutiaoOpen/src/main/java/com/iformall/controller/WechatWeappCodeController.java
  4. +1
    -1
      mlToutiaoOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java

+ 2
- 2
mallinkService/src/main/java/com/iformall/service/toutiao/api/TtOpenMaService.java View File

@@ -205,7 +205,7 @@ public interface TtOpenMaService extends TtMaService {
* 单个帐号每天审核撤回次数最多不超过1次,一个月不超过10次。
* </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 小程序分阶段发布-分阶段发布接口
@@ -421,7 +421,7 @@ public interface TtOpenMaService extends TtMaService {
* 15. 小程序审核撤回
* 单个帐号每天审核撤回次数最多不超过1次,一个月不超过10次。
*/
WxOpenResult undoCodeAudit() throws WxErrorException;
TtOpenResult undoCodeAudit() throws WxErrorException;

/**
* 查询当前设置的最低基础库版本及各版本用户占比 (仅供第三方代小程序调用)


+ 4
- 3
mallinkService/src/main/java/com/iformall/service/toutiao/api/impl/TtOpenMaServiceImpl.java View File

@@ -469,9 +469,10 @@ public class TtOpenMaServiceImpl extends TtMaServiceImpl implements TtOpenMaServ
* @throws WxErrorException
*/
@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);
}

/**


+ 1
- 1
mlToutiaoOpen/src/main/java/com/iformall/controller/WechatWeappCodeController.java View File

@@ -687,7 +687,7 @@ public class WechatWeappCodeController extends BaseController {
if(auditStatus != null) {
try {
TtOpenMaService openMaService = openService.getTtOpenComponentService().getTtMaServiceByAppid(appId);
WxOpenResult openResult = openMaService.undoCodeAudit();
TtOpenResult openResult = openMaService.undoCodeAudit();
Date curDate = new Date();
if(openResult.isSuccess()) {
// 审核状态


+ 1
- 1
mlToutiaoOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java View File

@@ -823,7 +823,7 @@ public class WxWeappInfoController extends BaseController {
// 审核通过,已发布不可撤回
try {
TtOpenMaService openMaService = openService.getTtOpenComponentService().getTtMaServiceByAppid(auditStatus.getAppId());
WxOpenResult openResult = openMaService.undoCodeAudit();
TtOpenResult openResult = openMaService.undoCodeAudit();
logger.info(openResult.toString());
if(openResult.isSuccess()) {
auditStatus.setAuditStatus(EnumWeappAuditStatus.UNDO.getCode());


Loading…
Cancel
Save