public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaService
增加开放平台代小程序管理服务能力
说明:这里让这个服务公开便于调用者模拟本地测试服务
GSON, urlPathSupportApiSignatureAPI_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_DOMAINGET_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, initHttpaddConfig, 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, uploadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthService, getBasicService, getEmbeddedService, getIcpService, getPrivacyService, getShoppingOrdersServiceaddConfig, 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, switchoverTopublic WxOpenMaServiceImpl(WxOpenComponentService wxOpenComponentService, String appId, WxMaConfig wxMaConfig)
public WxMaJscode2SessionResult jsCode2SessionInfo(String jsCode) throws WxErrorException
jsCode2SessionInfo 在接口中 WxMaServicejsCode2SessionInfo 在类中 BaseWxMaServiceImplWxErrorExceptionpublic WxMaConfig getWxMaConfig()
getWxMaConfig 在接口中 WxMaServicegetWxMaConfig 在类中 BaseWxMaServiceImplpublic String getAccessToken(boolean forceRefresh) throws WxErrorException
getAccessToken 在接口中 WxMaServicegetAccessToken 在类中 BaseWxMaServiceImplWxErrorExceptionpublic WxOpenMaDomainResult getDomain() throws WxErrorException
WxOpenMaServicegetDomain 在接口中 WxOpenMaServiceWxErrorException - 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
WxOpenMaServicemodifyDomain 在接口中 WxOpenMaServiceaction - 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
WxOpenMaServicegetWebViewDomain 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenMaWebDomainResult getWebViewDomainInfo() throws WxErrorException
WxOpenMaServicegetWebViewDomainInfo 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic String setWebViewDomain(String action, List<String> domainList) throws WxErrorException
WxOpenMaServicesetWebViewDomain 在接口中 WxOpenMaServiceaction - add添加, delete删除, set覆盖domainList - the domain listWxErrorException - the wx error exceptionpublic WxOpenMaWebDomainResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException
WxOpenMaServicesetWebViewDomainInfo 在接口中 WxOpenMaServiceaction - add添加, delete删除, set覆盖domainList - the domain listWxErrorException - the wx error exceptionpublic WxOpenMaDomainConfirmFileResult getWebviewDomainConfirmFile() throws WxErrorException
WxOpenMaServicegetWebviewDomainConfirmFile 在接口中 WxOpenMaServiceWxErrorException - 操作失败时抛出,具体错误码请看文档public String getAccountBasicInfo() throws WxErrorException
WxOpenMaServicegetAccountBasicInfo 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenMaBindTesterResult bindTester(String wechatId) throws WxErrorException
WxOpenMaServicebindTester 在接口中 WxOpenMaServicewechatId - 体验者微信号(不是openid)WxErrorException - the wx error exceptionpublic WxOpenResult unbindTester(String wechatId) throws WxErrorException
WxOpenMaServiceunbindTester 在接口中 WxOpenMaServicewechatId - 体验者微信号(不是openid)WxErrorException - the wx error exceptionpublic WxOpenResult unbindTesterByUserStr(String userStr) throws WxErrorException
WxOpenMaServiceunbindTesterByUserStr 在接口中 WxOpenMaServiceuserStr - 人员对应的唯一字符串, 可通过获取已绑定的体验者列表获取人员对应的字符串WxErrorException - the wx error exceptionpublic WxOpenMaTesterListResult getTesterList() throws WxErrorException
WxOpenMaServicegetTesterList 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenResult changeWxaSearchStatus(Integer status) throws WxErrorException
WxOpenMaServicechangeWxaSearchStatus 在接口中 WxOpenMaServicestatus - 1表示不可搜索,0表示可搜索WxErrorException - the wx error exceptionpublic WxOpenMaSearchStatusResult getWxaSearchStatus() throws WxErrorException
WxOpenMaServicegetWxaSearchStatus 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenMaShowItemResult getShowWxaItem() throws WxErrorException
WxOpenMaServicegetShowWxaItem 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenResult updateShowWxaItem(Integer flag, String mpAppId) throws WxErrorException
WxOpenMaServiceupdateShowWxaItem 在接口中 WxOpenMaServiceflag - 0 关闭,1 开启mpAppId - 如果开启,需要传新的公众号appidWxErrorException - the wx error exceptionpublic WxOpenResult codeCommit(Long templateId, String userVersion, String userDesc, Object extJsonObject) throws WxErrorException
WxOpenMaServicecodeCommit 在接口中 WxOpenMaServicetemplateId - 代码模板IDuserVersion - 用户定义版本userDesc - 用户定义版本描述extJsonObject - 为了方便第三方平台的开发者引入 extAppid 的开发调试工作,引入ext.json配置文件概念,该参数则是用于控制ext.json配置文件的内容。
如果是普通模板可以使用 WxMaOpenCommitExtInfo 类构造参数,
如果是标准模板可支持的参数为:{"extAppid":'', "ext": {}, "window": {}} 所以可以使用 WxMaOpenCommitStandardExt 构造参数WxErrorException - the wx error exceptionWxMaOpenCommitStandardExt,
WxMaOpenCommitExtInfopublic File getTestQrcode(String pagePath, Map<String,String> params) throws WxErrorException
WxOpenMaServicegetTestQrcode 在接口中 WxOpenMaServicepagePath - the page pathparams - the paramsWxErrorException - the wx error exceptionpublic WxOpenResult verifyBetaWeapp(WxOpenMaVerifyBetaWeappMessage verifyBetaWeappMessage) throws WxErrorException
WxOpenMaServiceverifyBetaWeapp 在接口中 WxOpenMaServiceverifyBetaWeappMessage - the verify mini program messageWxErrorException - the wx error exceptionpublic WxOpenMaCategoryListResult getCategoryList() throws WxErrorException
WxOpenMaService注意:该接口可获取已设置的二级类目及用于代码审核的可选三级类目。
getCategoryList 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenMaPageListResult getPageList() throws WxErrorException
WxOpenMaServicegetPageList 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenMaSubmitAuditResult submitAudit(WxOpenMaSubmitAuditMessage submitAuditMessage) throws WxErrorException
WxOpenMaServicesubmitAudit 在接口中 WxOpenMaServicesubmitAuditMessage - the submit audit messageWxErrorException - the wx error exceptionpublic WxOpenMaQueryAuditResult getAuditStatus(Long auditId) throws WxErrorException
WxOpenMaServicegetAuditStatus 在接口中 WxOpenMaServiceauditId - the auditidWxErrorException - the wx error exceptionpublic WxOpenMaQueryAuditResult getLatestAuditStatus() throws WxErrorException
WxOpenMaServicegetLatestAuditStatus 在接口中 WxOpenMaServiceWxErrorException - 。public WxOpenResult releaseAudited() throws WxErrorException
WxOpenMaService请填写空的数据包,POST的json数据包为空即可。
releaseAudited 在接口中 WxOpenMaServiceWxErrorException - 。public WxOpenResult changeVisitStatus(String action) throws WxErrorException
WxOpenMaServicechangeVisitStatus 在接口中 WxOpenMaServiceaction - the actionWxErrorException - the wx error exceptionpublic WxOpenMaVisitStatusResult getVisitStatus() throws WxErrorException
WxOpenMaServicegetVisitStatus 在接口中 WxOpenMaServiceWxErrorException - 查询失败时返回,具体错误码请看此接口的注释文档public WxOpenResult revertCodeRelease() throws WxErrorException
WxOpenMaServicerevertCodeRelease 在接口中 WxOpenMaServiceWxErrorException - 。public WxOpenMaHistoryVersionResult getHistoryVersion() throws WxErrorException
WxOpenMaServicegetHistoryVersion 在接口中 WxOpenMaServiceWxErrorException - 如果调用微信接口失败抛出此异常public WxOpenResult undoCodeAudit() throws WxErrorException
WxOpenMaService单个帐号每天审核撤回次数最多不超过1次,一个月不超过10次。
undoCodeAudit 在接口中 WxOpenMaServiceWxErrorException - 。public String getSupportVersion() throws WxErrorException
WxOpenMaServicegetSupportVersion 在接口中 WxOpenMaServiceWxErrorException - 。public WxOpenMaWeappSupportVersionResult getSupportVersionInfo() throws WxErrorException
WxOpenMaServicegetSupportVersionInfo 在接口中 WxOpenMaServiceWxErrorException - .public String setSupportVersion(String version) throws WxErrorException
WxOpenMaServicesetSupportVersion 在接口中 WxOpenMaServiceversion - the versionWxErrorException - the wx error exceptionpublic WxOpenResult setSupportVersionInfo(String version) throws WxErrorException
WxOpenMaServicesetSupportVersionInfo 在接口中 WxOpenMaServiceversion - the versionWxErrorException - the wx error exceptionpublic WxOpenResult grayRelease(Integer grayPercentage) throws WxErrorException
WxOpenMaServicegrayRelease 在接口中 WxOpenMaServicegrayPercentage - 灰度的百分比,1到100的整数WxErrorException - .public WxOpenResult revertGrayRelease() throws WxErrorException
WxOpenMaServicerevertGrayRelease 在接口中 WxOpenMaServiceWxErrorException - .public WxOpenMaGrayReleasePlanResult getGrayReleasePlan() throws WxErrorException
WxOpenMaServicegetGrayReleasePlan 在接口中 WxOpenMaServiceWxErrorException - .public WxOpenMaGetCodePrivacyInfoResult getCodePrivacyInfo() throws WxErrorException
WxOpenMaServicegetCodePrivacyInfo 在接口中 WxOpenMaServiceWxOpenMaGetCodePrivacyInfoResultWxErrorException - wx错误异常public WxOpenMaQueryQuotaResult queryQuota() throws WxErrorException
WxOpenMaServicequeryQuota 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic Boolean speedAudit(Long auditId) throws WxErrorException
WxOpenMaServicespeedAudit 在接口中 WxOpenMaServiceauditId - the auditidWxErrorException - the wx error exceptionpublic WxOpenResult addQrcodeJump(WxQrcodeJumpRule wxQrcodeJumpRule) throws WxErrorException
WxOpenMaServiceaddQrcodeJump 在接口中 WxOpenMaServicewxQrcodeJumpRule - the wx qrcode jump ruleWxErrorException - the wx error exceptionpublic WxGetQrcodeJumpResult getQrcodeJump() throws WxErrorException
WxOpenMaServicegetQrcodeJump 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxDownlooadQrcodeJumpResult downloadQrcodeJump() throws WxErrorException
WxOpenMaServicedownloadQrcodeJump 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenResult deleteQrcodeJump(String prefix) throws WxErrorException
WxOpenMaServicedeleteQrcodeJump 在接口中 WxOpenMaServiceprefix - the prefixWxErrorException - the wx error exceptionpublic WxOpenResult publishQrcodeJump(String prefix) throws WxErrorException
WxOpenMaServicepublishQrcodeJump 在接口中 WxOpenMaServiceprefix - the prefixWxErrorException - the wx error exceptionpublic WxMaScheme generateMaScheme(String jumpWxaPath, String jumpWxaQuery, Boolean isExpire, Long expireTime) throws WxErrorException
generateMaScheme 在接口中 WxOpenMaServiceWxErrorExceptionpublic WxOpenResult registerShopComponent() throws WxErrorException
WxOpenMaServiceregisterShopComponent 在接口中 WxOpenMaServiceWxErrorExceptionpublic WxMaAuditMediaUploadResult uploadMedia(File file) throws WxErrorException
WxOpenMaServiceuploadMedia 在接口中 WxOpenMaServiceWxErrorExceptionpublic WxOpenVersioninfoResult getVersionInfo() throws WxErrorException
WxOpenMaServicegetVersionInfo 在接口中 WxOpenMaServiceWxErrorException - the wx error exceptionpublic WxOpenResult setPrefetchDomain(WxMaPrefetchDomain domain) throws WxErrorException
WxOpenMaServicesetPrefetchDomain 在接口中 WxOpenMaServicedomain - 预解析域名列表WxOpenResultWxErrorException - the wx error exceptionpublic WxOpenMaPrefetchDomainResult getPrefetchDomain() throws WxErrorException
WxOpenMaServicegetPrefetchDomain 在接口中 WxOpenMaServiceWxOpenMaPrefetchDomainResultWxErrorException - he wx error exceptionpublic WxOpenMaApplyLiveInfoResult applyLiveInfo() throws WxErrorException
WxOpenMaServiceapplyLiveInfo 在接口中 WxOpenMaServiceWxOpenMaApplyLiveInfoResultWxErrorException - the wx error exceptionpublic WxMaUploadAuthMaterialResult uploadAuthMaterial(File file) throws WxErrorException
WxOpenMaServiceuploadAuthMaterial 在接口中 WxOpenMaServiceWxErrorException应使用此处方法处理小程序认证相关业务Copyright © 2024. All rights reserved.