Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🆕 1. WxOpenMaService 增加获取隐私接口检测结果的API;2. WxMpXmlMessage 小程序代码审核通知回调增加字段 #3232

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,20 @@ public class WxMpXmlMessage implements Serializable {
@JacksonXmlProperty(localName = "Reason")
private String reason;

/**
* 审核延后时的时间(整形),时间戳
*/
@XStreamAlias("DelayTime")
@JacksonXmlProperty(localName = "DelayTime")
private Long delayTime;

/**
* 审核不通过的截图示例。用 | 分隔的 media_id 的列表
*/
@XStreamAlias("ScreenShot")
@JacksonXmlProperty(localName = "ScreenShot")
private String screenShot;

///////////////////////////////////////
// 扫一扫事件推送
///////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ public interface WxOpenMaService extends WxMaService {
*/
String API_GET_GRAY_RELEASE_PLAN = "https://api.weixin.qq.com/wxa/getgrayreleaseplan";

/**
* 17 获取隐私接口检测结果
*/
String API_GET_CODE_PRIVACY_INFO = "https://api.weixin.qq.com/wxa/security/get_code_privacy_info";


/**
* 查询服务商的当月提审限额和加急次数(Quota)
Expand Down Expand Up @@ -624,6 +629,16 @@ WxOpenMaDomainResult modifyDomain(String action, List<String> requestDomains, Li
*/
WxOpenMaGrayReleasePlanResult getGrayReleasePlan() throws WxErrorException;

/**
* 17. 获取隐私接口检测结果
* https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/getCodePrivacyInfo.html
*
* @return {@link WxOpenMaGetCodePrivacyInfoResult }
* @throws WxErrorException wx错误异常
* @author Yuan
*/
WxOpenMaGetCodePrivacyInfoResult getCodePrivacyInfo() throws WxErrorException;

/**
* 查询服务商的当月提审限额和加急次数(Quota)
* https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Mini_Programs/code/query_quota.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ public WxOpenMaGrayReleasePlanResult getGrayReleasePlan() throws WxErrorExceptio
return WxMaGsonBuilder.create().fromJson(response, WxOpenMaGrayReleasePlanResult.class);
}

@Override
public WxOpenMaGetCodePrivacyInfoResult getCodePrivacyInfo() throws WxErrorException {
String response = get(API_GET_CODE_PRIVACY_INFO, null);
return WxMaGsonBuilder.create().fromJson(response, WxOpenMaGetCodePrivacyInfoResult.class);
}

@Override
public WxOpenMaQueryQuotaResult queryQuota() throws WxErrorException {
String response = get(API_QUERY_QUOTA, null);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package me.chanjar.weixin.open.bean.result;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
* 获取隐私接口检测返回结果
*
* @author Yuan
* @version 1.0.0
* @date 2024-02-01 12:49:58
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxOpenMaGetCodePrivacyInfoResult extends WxOpenResult {

private static final long serialVersionUID = -2660090947103046607L;

/**
* 没权限的隐私接口的api英文名
*/
@SerializedName("without_auth_list")
private List<String> withoutAuthList;

/**
* 没配置的隐私接口的api英文名
*/
@SerializedName("without_conf_list")
private List<String> withoutConfList;

}