public interface WxMaCodeService
| 限定符和类型 | 字段和说明 | 
|---|---|
| static String | CHANGE_VISIT_STATUS_URL | 
| static String | COMMIT_URL为授权的小程序帐号上传小程序代码. | 
| static String | GET_AUDIT_STATUS_URL | 
| static String | GET_CATEGORY_URL | 
| static String | GET_LATEST_AUDIT_STATUS_URL | 
| static String | GET_PAGE_URL | 
| static String | GET_QRCODE_URL | 
| static String | GET_SUPPORT_VERSION_URL | 
| static String | RELEASE_URL | 
| static String | REVERT_CODE_RELEASE_URL | 
| static String | SET_SUPPORT_VERSION_URL | 
| static String | SUBMIT_AUDIT_URL | 
| static String | UNDO_CODE_AUDIT_URL | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | changeVisitStatus(String action)修改小程序线上代码的可见状态(仅供第三方代小程序调用). | 
| void | commit(WxMaCodeCommitRequest commitRequest)为授权的小程序帐号上传小程序代码(仅仅支持第三方开放平台). | 
| WxMaCodeAuditStatus | getAuditStatus(long auditId)查询某个指定版本的审核状态(仅供第三方代小程序调用). | 
| List<WxMaCategory> | getCategory()获取授权小程序帐号的可选类目. | 
| WxMaCodeAuditStatus | getLatestAuditStatus()查询最新一次提交的审核状态(仅供第三方代小程序调用). | 
| List<String> | getPage()获取小程序的第三方提交代码的页面配置(仅供第三方开发者代小程序调用). | 
| byte[] | getQrCode(String path)获取体验小程序的体验二维码. | 
| WxMaCodeVersionDistribution | getSupportVersion()查询当前设置的最低基础库版本及各版本用户占比 (仅供第三方代小程序调用). | 
| void | release()发布已通过审核的小程序(仅供第三方代小程序调用). | 
| void | revertCodeRelease()小程序版本回退(仅供第三方代小程序调用). | 
| void | setSupportVersion(String version)设置最低基础库版本(仅供第三方代小程序调用). | 
| long | submitAudit(WxMaCodeSubmitAuditRequest auditRequest)将第三方提交的代码包提交审核(仅供第三方开发者代小程序调用). | 
| void | undoCodeAudit()小程序审核撤回. | 
void commit(WxMaCodeCommitRequest commitRequest) throws WxErrorException
commitRequest - 参数WxErrorException - 上传失败时抛出,具体错误码请看类注释文档byte[] getQrCode(String path) throws WxErrorException
path - 指定体验版二维码跳转到某个具体页面(如果不需要的话,则不需要填path参数,可在路径后以“?参数”方式传入参数)
             具体的路径加参数需要urlencode(方法内部处理),比如page/index?action=1编码后得到page%2Findex%3Faction%3D1WxErrorException - 上传失败时抛出,具体错误码请看类注释文档List<WxMaCategory> getCategory() throws WxErrorException
WxErrorException - 获取失败时返回,具体错误码请看此接口的注释文档List<String> getPage() throws WxErrorException
WxErrorException - 获取失败时返回,具体错误码请看此接口的注释文档long submitAudit(WxMaCodeSubmitAuditRequest auditRequest) throws WxErrorException
auditRequest - 提交审核参数WxErrorException - 提交失败时返回,具体错误码请看此接口的注释文档WxMaCodeAuditStatus getAuditStatus(long auditId) throws WxErrorException
auditId - 提交审核时获得的审核idWxErrorException - 查询失败时返回,具体错误码请看此接口的注释文档WxMaCodeAuditStatus getLatestAuditStatus() throws WxErrorException
WxErrorException - 查询失败时返回,具体错误码请看此接口的注释文档void release()
      throws WxErrorException
WxErrorException - 发布失败时抛出,具体错误码请看此接口的注释文档void changeVisitStatus(String action) throws WxErrorException
action - 设置可访问状态,发布后默认可访问,close为不可见,open为可见WxErrorException - 发布失败时抛出,具体错误码请看此接口的注释文档void revertCodeRelease()
                throws WxErrorException
WxErrorException - 失败时抛出,具体错误码请看此接口的注释文档WxMaCodeVersionDistribution getSupportVersion() throws WxErrorException
WxErrorException - 失败时抛出,具体错误码请看此接口的注释文档void setSupportVersion(String version) throws WxErrorException
version - 版本WxErrorException - 失败时抛出,具体错误码请看此接口的注释文档void undoCodeAudit()
            throws WxErrorException
WxErrorException - 失败时抛出,具体错误码请看此接口的注释文档Copyright © 2019. All rights reserved.