更新部分bug
This commit is contained in:
parent
2e45c2a332
commit
5391c500de
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue