浏览代码

通道设置,添加通道大于零判断

tanghongbin 5 年之前
父节点
当前提交
9e5653bbc4
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Controller/UidSetController.py

+ 4 - 0
Controller/UidSetController.py

@@ -357,6 +357,10 @@ class UidSetView(View):
         userID = tko.userID
         if userID is None:
             return response.json(309)
+
+        channel = int(channel)
+        if channel < 1:
+            return response.json(444, 'channel')
         try:
             redisObj = RedisObject(db=8)
             redisObj.del_data(key='uid_qs_' + userID)