微信媒体返回
This commit is contained in:
parent
4fd8e4ecef
commit
3c2cf69cbe
@ -185,6 +185,7 @@ public class WechatLivePlayerUtil {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求微信接口
|
* 请求微信接口
|
||||||
|
*
|
||||||
* @param url 链接
|
* @param url 链接
|
||||||
* @param map 参数
|
* @param map 参数
|
||||||
* @return 返回内容
|
* @return 返回内容
|
||||||
@ -200,7 +201,7 @@ public class WechatLivePlayerUtil {
|
|||||||
log.info("微信小程序请求结果:" + content);
|
log.info("微信小程序请求结果:" + content);
|
||||||
//获取请求内容,如果token过期则重新获取,如果出错则抛出错误
|
//获取请求内容,如果token过期则重新获取,如果出错则抛出错误
|
||||||
JSONObject jsonObject = new JSONObject(content);
|
JSONObject jsonObject = new JSONObject(content);
|
||||||
if (jsonObject.get("errcode").equals("0")) {
|
if (jsonObject.get("media_id") != null) {
|
||||||
return jsonObject;
|
return jsonObject;
|
||||||
} else if (jsonObject.get("errcode").equals("40001")) {
|
} else if (jsonObject.get("errcode").equals("40001")) {
|
||||||
wechatAccessTokenUtil.removeAccessToken(ClientTypeEnum.WECHAT_MP);
|
wechatAccessTokenUtil.removeAccessToken(ClientTypeEnum.WECHAT_MP);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user