|
@@ -16,6 +16,7 @@ import com.miaxis.feign.dto.fulu.FuluDTO;
|
|
|
import com.miaxis.feign.dto.fulu.FuluGoodsInfo;
|
|
|
import com.miaxis.feign.dto.fulu.FuluResult;
|
|
|
import com.miaxis.feign.service.IFuluService;
|
|
|
+import com.miaxis.feign.service.IWxSendService;
|
|
|
import com.miaxis.feign.service.IWxgetTokenService;
|
|
|
import com.miaxis.system.service.ISysConfigService;
|
|
|
import com.miaxis.wx.domain.WxOrder;
|
|
@@ -61,8 +62,8 @@ public class WxXcxMesageServiceImpl implements IWxXcxMessageService {
|
|
|
@Resource
|
|
|
private RedisCache redisCache;
|
|
|
|
|
|
- @Autowired
|
|
|
- private IWxgetTokenService wxgetTokenService;
|
|
|
+ @Resource
|
|
|
+ private IWxSendService wxSendService;
|
|
|
|
|
|
@Value("${app.appid}")
|
|
|
private String appid;
|
|
@@ -76,7 +77,7 @@ public class WxXcxMesageServiceImpl implements IWxXcxMessageService {
|
|
|
Object cacheObject = redisCache.getCacheObject(Constants.XCX_MESSAGE_TOKEN);
|
|
|
//如果过期,重新获取并保存到redis
|
|
|
if (cacheObject == null){
|
|
|
- String result = wxgetTokenService.getAccessToken("client_credential",appid,secret);
|
|
|
+ String result = wxSendService.getAccessToken("client_credential",appid,secret);
|
|
|
JSONObject json = JSONObject.parseObject(result);
|
|
|
String token = json.getString("access_token");
|
|
|
int expiresIn = json.getIntValue("expires_in");
|