更新部分bug

This commit is contained in:
caoqianming 2022-04-17 22:26:41 +08:00
parent 2e45c2a332
commit 5391c500de
1 changed files with 6 additions and 4 deletions

View File

@ -1322,7 +1322,6 @@ def getyh(req):
def accessyh(req):
logger.info(req.get_full_path())
userid = req.session['userid']
yhdata = json.loads(req.body.decode('utf-8'))
troubleid = yhdata['troubleid']
@ -1704,7 +1703,7 @@ def accessyh(req):
postdict['touser'] = a.todouser.openid
send_wechatmsg.delay(postdict)
return JsonResponse({"code": 1})
logger.info(a.troubleid + '-' + str(yhdata))
def parttree2(req):
userid = req.session['userid']
companyid = getcompany(userid)
@ -3547,8 +3546,11 @@ def gchandle(req):
if 'lookers' in gcdata:
ulist = gcdata['lookers'].split(',')
for i in ulist:
x = User.objects.get(userid=i)
obj.lookers.add(x)
try:
x = User.objects.get(userid=i)
obj.lookers.add(x)
except:
pass
if 'unsafe' in gcdata:
olist = gcdata['unsafe']
for i in olist: