|
@@ -6,6 +6,7 @@ import com.fdkankan.tk.common.ResultData;
|
|
|
import com.fdkankan.tk.entity.TencentYun;
|
|
|
import com.fdkankan.tk.exception.BusinessException;
|
|
|
import com.fdkankan.tk.service.ITencentYunService;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -27,9 +28,9 @@ public class TencentYunController {
|
|
|
|
|
|
|
|
|
@GetMapping("/rtcMedia/getToken")
|
|
|
- public ResultData getRtcType(@RequestParam(required = true) String userId,
|
|
|
- @RequestParam(required = true) Integer roleId,
|
|
|
- @RequestParam(required = true) String channelName){
|
|
|
+ public ResultData getRtcType(@RequestParam(required = false) String userId,
|
|
|
+ @RequestParam(required = false) Integer roleId,
|
|
|
+ @RequestParam(required = false) String channelName){
|
|
|
|
|
|
List<TencentYun> list = tencentYunService.list();
|
|
|
if(list == null || list.size() <=0){
|