Browse Source

修改根据查询条件添加房间观看权限

hgw 3 years ago
parent
commit
a1a22f4a1a

+ 3 - 3
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ImLiveRoomPurviewServiceImpl.java

@@ -94,14 +94,14 @@ public class ImLiveRoomPurviewServiceImpl extends ServiceImpl<ImLiveRoomPurviewD
      * @param keys  参数key
      */
     private void checkParam(Map<String, Object> param, String... keys) {
-        String checkVal = null;
+        boolean checkVal = false;
         for (String key : keys) {
             String val = WrapperUtil.toStr(param, key);
             if (StringUtils.isNotBlank(val)) {
-                checkVal = val;
+                checkVal = true;
             }
         }
-        if(StringUtils.isBlank(checkVal)){
+        if(checkVal){
             throw new BizException("必需要有一个查询条件");
         }
     }