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
WxMaCodeService
commit
在接口中 WxMaCodeService
commitRequest
- 参数WxErrorException
- 上传失败时抛出,具体错误码请看类注释文档public byte[] getQrCode(String path) throws WxErrorException
WxMaCodeService
getQrCode
在接口中 WxMaCodeService
path
- 指定体验版二维码跳转到某个具体页面(如果不需要的话,则不需要填path参数,可在路径后以“?参数”方式传入参数)
具体的路径加参数需要urlencode(方法内部处理),比如page/index?action=1编码后得到page%2Findex%3Faction%3D1WxErrorException
- 上传失败时抛出,具体错误码请看类注释文档public List<WxMaCodeSubmitAuditItem> getCategory() throws WxErrorException
WxMaCodeService
getCategory
在接口中 WxMaCodeService
WxErrorException
- 获取失败时返回,具体错误码请看此接口的注释文档public List<String> getPage() throws WxErrorException
WxMaCodeService
getPage
在接口中 WxMaCodeService
WxErrorException
- 获取失败时返回,具体错误码请看此接口的注释文档public long submitAudit(WxMaCodeSubmitAuditRequest auditRequest) throws WxErrorException
WxMaCodeService
submitAudit
在接口中 WxMaCodeService
auditRequest
- 提交审核参数WxErrorException
- 提交失败时返回,具体错误码请看此接口的注释文档public WxMaCodeAuditStatus getAuditStatus(long auditId) throws WxErrorException
WxMaCodeService
getAuditStatus
在接口中 WxMaCodeService
auditId
- 提交审核时获得的审核idWxErrorException
- 查询失败时返回,具体错误码请看此接口的注释文档public WxMaCodeAuditStatus getLatestAuditStatus() throws WxErrorException
WxMaCodeService
getLatestAuditStatus
在接口中 WxMaCodeService
WxErrorException
- 查询失败时返回,具体错误码请看此接口的注释文档public void release() throws WxErrorException
WxMaCodeService
release
在接口中 WxMaCodeService
WxErrorException
- 发布失败时抛出,具体错误码请看此接口的注释文档public void changeVisitStatus(String action) throws WxErrorException
WxMaCodeService
changeVisitStatus
在接口中 WxMaCodeService
action
- 设置可访问状态,发布后默认可访问,close为不可见,open为可见WxErrorException
- 发布失败时抛出,具体错误码请看此接口的注释文档public void revertCodeRelease() throws WxErrorException
WxMaCodeService
revertCodeRelease
在接口中 WxMaCodeService
WxErrorException
- 失败时抛出,具体错误码请看此接口的注释文档public WxMaCodeVersionDistribution getSupportVersion() throws WxErrorException
WxMaCodeService
getSupportVersion
在接口中 WxMaCodeService
WxErrorException
- 失败时抛出,具体错误码请看此接口的注释文档public WxMaCodeVersionInfo getVersionInfo() throws WxErrorException
WxMaCodeService
getVersionInfo
在接口中 WxMaCodeService
WxErrorException
- 失败时抛出,具体错误码请看此接口的注释文档public void setSupportVersion(String version) throws WxErrorException
WxMaCodeService
setSupportVersion
在接口中 WxMaCodeService
version
- 版本WxErrorException
- 失败时抛出,具体错误码请看此接口的注释文档public void undoCodeAudit() throws WxErrorException
WxMaCodeService
undoCodeAudit
在接口中 WxMaCodeService
WxErrorException
- 失败时抛出,具体错误码请看此接口的注释文档Copyright © 2024. All rights reserved.