示例#1
0
        /// <summary>
        /// 将第三方提交的代码包提交审核
        /// 注意:只有上个版本被驳回,才能使用 feedback_info、feedback_stuff 这两个字段,否则忽略处理。
        /// </summary>
        /// <param name="accessToken">从第三方平台获取到的该小程序授权</param>
        /// <param name="item_list">审核项列表(选填,至多填写 5 项)</param>
        /// <param name="preview_info">预览信息(小程序页面截图和操作录屏)</param>
        /// <param name="version_desc">小程序版本说明和功能解释</param>
        /// <param name="feedback_info">反馈内容,至多 200 字</param>
        /// <param name="feedback_stuff">用 | 分割的 media_id 列表,至多 5 张图片, 可以通过新增临时素材接口上传而得到</param>
        /// <param name="ugc_declare">用户生成内容场景(UGC)信息安全声明</param>
        /// <param name="timeOut"></param>
        /// <returns></returns>
        public static async Task <GetAuditResultJson> SubmitAuditAsync(string accessToken, List <SubmitAuditPageInfo> item_list, SubmitAuditPreviewInfo preview_info = null, string version_desc = "", string feedback_info = "", string feedback_stuff = "", SubmitAuditUgcDeclareInfo ugc_declare = null, int timeOut = Config.TIME_OUT)
        {
            var url = string.Format(Config.ApiMpHost + "/wxa/submit_audit?access_token={0}", accessToken.AsUrlData());

            object data;

            data = new
            {
                item_list      = item_list,
                preview_info   = preview_info,
                version_desc   = version_desc,
                feedback_info  = feedback_info,
                feedback_stuff = feedback_stuff,
                ugc_declare    = ugc_declare
            };

            return(await CommonJsonSend.SendAsync <GetAuditResultJson>(null, url, data, CommonJsonSendType.POST, timeOut).ConfigureAwait(false));
        }
示例#2
0
        public static GetAuditResultJson SubmitAudit(string accessToken, List <SubmitAuditPageInfo> item_list, SubmitAuditPreviewInfo preview_info, string version_desc = "", string feedback_info = "", string feedback_stuff = "", int timeOut = Config.TIME_OUT)
        {
            var url = string.Format(Config.ApiMpHost + "/wxa/submit_audit?access_token={0}", accessToken.AsUrlData());

            object data;

            data = new
            {
                item_list      = item_list,
                feedback_info  = feedback_info,
                feedback_stuff = feedback_stuff,
                preview_info   = preview_info
            };

            return(CommonJsonSend.Send <GetAuditResultJson>(null, url, data, CommonJsonSendType.POST, timeOut));
        }