H
- the type parameterP
- the type parameterpublic abstract class BaseWxCpTpServiceImpl<H,P> extends Object implements WxCpTpService, RequestHttp<H,P>
限定符和类型 | 字段和说明 |
---|---|
protected WxCpTpConfigStorage |
configStorage
The Config storage.
|
protected Object |
globalAuthCorpJsApiTicketRefreshLock
全局的是否正在刷新auth_corp_jsapi_ticket的锁.
|
protected Object |
globalJsApiTicketRefreshLock
全局的是否正在刷新jsapi_ticket的锁.
|
protected Object |
globalProviderTokenRefreshLock
The Global provider token refresh lock.
|
protected Object |
globalSuiteAccessTokenRefreshLock
全局的是否正在刷新access token的锁.
|
protected Object |
globalSuiteTicketRefreshLock
全局刷新suite ticket的锁
|
构造器和说明 |
---|
BaseWxCpTpServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
checkSignature(String msgSignature,
String timestamp,
String nonce,
String data)
验证推送过来的消息的正确性
详情请见: 消息体签名校验
|
WxCpTpCorpId2OpenCorpId |
corpId2OpenCorpId(String corpId)
明文corpid转换为加密corpid 为更好地保护企业与用户的数据,第三方应用获取的corpid不再是明文的corpid,将升级为第三方服务商级别的加密corpid。
|
WxJsapiSignature |
createAuthCorpJsApiTicketSignature(String url,
String authCorpId)
创建机构级jsApiTicket签名
详情参见企业微信第三方应用开发文档
|
WxJsapiSignature |
createSuiteJsApiTicketSignature(String url,
String authCorpId)
创建应用级jsapiTicket签名
详情参见:企业微信第三方应用开发文档
|
<T,E> T |
execute(RequestExecutor<T,E> executor,
String uri,
E data)
向微信端发送请求,在这里执行的策略是当发生access_token过期时才去刷新,然后重新执行请求,而不是全局定时请求.
|
<T,E> T |
execute(RequestExecutor<T,E> executor,
String uri,
E data,
boolean withoutSuiteAccessToken)
Execute t.
|
protected <T,E> T |
executeInternal(RequestExecutor<T,E> executor,
String uri,
E data)
Execute internal t.
|
protected <T,E> T |
executeInternal(RequestExecutor<T,E> executor,
String uri,
E data,
boolean withoutSuiteAccessToken)
Execute internal t.
|
void |
expireAccessToken(String authCorpId)
使机构accessToken缓存失效
|
void |
expireAuthCorpJsApiTicket(String authCorpId)
使机构jsapiticket缓存失效
|
void |
expireAuthSuiteJsApiTicket(String authCorpId)
使应用jsapiticket失效
|
void |
expireProviderToken()
使供应商accessToken失效
|
void |
expireSuiteAccessToken()
使套件accessToken缓存失效
|
String |
get(String url,
String queryParam)
当本Service没有实现某个API的时候,可以用这个,针对所有微信API中的GET请求.
|
String |
get(String url,
String queryParam,
boolean withoutSuiteAccessToken)
当本Service没有实现某个API的时候,可以用这个,针对所有微信API中的GET请求.
|
WxCpTpAdmin |
getAdminList(String authCorpId,
Integer agentId)
获取应用的管理员列表
|
WxCpTpAppQrcode |
getAppQrcode(String suiteId,
String appId,
String state,
Integer style,
Integer resultType)
获取应用二维码
|
String |
getAuthCorpJsApiTicket(String authCorpId)
获取授权企业的 jsapi ticket
|
String |
getAuthCorpJsApiTicket(String authCorpId,
boolean forceRefresh)
获取授权企业的 jsapi ticket, 支持强制刷新
|
WxCpTpAuthInfo |
getAuthInfo(String authCorpId,
String permanentCode)
获取企业的授权信息
|
WxAccessToken |
getCorpToken(String authCorpId,
String permanentCode)
获取企业凭证
|
WxAccessToken |
getCorpToken(String authCorpId,
String permanentCode,
boolean forceRefresh)
获取企业凭证, 支持强制刷新
|
WxTpCustomizedAuthUrl |
getCustomizedAuthUrl(String state,
List<String> templateIdList)
获取带参授权链接
查看文档
|
WxTpLoginInfo |
getLoginInfo(String authCode)
获取登录用户信息
文档地址:https://work.weixin.qq.com/api/doc/90001/90143/91125
|
WxCpTpCorp |
getPermanentCode(String authCode)
获取企业永久授权码 .
|
WxCpTpPermanentCodeInfo |
getPermanentCodeInfo(String authCode)
获取企业永久授权码信息
原来的方法实现不全
|
String |
getPreAuthUrl(String redirectUri,
String state)
获取预授权链接
|
String |
getPreAuthUrl(String redirectUri,
String state,
int authType)
获取预授权链接,测试环境下使用
|
RequestHttp<?,?> |
getRequestHttp()
http请求对象.
|
WxSessionManager |
getSessionManager()
获取WxSessionManager 对象
|
String |
getSuiteAccessToken()
获取suite_access_token, 不强制刷新suite_access_token
|
WxAccessToken |
getSuiteAccessTokenEntity()
获取suite_access_token和剩余过期时间, 不强制刷新suite_access_token
|
WxAccessToken |
getSuiteAccessTokenEntity(boolean forceRefresh)
获取suite_access_token和剩余过期时间, 支持强制刷新suite_access_token
|
String |
getSuiteJsApiTicket(String authCorpId)
获取应用的 jsapi ticket
|
String |
getSuiteJsApiTicket(String authCorpId,
boolean forceRefresh)
获取应用的 jsapi ticket, 支持强制刷新
|
String |
getSuiteTicket()
获得suite_ticket,不强制刷新suite_ticket
|
String |
getSuiteTicket(boolean forceRefresh)
获得suite_ticket
由于suite_ticket是微信服务器定时推送(每10分钟),不能主动获取,如果碰到过期只能抛异常
详情请见:文档
|
File |
getTmpDirFile()
Gets tmp dir file.
|
WxCpTpUserDetail |
getUserDetail3rd(String userTicket)
获取访问用户敏感信息
文档地址
|
WxCpTpUserInfo |
getUserInfo3rd(String code)
获取登录/访问用户身份
1、网页授权登录对应的文档
2、企业微信web登录对应的文档
|
String |
getWxCpProviderToken()
获取服务商providerToken
|
WxCpProviderToken |
getWxCpProviderTokenEntity()
获取服务商providerToken和剩余过期时间
|
WxCpProviderToken |
getWxCpProviderTokenEntity(boolean forceRefresh)
获取服务商providerToken和剩余过期时间,支持强制刷新
|
WxCpTpContactService |
getWxCpTpContactService()
get contact service
|
WxCpTpDepartmentService |
getWxCpTpDepartmentService()
get department service
|
WxCpTpEditionService |
getWxCpTpEditionService()
获取应用版本付费版本相关接口服务
|
WxCpTpIdConvertService |
getWxCpTpIdConverService() |
WxCpTpLicenseService |
getWxCpTpLicenseService()
get license service
|
WxCpTpMediaService |
getWxCpTpMediaService()
get media service
|
WxCpTpOAService |
getWxCpTpOAService()
get oa service
|
WxCpTpOAuth2Service |
getWxCpTpOAuth2Service()
构造第三方应用oauth2链接
|
WxCpTpOrderService |
getWxCpTpOrderService()
获取应用版本付费订单相关接口服务
|
WxCpTpUserService |
getWxCpTpUserService()
get user service
|
WxCpMaJsCode2SessionResult |
jsCode2Session(String jsCode)
小程序登录凭证校验
|
String |
post(String url,
String postData)
当本Service没有实现某个API的时候,可以用这个,针对所有微信API中的POST请求.
|
String |
post(String url,
String postData,
boolean withoutSuiteAccessToken)
Post string.
|
void |
setMaxRetryTimes(int maxRetryTimes)
设置当微信系统响应系统繁忙时,最大重试次数.
|
void |
setRetrySleepMillis(int retrySleepMillis)
设置当微信系统响应系统繁忙时,要等待多少 retrySleepMillis(ms) * 2^(重试次数 - 1) 再发起重试.
|
void |
setSuiteTicket(String suiteTicket)
保存企业微信定时推送的suite_ticket,(每10分钟)
详情请见:文档
注意:微信不是固定10分钟推送suite_ticket的, 且suite_ticket的有效期为30分钟
https://work.weixin.qq.com/api/doc/10975#%E8%8E%B7%E5%8F%96%E7%AC%AC%E4%B8%89%E6%96%B9%E5%BA%94%E7%94%A8%E5%87%AD%E8%AF%81
|
void |
setSuiteTicket(String suiteTicket,
int expiresInSeconds)
保存企业微信定时推送的suite_ticket,(每10分钟)
详情请见:文档
注意:微信不是固定10分钟推送suite_ticket的, 且suite_ticket的有效期为30分钟
https://work.weixin.qq.com/api/doc/10975#%E8%8E%B7%E5%8F%96%E7%AC%AC%E4%B8%89%E6%96%B9%E5%BA%94%E7%94%A8%E5%87%AD%E8%AF%81
|
void |
setTmpDirFile(File tmpDirFile)
Sets tmp dir file.
|
void |
setWxCpTpConfigStorage(WxCpTpConfigStorage wxConfigProvider)
注入
WxCpTpConfigStorage 的实现. |
void |
setWxCpTpContactService(WxCpTpContactService wxCpTpContactService)
set contact service
|
void |
setWxCpTpDepartmentService(WxCpTpDepartmentService wxCpTpDepartmentService)
set department service
|
void |
setWxCpTpIdConverService(WxCpTpIdConvertService wxCpTpIdConvertService) |
void |
setWxCpTpLicenseService(WxCpTpLicenseService wxCpTpLicenseService)
set license service
|
void |
setWxCpTpMediaService(WxCpTpMediaService wxCpTpMediaService)
set media service
|
void |
setWxCpTpOAService(WxCpTpOAService wxCpTpOAService)
set oa service
|
void |
setWxCpTpOAuth2Service(WxCpTpOAuth2Service wxCpTpOAuth2Service) |
void |
setWxCpTpOrderService(WxCpTpEditionService wxCpTpEditionService)
设置应用版本付费版本相关接口服务
|
void |
setWxCpTpOrderService(WxCpTpOrderService wxCpTpOrderService)
设置应用版本付费订单相关接口服务
|
void |
setWxCpTpUserService(WxCpTpUserService wxCpTpUserService)
set user service
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSuiteAccessToken, getWxCpTpConfigStorage, initHttp
getRequestHttpClient, getRequestHttpProxy, getRequestType
protected final Object globalSuiteAccessTokenRefreshLock
protected final Object globalSuiteTicketRefreshLock
protected final Object globalJsApiTicketRefreshLock
protected final Object globalAuthCorpJsApiTicketRefreshLock
protected final Object globalProviderTokenRefreshLock
protected WxCpTpConfigStorage configStorage
public boolean checkSignature(String msgSignature, String timestamp, String nonce, String data)
WxCpTpService
验证推送过来的消息的正确性 详情请见: 消息体签名校验
checkSignature
在接口中 WxCpTpService
msgSignature
- 消息签名timestamp
- 时间戳nonce
- 随机数data
- 微信传输过来的数据,有可能是echoStr,有可能是xml消息public String getSuiteAccessToken() throws WxErrorException
WxCpTpService
getSuiteAccessToken
在接口中 WxCpTpService
WxErrorException
- the wx error exception#getSuiteAccessToken(boolean)#getSuiteAccessToken(boolean)
#getSuiteAccessToken(boolean)
public WxAccessToken getSuiteAccessTokenEntity() throws WxErrorException
WxCpTpService
getSuiteAccessTokenEntity
在接口中 WxCpTpService
WxErrorException
- the wx error exceptionpublic WxAccessToken getSuiteAccessTokenEntity(boolean forceRefresh) throws WxErrorException
WxCpTpService
getSuiteAccessTokenEntity
在接口中 WxCpTpService
forceRefresh
- 是否调用微信服务器强制刷新tokenWxErrorException
- the wx error exceptionpublic String getSuiteTicket() throws WxErrorException
WxCpTpService
getSuiteTicket
在接口中 WxCpTpService
WxErrorException
- the wx error exception#getSuiteTicket(boolean)#getSuiteTicket(boolean)#getSuiteTicket(boolean)
public String getSuiteTicket(boolean forceRefresh) throws WxErrorException
WxCpTpService
获得suite_ticket 由于suite_ticket是微信服务器定时推送(每10分钟),不能主动获取,如果碰到过期只能抛异常 详情请见:文档
getSuiteTicket
在接口中 WxCpTpService
forceRefresh
- 强制刷新WxErrorException
- the wx error exception#setSuiteTicket(String)#setSuiteTicket(String)
public void setSuiteTicket(String suiteTicket)
WxCpTpService
保存企业微信定时推送的suite_ticket,(每10分钟) 详情请见:文档 注意:微信不是固定10分钟推送suite_ticket的, 且suite_ticket的有效期为30分钟 https://work.weixin.qq.com/api/doc/10975#%E8%8E%B7%E5%8F%96%E7%AC%AC%E4%B8%89%E6%96%B9%E5%BA%94%E7%94%A8%E5%87%AD%E8%AF%81
setSuiteTicket
在接口中 WxCpTpService
suiteTicket
- the suite ticketpublic void setSuiteTicket(String suiteTicket, int expiresInSeconds)
WxCpTpService
保存企业微信定时推送的suite_ticket,(每10分钟) 详情请见:文档 注意:微信不是固定10分钟推送suite_ticket的, 且suite_ticket的有效期为30分钟 https://work.weixin.qq.com/api/doc/10975#%E8%8E%B7%E5%8F%96%E7%AC%AC%E4%B8%89%E6%96%B9%E5%BA%94%E7%94%A8%E5%87%AD%E8%AF%81
setSuiteTicket
在接口中 WxCpTpService
suiteTicket
- the suite ticketexpiresInSeconds
- the expires in secondspublic String getSuiteJsApiTicket(String authCorpId) throws WxErrorException
WxCpTpService
getSuiteJsApiTicket
在接口中 WxCpTpService
authCorpId
- 授权企业的cropIdWxErrorException
- the wx error exceptionpublic String getSuiteJsApiTicket(String authCorpId, boolean forceRefresh) throws WxErrorException
WxCpTpService
getSuiteJsApiTicket
在接口中 WxCpTpService
authCorpId
- the auth corp idforceRefresh
- the force refreshWxErrorException
- the wx error exceptionpublic String getAuthCorpJsApiTicket(String authCorpId) throws WxErrorException
WxCpTpService
getAuthCorpJsApiTicket
在接口中 WxCpTpService
authCorpId
- 授权企业的cropIdWxErrorException
- the wx error exceptionpublic String getAuthCorpJsApiTicket(String authCorpId, boolean forceRefresh) throws WxErrorException
WxCpTpService
getAuthCorpJsApiTicket
在接口中 WxCpTpService
authCorpId
- the auth corp idforceRefresh
- the force refreshWxErrorException
- the wx error exceptionpublic WxCpMaJsCode2SessionResult jsCode2Session(String jsCode) throws WxErrorException
WxCpTpService
jsCode2Session
在接口中 WxCpTpService
jsCode
- 登录时获取的 codeWxErrorException
- the wx error exceptionpublic WxAccessToken getCorpToken(String authCorpId, String permanentCode) throws WxErrorException
WxCpTpService
getCorpToken
在接口中 WxCpTpService
authCorpId
- 授权方corpidpermanentCode
- 永久授权码,通过get_permanent_code获取WxErrorException
- the wx error exceptionpublic WxAccessToken getCorpToken(String authCorpId, String permanentCode, boolean forceRefresh) throws WxErrorException
WxCpTpService
getCorpToken
在接口中 WxCpTpService
authCorpId
- the auth corp idpermanentCode
- the permanent codeforceRefresh
- the force refreshWxErrorException
- the wx error exceptionpublic WxCpTpCorp getPermanentCode(String authCode) throws WxErrorException
WxCpTpService
getPermanentCode
在接口中 WxCpTpService
authCode
- .WxErrorException
- the wx error exceptionpublic WxCpTpPermanentCodeInfo getPermanentCodeInfo(String authCode) throws WxErrorException
WxCpTpService
原来的方法实现不全
getPermanentCodeInfo
在接口中 WxCpTpService
authCode
- the auth codeWxErrorException
- the wx error exceptionpublic String getPreAuthUrl(String redirectUri, String state) throws WxErrorException
WxCpTpService
获取预授权链接
getPreAuthUrl
在接口中 WxCpTpService
redirectUri
- 授权完成后的回调网址state
- a-zA-Z0-9的参数值(不超过128个字节),用于第三方自行校验session,防止跨域攻击WxErrorException
- the wx error exceptionpublic String getPreAuthUrl(String redirectUri, String state, int authType) throws WxErrorException
WxCpTpService
获取预授权链接,测试环境下使用
getPreAuthUrl
在接口中 WxCpTpService
redirectUri
- 授权完成后的回调网址state
- a-zA-Z0-9的参数值(不超过128个字节),用于第三方自行校验session,防止跨域攻击authType
- 授权类型:0 正式授权, 1 测试授权。WxErrorException
- the wx error exceptionpublic WxCpTpAuthInfo getAuthInfo(String authCorpId, String permanentCode) throws WxErrorException
WxCpTpService
getAuthInfo
在接口中 WxCpTpService
authCorpId
- 授权企业的corpIdpermanentCode
- 授权企业的永久授权码WxErrorException
- the wx error exceptionpublic String get(String url, String queryParam) throws WxErrorException
WxCpTpService
get
在接口中 WxCpTpService
url
- 接口地址queryParam
- 请求参数WxErrorException
- the wx error exceptionpublic String get(String url, String queryParam, boolean withoutSuiteAccessToken) throws WxErrorException
WxCpTpService
get
在接口中 WxCpTpService
url
- 接口地址queryParam
- 请求参数withoutSuiteAccessToken
- 请求是否忽略SuiteAccessToken 默认不忽略-falseWxErrorException
- the wx error exceptionpublic String post(String url, String postData) throws WxErrorException
WxCpTpService
post
在接口中 WxCpTpService
url
- 接口地址postData
- 请求body字符串WxErrorException
- the wx error exceptionpublic String post(String url, String postData, boolean withoutSuiteAccessToken) throws WxErrorException
post
在接口中 WxCpTpService
url
- the urlpostData
- the post datawithoutSuiteAccessToken
- the without suite access tokenWxErrorException
- the wx error exceptionpublic <T,E> T execute(RequestExecutor<T,E> executor, String uri, E data) throws WxErrorException
execute
在接口中 WxCpTpService
T
- 请求值类型E
- 返回值类型executor
- 执行器uri
- 请求地址data
- 参数WxErrorException
- the wx error exceptionpublic <T,E> T execute(RequestExecutor<T,E> executor, String uri, E data, boolean withoutSuiteAccessToken) throws WxErrorException
T
- the type parameterE
- the type parameterexecutor
- the executoruri
- the uridata
- the datawithoutSuiteAccessToken
- the without suite access tokenWxErrorException
- the wx error exceptionprotected <T,E> T executeInternal(RequestExecutor<T,E> executor, String uri, E data) throws WxErrorException
T
- the type parameterE
- the type parameterexecutor
- the executoruri
- the uridata
- the dataWxErrorException
- the wx error exceptionprotected <T,E> T executeInternal(RequestExecutor<T,E> executor, String uri, E data, boolean withoutSuiteAccessToken) throws WxErrorException
T
- the type parameterE
- the type parameterexecutor
- the executoruri
- the uridata
- the datawithoutSuiteAccessToken
- the without suite access tokenWxErrorException
- the wx error exceptionpublic void setWxCpTpConfigStorage(WxCpTpConfigStorage wxConfigProvider)
WxCpTpService
WxCpTpConfigStorage
的实现.setWxCpTpConfigStorage
在接口中 WxCpTpService
wxConfigProvider
- 配置对象public void setRetrySleepMillis(int retrySleepMillis)
WxCpTpService
设置当微信系统响应系统繁忙时,要等待多少 retrySleepMillis(ms) * 2^(重试次数 - 1) 再发起重试. 默认:1000ms
setRetrySleepMillis
在接口中 WxCpTpService
retrySleepMillis
- 重试休息时间public void setMaxRetryTimes(int maxRetryTimes)
WxCpTpService
设置当微信系统响应系统繁忙时,最大重试次数. 默认:5次
setMaxRetryTimes
在接口中 WxCpTpService
maxRetryTimes
- 最大重试次数public File getTmpDirFile()
public void setTmpDirFile(File tmpDirFile)
tmpDirFile
- the tmp dir filepublic RequestHttp<?,?> getRequestHttp()
WxCpTpService
getRequestHttp
在接口中 WxCpTpService
public WxSessionManager getSessionManager()
WxCpTpService
getSessionManager
在接口中 WxCpTpService
public WxCpTpUserInfo getUserInfo3rd(String code) throws WxErrorException
WxCpTpService
获取登录/访问用户身份 1、网页授权登录对应的文档 2、企业微信web登录对应的文档
getUserInfo3rd
在接口中 WxCpTpService
code
- the codeWxErrorException
- the wx error exceptionpublic WxCpTpUserDetail getUserDetail3rd(String userTicket) throws WxErrorException
WxCpTpService
获取访问用户敏感信息 文档地址
getUserDetail3rd
在接口中 WxCpTpService
userTicket
- the user ticketWxErrorException
- the wx error exceptionpublic WxTpLoginInfo getLoginInfo(String authCode) throws WxErrorException
WxCpTpService
文档地址:https://work.weixin.qq.com/api/doc/90001/90143/91125
getLoginInfo
在接口中 WxCpTpService
authCode
- the auth codeWxErrorException
- the wx error exceptionpublic WxTpCustomizedAuthUrl getCustomizedAuthUrl(String state, List<String> templateIdList) throws WxErrorException
WxCpTpService
getCustomizedAuthUrl
在接口中 WxCpTpService
state
- statetemplateIdList
- 代开发自建应用模版ID列表,数量不能超过9个WxErrorException
- the wx error exceptionpublic String getWxCpProviderToken() throws WxErrorException
WxCpTpService
getWxCpProviderToken
在接口中 WxCpTpService
WxErrorException
- the wx error exceptionpublic WxCpProviderToken getWxCpProviderTokenEntity() throws WxErrorException
WxCpTpService
getWxCpProviderTokenEntity
在接口中 WxCpTpService
WxErrorException
- the wx error exceptionpublic WxCpProviderToken getWxCpProviderTokenEntity(boolean forceRefresh) throws WxErrorException
WxCpTpService
getWxCpProviderTokenEntity
在接口中 WxCpTpService
forceRefresh
- the force refreshWxErrorException
- the wx error exceptionpublic WxCpTpContactService getWxCpTpContactService()
WxCpTpService
getWxCpTpContactService
在接口中 WxCpTpService
public WxCpTpDepartmentService getWxCpTpDepartmentService()
WxCpTpService
getWxCpTpDepartmentService
在接口中 WxCpTpService
public WxCpTpMediaService getWxCpTpMediaService()
WxCpTpService
getWxCpTpMediaService
在接口中 WxCpTpService
public WxCpTpOAService getWxCpTpOAService()
WxCpTpService
getWxCpTpOAService
在接口中 WxCpTpService
public WxCpTpUserService getWxCpTpUserService()
WxCpTpService
getWxCpTpUserService
在接口中 WxCpTpService
public void setWxCpTpContactService(WxCpTpContactService wxCpTpContactService)
WxCpTpService
setWxCpTpContactService
在接口中 WxCpTpService
wxCpTpContactService
- the contact servicepublic void setWxCpTpDepartmentService(WxCpTpDepartmentService wxCpTpDepartmentService)
WxCpTpService
setWxCpTpDepartmentService
在接口中 WxCpTpService
wxCpTpDepartmentService
- the department servicepublic void setWxCpTpMediaService(WxCpTpMediaService wxCpTpMediaService)
WxCpTpService
setWxCpTpMediaService
在接口中 WxCpTpService
wxCpTpMediaService
- the media servicepublic void setWxCpTpOAService(WxCpTpOAService wxCpTpOAService)
WxCpTpService
setWxCpTpOAService
在接口中 WxCpTpService
wxCpTpOAService
- the oa servicepublic WxCpTpLicenseService getWxCpTpLicenseService()
WxCpTpService
getWxCpTpLicenseService
在接口中 WxCpTpService
public void setWxCpTpLicenseService(WxCpTpLicenseService wxCpTpLicenseService)
WxCpTpService
setWxCpTpLicenseService
在接口中 WxCpTpService
wxCpTpLicenseService
- the oa servicepublic void setWxCpTpUserService(WxCpTpUserService wxCpTpUserService)
WxCpTpService
setWxCpTpUserService
在接口中 WxCpTpService
wxCpTpUserService
- the set user servicepublic WxCpTpAdmin getAdminList(String authCorpId, Integer agentId) throws WxErrorException
WxCpTpService
getAdminList
在接口中 WxCpTpService
authCorpId
- the auth corp idagentId
- the agent idWxErrorException
- the wx error exceptionpublic WxCpTpAppQrcode getAppQrcode(String suiteId, String appId, String state, Integer style, Integer resultType) throws WxErrorException
WxCpTpService
getAppQrcode
在接口中 WxCpTpService
suiteId
- 第三方应用id(即ww或wx开头的suiteid)appId
- 第三方应用id,单应用不需要该参数,多应用旧套件才需要传该参数。若不传默认为1state
- state值,用于区分不同的安装渠道style
- 二维码样式选项,默认为不带说明外框小尺寸。0:带说明外框的二维码,适合于实体物料,1:带说明外框的二维码,适合于屏幕类,2:不带说明外框(小尺寸),3:不带说明外框(中尺寸),4:不带说明外框(大尺寸)。具体样式与服务商管理端获取到的应用二维码样式一一对应,参见下文二维码样式说明resultType
- 结果返回方式,默认为返回二维码图片buffer。1:二维码图片buffer,2:二维码图片urlWxErrorException
- the wx error exceptionpublic WxCpTpCorpId2OpenCorpId corpId2OpenCorpId(String corpId) throws WxErrorException
WxCpTpService
corpId2OpenCorpId
在接口中 WxCpTpService
WxErrorException
public WxJsapiSignature createAuthCorpJsApiTicketSignature(String url, String authCorpId) throws WxErrorException
WxCpTpService
createAuthCorpJsApiTicketSignature
在接口中 WxCpTpService
url
- 调用JS接口页面的完整URLauthCorpId
- the auth corp idWxErrorException
- the wx error exceptionpublic WxJsapiSignature createSuiteJsApiTicketSignature(String url, String authCorpId) throws WxErrorException
WxCpTpService
createSuiteJsApiTicketSignature
在接口中 WxCpTpService
url
- 调用JS接口页面的完整URLauthCorpId
- the auth corp idWxErrorException
- the wx error exceptionpublic void expireSuiteAccessToken()
WxCpTpService
expireSuiteAccessToken
在接口中 WxCpTpService
public void expireAccessToken(String authCorpId)
WxCpTpService
expireAccessToken
在接口中 WxCpTpService
authCorpId
- 机构idpublic void expireAuthCorpJsApiTicket(String authCorpId)
WxCpTpService
expireAuthCorpJsApiTicket
在接口中 WxCpTpService
authCorpId
- 机构idpublic void expireAuthSuiteJsApiTicket(String authCorpId)
WxCpTpService
expireAuthSuiteJsApiTicket
在接口中 WxCpTpService
authCorpId
- 机构idpublic void expireProviderToken()
WxCpTpService
expireProviderToken
在接口中 WxCpTpService
public WxCpTpOrderService getWxCpTpOrderService()
WxCpTpService
getWxCpTpOrderService
在接口中 WxCpTpService
public void setWxCpTpOrderService(WxCpTpOrderService wxCpTpOrderService)
WxCpTpService
setWxCpTpOrderService
在接口中 WxCpTpService
wxCpTpOrderService
- the wx cp tp order servicepublic WxCpTpEditionService getWxCpTpEditionService()
WxCpTpService
getWxCpTpEditionService
在接口中 WxCpTpService
public void setWxCpTpOrderService(WxCpTpEditionService wxCpTpEditionService)
WxCpTpService
setWxCpTpOrderService
在接口中 WxCpTpService
wxCpTpEditionService
- the wx cp tp edition servicepublic WxCpTpIdConvertService getWxCpTpIdConverService()
getWxCpTpIdConverService
在接口中 WxCpTpService
public void setWxCpTpIdConverService(WxCpTpIdConvertService wxCpTpIdConvertService)
setWxCpTpIdConverService
在接口中 WxCpTpService
public WxCpTpOAuth2Service getWxCpTpOAuth2Service()
WxCpTpService
getWxCpTpOAuth2Service
在接口中 WxCpTpService
public void setWxCpTpOAuth2Service(WxCpTpOAuth2Service wxCpTpOAuth2Service)
setWxCpTpOAuth2Service
在接口中 WxCpTpService
Copyright © 2024. All rights reserved.