public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaService
增加开放平台代小程序管理服务能力 说明:这里让这个服务公开便于调用者模拟本地测试服务
GSON, urlPathSupportApiSignature
API_AUDIT_UPLOAD_MEDIA, API_BIND_TESTER, API_CHANGE_VISITSTATUS, API_CHANGE_WXA_SEARCH_STATUS, API_CODE_COMMIT, API_GENERATE_SCHEME, API_GET_ACCOUNT_BASICINFO, API_GET_AUDIT_STATUS, API_GET_CATEGORY, API_GET_CODE_PRIVACY_INFO, API_GET_GRAY_RELEASE_PLAN, API_GET_LATEST_AUDIT_STATUS, API_GET_PAGE, API_GET_PREFETCH_DOMAIN, API_GET_SHOW_WXA_ITEM, API_GET_TESTERLIST, API_GET_VERSION_INFO, API_GET_VISITSTATUS, API_GET_WEAPP_SUPPORT_VERSION, API_GET_WEBVIEW_DOMAIN_CONFIRM_FILE, API_GET_WXA_SEARCH_STATUS, API_GRAY_RELEASE, API_MODIFY_DOMAIN, API_QRCODE_JUMP_ADD, API_QRCODE_JUMP_DELETE, API_QRCODE_JUMP_DOWNLOAD, API_QRCODE_JUMP_GET, API_QRCODE_JUMP_PUBLISH, API_QUERY_QUOTA, API_REGISTER_SHOP_COMPONENT, API_RELEASE, API_REVERT_CODE_RELEASE, API_REVERT_GRAY_RELEASE, API_SET_WEAPP_SUPPORT_VERSION, API_SET_WEBVIEW_DOMAIN, API_SPEED_AUDIT, API_SUBMIT_AUDIT, API_TEST_QRCODE, API_UNBIND_TESTER, API_UNDO_CODE_AUDIT, API_UPDATE_SHOW_WXA_ITEM, API_UPLOAD_AUTH_MATERIAL, API_VERIFY_BETA_WEAPP, API_WX_APPLY_LIVE_INFO, API_WX_SET_PREFETCH_DOMAIN
GET_ACCESS_TOKEN_URL, GET_PAID_UNION_ID_URL, GET_STABLE_ACCESS_TOKEN, JSCODE_TO_SESSION_URL, SET_DYNAMIC_DATA_URL
构造器和说明 |
---|
WxOpenMaServiceImpl(WxOpenComponentService wxOpenComponentService,
String appId,
WxMaConfig wxMaConfig) |
doGetAccessTokenRequest, doGetStableAccessTokenRequest, getRequestHttpClient, getRequestHttpProxy, getRequestType, initHttp
addConfig, checkSignature, execute, execute, extractAccessToken, get, getAccessToken, getAnalysisService, getCloudService, getCodeService, getDeviceSubscribeService, getExpressService, getImgProcService, getInternetService, getIntracityService, getJsapiService, getLinkService, getLiveGoodsService, getLiveMemberService, getLiveService, getMarketingService, getMediaService, getMsgService, getOcrService, getPaidUnionId, getPluginService, getProductOrderService, getProductService, getQrcodeService, getReimburseInvoiceService, getRequestHttp, getRunService, getSecurityService, getSettingService, getShareService, getShopAccountService, getShopAfterSaleService, getShopAuditService, getShopCatService, getShopDeliveryService, getShopImgService, getShopOrderService, getShopRegisterService, getShopSharerService, getShopSpuService, getSubscribeService, getUserService, getWxMaExpressDeliveryReturnService, getWxMaImmediateDeliveryService, getWxMaOpenApiService, getWxMaOrderShippingService, getWxMaPromotionService, getWxMaSchemeService, getWxMaShopCouponService, getWxMaShopPayService, getWxMaVodService, getWxMaXPayService, post, post, post, post, postWithSignature, postWithSignature, removeConfig, setDynamicData, setMaxRetryTimes, setMultiConfigs, setMultiConfigs, setRetrySleepMillis, setWxMaConfig, switchover, switchoverTo, switchoverTo, upload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAuthService, getBasicService, getEmbeddedService, getIcpService, getPrivacyService, getShoppingOrdersService
addConfig, checkSignature, execute, execute, getAccessToken, getAnalysisService, getCloudService, getCodeService, getDeviceSubscribeService, getExpressService, getImgProcService, getInternetService, getIntracityService, getJsapiService, getLinkService, getLiveGoodsService, getLiveMemberService, getLiveService, getMarketingService, getMediaService, getMsgService, getOcrService, getPaidUnionId, getPluginService, getProductOrderService, getProductService, getQrcodeService, getReimburseInvoiceService, getRequestHttp, getRunService, getSecurityService, getSettingService, getShareService, getShopAccountService, getShopAfterSaleService, getShopAuditService, getShopCatService, getShopDeliveryService, getShopImgService, getShopOrderService, getShopRegisterService, getShopSharerService, getShopSpuService, getSubscribeService, getUserService, getWxMaExpressDeliveryReturnService, getWxMaImmediateDeliveryService, getWxMaOpenApiService, getWxMaOrderShippingService, getWxMaPromotionService, getWxMaSchemeService, getWxMaShopCouponService, getWxMaShopPayService, getWxMaVodService, getWxMaXPayService, initHttp, postWithSignature, postWithSignature, removeConfig, setDynamicData, setMaxRetryTimes, setMultiConfigs, setMultiConfigs, setRetrySleepMillis, setWxMaConfig, switchover, switchoverTo, switchoverTo
public WxOpenMaServiceImpl(WxOpenComponentService wxOpenComponentService, String appId, WxMaConfig wxMaConfig)
public WxMaJscode2SessionResult jsCode2SessionInfo(String jsCode) throws WxErrorException
jsCode2SessionInfo
在接口中 WxMaService
jsCode2SessionInfo
在类中 BaseWxMaServiceImpl
WxErrorException
public WxMaConfig getWxMaConfig()
getWxMaConfig
在接口中 WxMaService
getWxMaConfig
在类中 BaseWxMaServiceImpl
public String getAccessToken(boolean forceRefresh) throws WxErrorException
getAccessToken
在接口中 WxMaService
getAccessToken
在类中 BaseWxMaServiceImpl
WxErrorException
public WxOpenMaDomainResult getDomain() throws WxErrorException
WxOpenMaService
getDomain
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenMaDomainResult modifyDomain(String action, List<String> requestDomains, List<String> wsRequestDomains, List<String> uploadDomains, List<String> downloadDomains, List<String> udpDomains, List<String> tcpDomains) throws WxErrorException
WxOpenMaService
modifyDomain
在接口中 WxOpenMaService
action
- delete删除, set覆盖, get获取requestDomains
- request 合法域名;当 action 是 get 时不需要此字段wsRequestDomains
- socket 合法域名;当 action 是 get 时不需要此字段uploadDomains
- uploadFile 合法域名;当 action 是 get 时不需要此字段downloadDomains
- downloadFile 合法域名;当 action 是 get 时不需要此字段udpDomains
- udp 合法域名;当 action 是 get 时不需要此字段tcpDomains
- tcp 合法域名;当 action 是 get 时不需要此字段WxErrorException
- the wx error exceptionpublic String getWebViewDomain() throws WxErrorException
WxOpenMaService
getWebViewDomain
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenMaWebDomainResult getWebViewDomainInfo() throws WxErrorException
WxOpenMaService
getWebViewDomainInfo
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic String setWebViewDomain(String action, List<String> domainList) throws WxErrorException
WxOpenMaService
setWebViewDomain
在接口中 WxOpenMaService
action
- add添加, delete删除, set覆盖domainList
- the domain listWxErrorException
- the wx error exceptionpublic WxOpenMaWebDomainResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException
WxOpenMaService
setWebViewDomainInfo
在接口中 WxOpenMaService
action
- add添加, delete删除, set覆盖domainList
- the domain listWxErrorException
- the wx error exceptionpublic WxOpenMaDomainConfirmFileResult getWebviewDomainConfirmFile() throws WxErrorException
WxOpenMaService
getWebviewDomainConfirmFile
在接口中 WxOpenMaService
WxErrorException
- 操作失败时抛出,具体错误码请看文档public String getAccountBasicInfo() throws WxErrorException
WxOpenMaService
getAccountBasicInfo
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenMaBindTesterResult bindTester(String wechatId) throws WxErrorException
WxOpenMaService
bindTester
在接口中 WxOpenMaService
wechatId
- 体验者微信号(不是openid)WxErrorException
- the wx error exceptionpublic WxOpenResult unbindTester(String wechatId) throws WxErrorException
WxOpenMaService
unbindTester
在接口中 WxOpenMaService
wechatId
- 体验者微信号(不是openid)WxErrorException
- the wx error exceptionpublic WxOpenResult unbindTesterByUserStr(String userStr) throws WxErrorException
WxOpenMaService
unbindTesterByUserStr
在接口中 WxOpenMaService
userStr
- 人员对应的唯一字符串, 可通过获取已绑定的体验者列表获取人员对应的字符串WxErrorException
- the wx error exceptionpublic WxOpenMaTesterListResult getTesterList() throws WxErrorException
WxOpenMaService
getTesterList
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenResult changeWxaSearchStatus(Integer status) throws WxErrorException
WxOpenMaService
changeWxaSearchStatus
在接口中 WxOpenMaService
status
- 1表示不可搜索,0表示可搜索WxErrorException
- the wx error exceptionpublic WxOpenMaSearchStatusResult getWxaSearchStatus() throws WxErrorException
WxOpenMaService
getWxaSearchStatus
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenMaShowItemResult getShowWxaItem() throws WxErrorException
WxOpenMaService
getShowWxaItem
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenResult updateShowWxaItem(Integer flag, String mpAppId) throws WxErrorException
WxOpenMaService
updateShowWxaItem
在接口中 WxOpenMaService
flag
- 0 关闭,1 开启mpAppId
- 如果开启,需要传新的公众号appidWxErrorException
- the wx error exceptionpublic WxOpenResult codeCommit(Long templateId, String userVersion, String userDesc, Object extJsonObject) throws WxErrorException
WxOpenMaService
codeCommit
在接口中 WxOpenMaService
templateId
- 代码模板IDuserVersion
- 用户定义版本userDesc
- 用户定义版本描述extJsonObject
- 为了方便第三方平台的开发者引入 extAppid 的开发调试工作,引入ext.json配置文件概念,该参数则是用于控制ext.json配置文件的内容。
如果是普通模板可以使用 WxMaOpenCommitExtInfo 类构造参数,
如果是标准模板可支持的参数为:{"extAppid":'', "ext": {}, "window": {}} 所以可以使用 WxMaOpenCommitStandardExt 构造参数WxErrorException
- the wx error exceptionWxMaOpenCommitStandardExt
,
WxMaOpenCommitExtInfo
public File getTestQrcode(String pagePath, Map<String,String> params) throws WxErrorException
WxOpenMaService
getTestQrcode
在接口中 WxOpenMaService
pagePath
- the page pathparams
- the paramsWxErrorException
- the wx error exceptionpublic WxOpenResult verifyBetaWeapp(WxOpenMaVerifyBetaWeappMessage verifyBetaWeappMessage) throws WxErrorException
WxOpenMaService
verifyBetaWeapp
在接口中 WxOpenMaService
verifyBetaWeappMessage
- the verify mini program messageWxErrorException
- the wx error exceptionpublic WxOpenMaCategoryListResult getCategoryList() throws WxErrorException
WxOpenMaService
注意:该接口可获取已设置的二级类目及用于代码审核的可选三级类目。
getCategoryList
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenMaPageListResult getPageList() throws WxErrorException
WxOpenMaService
getPageList
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenMaSubmitAuditResult submitAudit(WxOpenMaSubmitAuditMessage submitAuditMessage) throws WxErrorException
WxOpenMaService
submitAudit
在接口中 WxOpenMaService
submitAuditMessage
- the submit audit messageWxErrorException
- the wx error exceptionpublic WxOpenMaQueryAuditResult getAuditStatus(Long auditId) throws WxErrorException
WxOpenMaService
getAuditStatus
在接口中 WxOpenMaService
auditId
- the auditidWxErrorException
- the wx error exceptionpublic WxOpenMaQueryAuditResult getLatestAuditStatus() throws WxErrorException
WxOpenMaService
getLatestAuditStatus
在接口中 WxOpenMaService
WxErrorException
- 。public WxOpenResult releaseAudited() throws WxErrorException
WxOpenMaService
请填写空的数据包,POST的json数据包为空即可。
releaseAudited
在接口中 WxOpenMaService
WxErrorException
- 。public WxOpenResult changeVisitStatus(String action) throws WxErrorException
WxOpenMaService
changeVisitStatus
在接口中 WxOpenMaService
action
- the actionWxErrorException
- the wx error exceptionpublic WxOpenMaVisitStatusResult getVisitStatus() throws WxErrorException
WxOpenMaService
getVisitStatus
在接口中 WxOpenMaService
WxErrorException
- 查询失败时返回,具体错误码请看此接口的注释文档public WxOpenResult revertCodeRelease() throws WxErrorException
WxOpenMaService
revertCodeRelease
在接口中 WxOpenMaService
WxErrorException
- 。public WxOpenMaHistoryVersionResult getHistoryVersion() throws WxErrorException
WxOpenMaService
getHistoryVersion
在接口中 WxOpenMaService
WxErrorException
- 如果调用微信接口失败抛出此异常public WxOpenResult undoCodeAudit() throws WxErrorException
WxOpenMaService
单个帐号每天审核撤回次数最多不超过1次,一个月不超过10次。
undoCodeAudit
在接口中 WxOpenMaService
WxErrorException
- 。public String getSupportVersion() throws WxErrorException
WxOpenMaService
getSupportVersion
在接口中 WxOpenMaService
WxErrorException
- 。public WxOpenMaWeappSupportVersionResult getSupportVersionInfo() throws WxErrorException
WxOpenMaService
getSupportVersionInfo
在接口中 WxOpenMaService
WxErrorException
- .public String setSupportVersion(String version) throws WxErrorException
WxOpenMaService
setSupportVersion
在接口中 WxOpenMaService
version
- the versionWxErrorException
- the wx error exceptionpublic WxOpenResult setSupportVersionInfo(String version) throws WxErrorException
WxOpenMaService
setSupportVersionInfo
在接口中 WxOpenMaService
version
- the versionWxErrorException
- the wx error exceptionpublic WxOpenResult grayRelease(Integer grayPercentage) throws WxErrorException
WxOpenMaService
grayRelease
在接口中 WxOpenMaService
grayPercentage
- 灰度的百分比,1到100的整数WxErrorException
- .public WxOpenResult revertGrayRelease() throws WxErrorException
WxOpenMaService
revertGrayRelease
在接口中 WxOpenMaService
WxErrorException
- .public WxOpenMaGrayReleasePlanResult getGrayReleasePlan() throws WxErrorException
WxOpenMaService
getGrayReleasePlan
在接口中 WxOpenMaService
WxErrorException
- .public WxOpenMaGetCodePrivacyInfoResult getCodePrivacyInfo() throws WxErrorException
WxOpenMaService
getCodePrivacyInfo
在接口中 WxOpenMaService
WxOpenMaGetCodePrivacyInfoResult
WxErrorException
- wx错误异常public WxOpenMaQueryQuotaResult queryQuota() throws WxErrorException
WxOpenMaService
queryQuota
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic Boolean speedAudit(Long auditId) throws WxErrorException
WxOpenMaService
speedAudit
在接口中 WxOpenMaService
auditId
- the auditidWxErrorException
- the wx error exceptionpublic WxOpenResult addQrcodeJump(WxQrcodeJumpRule wxQrcodeJumpRule) throws WxErrorException
WxOpenMaService
addQrcodeJump
在接口中 WxOpenMaService
wxQrcodeJumpRule
- the wx qrcode jump ruleWxErrorException
- the wx error exceptionpublic WxGetQrcodeJumpResult getQrcodeJump() throws WxErrorException
WxOpenMaService
getQrcodeJump
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxDownlooadQrcodeJumpResult downloadQrcodeJump() throws WxErrorException
WxOpenMaService
downloadQrcodeJump
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenResult deleteQrcodeJump(String prefix) throws WxErrorException
WxOpenMaService
deleteQrcodeJump
在接口中 WxOpenMaService
prefix
- the prefixWxErrorException
- the wx error exceptionpublic WxOpenResult publishQrcodeJump(String prefix) throws WxErrorException
WxOpenMaService
publishQrcodeJump
在接口中 WxOpenMaService
prefix
- the prefixWxErrorException
- the wx error exceptionpublic WxMaScheme generateMaScheme(String jumpWxaPath, String jumpWxaQuery, Boolean isExpire, Long expireTime) throws WxErrorException
generateMaScheme
在接口中 WxOpenMaService
WxErrorException
public WxOpenResult registerShopComponent() throws WxErrorException
WxOpenMaService
registerShopComponent
在接口中 WxOpenMaService
WxErrorException
public WxMaAuditMediaUploadResult uploadMedia(File file) throws WxErrorException
WxOpenMaService
uploadMedia
在接口中 WxOpenMaService
WxErrorException
public WxOpenVersioninfoResult getVersionInfo() throws WxErrorException
WxOpenMaService
getVersionInfo
在接口中 WxOpenMaService
WxErrorException
- the wx error exceptionpublic WxOpenResult setPrefetchDomain(WxMaPrefetchDomain domain) throws WxErrorException
WxOpenMaService
setPrefetchDomain
在接口中 WxOpenMaService
domain
- 预解析域名列表WxOpenResult
WxErrorException
- the wx error exceptionpublic WxOpenMaPrefetchDomainResult getPrefetchDomain() throws WxErrorException
WxOpenMaService
getPrefetchDomain
在接口中 WxOpenMaService
WxOpenMaPrefetchDomainResult
WxErrorException
- he wx error exceptionpublic WxOpenMaApplyLiveInfoResult applyLiveInfo() throws WxErrorException
WxOpenMaService
applyLiveInfo
在接口中 WxOpenMaService
WxOpenMaApplyLiveInfoResult
WxErrorException
- the wx error exceptionpublic WxMaUploadAuthMaterialResult uploadAuthMaterial(File file) throws WxErrorException
WxOpenMaService
uploadAuthMaterial
在接口中 WxOpenMaService
WxErrorException
应使用此处方法处理小程序认证相关业务
Copyright © 2024. All rights reserved.