mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
一些小的代码调整
This commit is contained in:
parent
eb9c55d39a
commit
ef1558046f
@ -263,84 +263,84 @@ public interface WxMpService {
|
||||
WxMpConfigStorage getWxMpConfigStorage();
|
||||
|
||||
/**
|
||||
* 返回客服接口方法实现类,以方便调用个其各种接口
|
||||
* 返回客服接口方法实现类,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpKefuService
|
||||
*/
|
||||
WxMpKefuService getKefuService();
|
||||
|
||||
/**
|
||||
* 返回素材相关接口方法的实现类对象,以方便调用个其各种接口
|
||||
* 返回素材相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpMaterialService
|
||||
*/
|
||||
WxMpMaterialService getMaterialService();
|
||||
|
||||
/**
|
||||
* 返回菜单相关接口方法的实现类对象,以方便调用个其各种接口
|
||||
* 返回菜单相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpMenuService
|
||||
*/
|
||||
WxMpMenuService getMenuService();
|
||||
|
||||
/**
|
||||
* 返回用户相关接口方法的实现类对象,以方便调用个其各种接口
|
||||
* 返回用户相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpUserService
|
||||
*/
|
||||
WxMpUserService getUserService();
|
||||
|
||||
/**
|
||||
* 返回用户标签相关接口方法的实现类对象,以方便调用个其各种接口
|
||||
* 返回用户标签相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpUserTagService
|
||||
*/
|
||||
WxMpUserTagService getUserTagService();
|
||||
|
||||
/**
|
||||
* 返回二维码相关接口方法的实现类对象,以方便调用个其各种接口
|
||||
* 返回二维码相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpQrcodeService
|
||||
*/
|
||||
WxMpQrcodeService getQrcodeService();
|
||||
|
||||
/**
|
||||
* 返回卡券相关接口方法的实现类对象,以方便调用个其各种接口
|
||||
* 返回卡券相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpCardService
|
||||
*/
|
||||
WxMpCardService getCardService();
|
||||
|
||||
/**
|
||||
* 返回微信支付相关接口方法的实现类对象,以方便调用个其各种接口
|
||||
* 返回微信支付相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpPayService
|
||||
*/
|
||||
WxMpPayService getPayService();
|
||||
|
||||
/**
|
||||
* 返回数据分析统计相关接口方法的实现类对象,以方便调用个其各种接口
|
||||
* 返回数据分析统计相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpDataCubeService
|
||||
*/
|
||||
WxMpDataCubeService getDataCubeService();
|
||||
|
||||
/**
|
||||
* 返回用户黑名单管理相关接口方法的实现类对象,以方便调用其各种接口
|
||||
* 返回用户黑名单管理相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpUserBlacklistService
|
||||
*/
|
||||
WxMpUserBlacklistService getBlackListService();
|
||||
|
||||
/**
|
||||
* 返回门店管理相关接口方法的实现类对象,以方便调用其各种接口
|
||||
* 返回门店管理相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpStoreService
|
||||
*/
|
||||
WxMpStoreService getStoreService();
|
||||
|
||||
/**
|
||||
* 返回模板消息相关接口方法的实现类对象,以方便调用其各种接口
|
||||
* 返回模板消息相关接口方法的实现类对象,以方便调用其各个接口
|
||||
*
|
||||
* @return WxMpTemplateMsgService
|
||||
*/
|
||||
|
@ -219,7 +219,7 @@ public class WxMpPayServiceImpl implements WxMpPayService {
|
||||
private String createSign(Map<String, String> packageParams, String signKey) {
|
||||
SortedMap<String, String> sortedMap = new TreeMap<>(packageParams);
|
||||
|
||||
StringBuffer toSign = new StringBuffer();
|
||||
StringBuilder toSign = new StringBuilder();
|
||||
for (String key : sortedMap.keySet()) {
|
||||
String value = packageParams.get(key);
|
||||
if (null != value && !"".equals(value) && !"sign".equals(key)
|
||||
|
@ -89,7 +89,7 @@ public class WxMpServiceImpl implements WxMpService {
|
||||
|
||||
@Override
|
||||
public String getAccessToken(boolean forceRefresh) throws WxErrorException {
|
||||
Lock lock = configStorage.getAccessTokenLock();
|
||||
Lock lock = this.configStorage.getAccessTokenLock();
|
||||
try {
|
||||
lock.lock();
|
||||
|
||||
@ -136,7 +136,7 @@ public class WxMpServiceImpl implements WxMpService {
|
||||
|
||||
@Override
|
||||
public String getJsapiTicket(boolean forceRefresh) throws WxErrorException {
|
||||
Lock lock = configStorage.getJsapiTicketLock();
|
||||
Lock lock = this.configStorage.getJsapiTicketLock();
|
||||
try {
|
||||
lock.lock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user