update emmm
This commit is contained in:
parent
bd4d617f10
commit
2bba704dd8
2 changed files with 17 additions and 6 deletions
4
route.py
4
route.py
|
@ -1,5 +1,6 @@
|
|||
from worker import emmm
|
||||
|
||||
|
||||
def ZZRouter(data):
|
||||
uid = data['user_id']
|
||||
gid = data['group_id']
|
||||
|
@ -20,4 +21,7 @@ def ZZRouter(data):
|
|||
Message = Ans.CheckPermission()
|
||||
if Message == 0:
|
||||
Message = Ans.GETMSG()
|
||||
elif Message == -1:
|
||||
pass
|
||||
else:
|
||||
Ans.sendmsg(Message)
|
|
@ -1,6 +1,13 @@
|
|||
from zzcore import StdAns
|
||||
|
||||
|
||||
class Ans(StdAns):
|
||||
NotAllowGroup = [204097403]
|
||||
|
||||
def CheckPermission(self):
|
||||
if self.gid not in self.NotAllowGroup:
|
||||
return -1
|
||||
|
||||
def GETMSG(self):
|
||||
if self.parms:
|
||||
return '咱也不知道' + self.parms[0] + '是啥呢~'
|
||||
|
|
Loading…
Reference in a new issue