123
This commit is contained in:
@@ -31,4 +31,10 @@ public class ImOpController {
|
|||||||
imOp.refreshImToken(usercode);
|
imOp.refreshImToken(usercode);
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/refreshImNoSaveToken")
|
||||||
|
public R<Void> refreshImNoSaveToken(){
|
||||||
|
imOp.refreshImNoSaveToken();
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
package com.ruoyi.cai.trd;
|
package com.ruoyi.cai.trd;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson2.JSONArray;
|
import com.alibaba.fastjson2.JSONArray;
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.ruoyi.yunxin.util.RestTemplateUtil;
|
import com.ruoyi.yunxin.util.RestTemplateUtil;
|
||||||
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.http.HttpEntity;
|
import org.springframework.http.HttpEntity;
|
||||||
import org.springframework.http.HttpHeaders;
|
import org.springframework.http.HttpHeaders;
|
||||||
@@ -13,6 +14,7 @@ import org.springframework.stereotype.Component;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
|
@Slf4j
|
||||||
public class Agora {
|
public class Agora {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -54,7 +56,8 @@ public class Agora {
|
|||||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||||
headers.set("Authorization", getAuthorizationHeader());
|
headers.set("Authorization", getAuthorizationHeader());
|
||||||
HttpEntity httpEntity = new HttpEntity<>(bodyData, headers);
|
HttpEntity httpEntity = new HttpEntity<>(bodyData, headers);
|
||||||
RestTemplateUtil.restTemplate.postForObject(url, httpEntity, JSONObject.class);
|
JSONObject jsonObject = RestTemplateUtil.restTemplate.postForObject(url, httpEntity, JSONObject.class);
|
||||||
|
log.info("执行关闭房间号操作:roomId={},response={}",roomId, JSON.toJSONString(jsonObject));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user