@Local @AutoLoad(value=false) public class WeiXinMPService extends Object implements org.redkale.service.Service
| 限定符和类型 | 类和说明 |
|---|---|
static class |
WeiXinMPService.MpElement |
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
appid |
protected Map<String,WeiXinMPService.MpElement> |
appidElements |
protected String |
appsecret |
protected String |
clientid |
protected Map<String,WeiXinMPService.MpElement> |
clientidElements |
protected String |
conf |
protected org.redkale.convert.json.JsonConvert |
convert |
protected File |
home |
protected Logger |
logger |
protected String |
mptoken |
| 构造器和说明 |
|---|
WeiXinMPService() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.redkale.service.RetResult<String> |
getMPOpenidByCode(String code) |
Map<String,String> |
getMPUserTokenByCode(String code) |
Map<String,String> |
getMPUserTokenByCode(String clientid,
String code) |
Map<String,String> |
getMPUserTokenByCodeAndAppid(String appid,
String code) |
Map<String,String> |
getMPUserTokenByOpenid(String access_token,
String openid) |
org.redkale.service.RetResult<String> |
getMPWxunionidByCode(String code) |
void |
init(org.redkale.util.AnyValue conf) |
protected static String |
sha1(String... strings)
用SHA1算法生成安全签名
|
String |
verifyMPURL(String msgSignature,
String timeStamp,
String nonce,
String echoStr) |
String |
verifyMPURL(String clientid,
String msgSignature,
String timeStamp,
String nonce,
String echoStr) |
String |
verifyMPURLByAppid(String appid,
String msgSignature,
String timeStamp,
String nonce,
String echoStr) |
protected final Logger logger
protected Map<String,WeiXinMPService.MpElement> appidElements
protected Map<String,WeiXinMPService.MpElement> clientidElements
protected org.redkale.convert.json.JsonConvert convert
protected String conf
protected File home
protected String clientid
protected String appid
protected String appsecret
protected String mptoken
public void init(org.redkale.util.AnyValue conf)
init 在接口中 org.redkale.service.Servicepublic org.redkale.service.RetResult<String> getMPOpenidByCode(String code) throws IOException
IOExceptionpublic Map<String,String> getMPUserTokenByCode(String code) throws IOException
IOExceptionpublic Map<String,String> getMPUserTokenByCode(String clientid, String code) throws IOException
IOExceptionpublic Map<String,String> getMPUserTokenByCodeAndAppid(String appid, String code) throws IOException
IOExceptionpublic Map<String,String> getMPUserTokenByOpenid(String access_token, String openid) throws IOException
IOExceptionpublic String verifyMPURL(String msgSignature, String timeStamp, String nonce, String echoStr)
public String verifyMPURL(String clientid, String msgSignature, String timeStamp, String nonce, String echoStr)
public String verifyMPURLByAppid(String appid, String msgSignature, String timeStamp, String nonce, String echoStr)
Copyright © 2020. All rights reserved.