|
|
@@ -4,7 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.mrxu.framework.common.weixin.base.WxHttp;
|
|
|
import com.mrxu.framework.common.weixin.base.WxResult;
|
|
|
import com.mrxu.framework.common.weixin.bean.CommitPage;
|
|
|
-import com.mrxu.framework.common.weixin.bean.ComponentToken;
|
|
|
+import com.mrxu.framework.common.weixin.bean.SubmitAudit;
|
|
|
|
|
|
// 发布指定小程序相关接口
|
|
|
// https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/commit.html
|
|
|
@@ -38,6 +38,31 @@ public class ComponentDeployApi {
|
|
|
return rs;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @Description: 提交审核
|
|
|
+ * item_list Object Array 是 审核项列表(选填,至多填写 5 项);类目是必填的,且要填写已经在小程序配置好的类目
|
|
|
+ * preview_info Object 否 预览信息(小程序页面截图和操作录屏)
|
|
|
+ * version_desc String 否 小程序版本说明和功能解释
|
|
|
+ * feedback_info String 否 反馈内容,至多 200 字
|
|
|
+ * feedback_stuff String 否 用 | 分割的 media_id 列表,至多 5 张图片, 可以通过新增临时素材接口上传而得到
|
|
|
+ * ugc_declare Object 否 用户生成内容场景(UGC)信息安全声明
|
|
|
+ */
|
|
|
+ // https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/submit_audit.html
|
|
|
+ public static SubmitAudit submitAudit(String accessToken,String itemList,
|
|
|
+ String previewInfo,String versionDesc,
|
|
|
+ String feedbackInfo,String feedbackStuff,
|
|
|
+ String ugcDeclare) {
|
|
|
+ JSONObject json = new JSONObject();
|
|
|
+ json.put("item_list", itemList);
|
|
|
+ json.put("preview_info", previewInfo);
|
|
|
+ json.put("version_desc", versionDesc);
|
|
|
+ json.put("feedback_info", feedbackInfo);
|
|
|
+ json.put("feedback_stuff", feedbackStuff);
|
|
|
+ json.put("ugc_declare", ugcDeclare);
|
|
|
+ SubmitAudit rs = WxHttp.post(SubmitAudit.class,submit_audit+accessToken,json);
|
|
|
+ return rs;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @Description: 获取已上传的代码的页面列表
|
|
|
*/
|