public class WxMaCodeServiceImpl extends Object implements WxMaCodeService
| 构造器和说明 |
|---|
WxMaCodeServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
changeVisitStatus(String action)
修改小程序线上代码的可见状态(仅供第三方代小程序调用).
|
void |
commit(WxMaCodeCommitRequest commitRequest)
为授权的小程序帐号上传小程序代码(仅仅支持第三方开放平台).
|
WxMaCodeAuditStatus |
getAuditStatus(long auditId)
查询某个指定版本的审核状态(仅供第三方代小程序调用).
|
List<WxMaCodeSubmitAuditItem> |
getCategory()
获取授权小程序帐号的可选类目.
|
WxMaCodeAuditStatus |
getLatestAuditStatus()
查询最新一次提交的审核状态(仅供第三方代小程序调用).
|
List<String> |
getPage()
获取小程序的第三方提交代码的页面配置(仅供第三方开发者代小程序调用).
|
byte[] |
getQrCode(String path)
获取体验小程序的体验二维码.
|
WxMaCodeVersionDistribution |
getSupportVersion()
查询当前设置的最低基础库版本及各版本用户占比 (仅供第三方代小程序调用).
|
WxMaCodeVersionInfo |
getVersionInfo()
查询小程序版本信息
|
void |
release()
发布已通过审核的小程序(仅供第三方代小程序调用).
|
void |
revertCodeRelease()
小程序版本回退(仅供第三方代小程序调用).
|
void |
setSupportVersion(String version)
设置最低基础库版本(仅供第三方代小程序调用).
|
long |
submitAudit(WxMaCodeSubmitAuditRequest auditRequest)
将第三方提交的代码包提交审核(仅供第三方开发者代小程序调用).
|
void |
undoCodeAudit()
小程序审核撤回.
|
public void commit(WxMaCodeCommitRequest commitRequest) throws WxErrorException
WxMaCodeServicecommit 在接口中 WxMaCodeServicecommitRequest - 参数WxErrorException - 上传失败时抛出,具体错误码请看类注释文档public byte[] getQrCode(String path) throws WxErrorException
WxMaCodeServicegetQrCode 在接口中 WxMaCodeServicepath - 指定体验版二维码跳转到某个具体页面(如果不需要的话,则不需要填path参数,可在路径后以“?参数”方式传入参数)
具体的路径加参数需要urlencode(方法内部处理),比如page/index?action=1编码后得到page%2Findex%3Faction%3D1WxErrorException - 上传失败时抛出,具体错误码请看类注释文档public List<WxMaCodeSubmitAuditItem> getCategory() throws WxErrorException
WxMaCodeServicegetCategory 在接口中 WxMaCodeServiceWxErrorException - 获取失败时返回,具体错误码请看此接口的注释文档public List<String> getPage() throws WxErrorException
WxMaCodeServicegetPage 在接口中 WxMaCodeServiceWxErrorException - 获取失败时返回,具体错误码请看此接口的注释文档public long submitAudit(WxMaCodeSubmitAuditRequest auditRequest) throws WxErrorException
WxMaCodeServicesubmitAudit 在接口中 WxMaCodeServiceauditRequest - 提交审核参数WxErrorException - 提交失败时返回,具体错误码请看此接口的注释文档public WxMaCodeAuditStatus getAuditStatus(long auditId) throws WxErrorException
WxMaCodeServicegetAuditStatus 在接口中 WxMaCodeServiceauditId - 提交审核时获得的审核idWxErrorException - 查询失败时返回,具体错误码请看此接口的注释文档public WxMaCodeAuditStatus getLatestAuditStatus() throws WxErrorException
WxMaCodeServicegetLatestAuditStatus 在接口中 WxMaCodeServiceWxErrorException - 查询失败时返回,具体错误码请看此接口的注释文档public void release()
throws WxErrorException
WxMaCodeServicerelease 在接口中 WxMaCodeServiceWxErrorException - 发布失败时抛出,具体错误码请看此接口的注释文档public void changeVisitStatus(String action) throws WxErrorException
WxMaCodeServicechangeVisitStatus 在接口中 WxMaCodeServiceaction - 设置可访问状态,发布后默认可访问,close为不可见,open为可见WxErrorException - 发布失败时抛出,具体错误码请看此接口的注释文档public void revertCodeRelease()
throws WxErrorException
WxMaCodeServicerevertCodeRelease 在接口中 WxMaCodeServiceWxErrorException - 失败时抛出,具体错误码请看此接口的注释文档public WxMaCodeVersionDistribution getSupportVersion() throws WxErrorException
WxMaCodeServicegetSupportVersion 在接口中 WxMaCodeServiceWxErrorException - 失败时抛出,具体错误码请看此接口的注释文档public WxMaCodeVersionInfo getVersionInfo() throws WxErrorException
WxMaCodeServicegetVersionInfo 在接口中 WxMaCodeServiceWxErrorException - 失败时抛出,具体错误码请看此接口的注释文档public void setSupportVersion(String version) throws WxErrorException
WxMaCodeServicesetSupportVersion 在接口中 WxMaCodeServiceversion - 版本WxErrorException - 失败时抛出,具体错误码请看此接口的注释文档public void undoCodeAudit()
throws WxErrorException
WxMaCodeServiceundoCodeAudit 在接口中 WxMaCodeServiceWxErrorException - 失败时抛出,具体错误码请看此接口的注释文档Copyright © 2025. All rights reserved.