|
@@ -1,6 +1,7 @@
|
|
|
package com.fdkankan.tk.controller;
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.fdkankan.tk.common.ResultCode;
|
|
|
import com.fdkankan.tk.common.ResultData;
|
|
|
import com.fdkankan.tk.entity.TencentYun;
|
|
@@ -30,9 +31,11 @@ public class TencentYunController {
|
|
|
@GetMapping("/rtcMedia/getToken")
|
|
|
public ResultData getRtcType(@RequestParam(required = false) String userId,
|
|
|
@RequestParam(required = false) Integer roleId,
|
|
|
- @RequestParam(required = false) String channelName){
|
|
|
-
|
|
|
- List<TencentYun> list = tencentYunService.list();
|
|
|
+ @RequestParam(required = false) String channelName,
|
|
|
+ @RequestParam(required = false,defaultValue = "4dkankan") String platform){
|
|
|
+ LambdaQueryWrapper<TencentYun> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.eq(TencentYun::getPlatform,platform);
|
|
|
+ List<TencentYun> list = tencentYunService.list(wrapper);
|
|
|
if(list == null || list.size() <=0){
|
|
|
throw new BusinessException(ResultCode.TENCENT_YUN_EMPTY);
|
|
|
}
|