Эх сурвалжийг харах

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

tanghongbin 5 жил өмнө
parent
commit
9e5653bbc4

+ 4 - 0
Controller/UidSetController.py

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