更新部分bug
This commit is contained in:
parent
2e45c2a332
commit
5391c500de
|
@ -1322,7 +1322,6 @@ def getyh(req):
|
||||||
|
|
||||||
|
|
||||||
def accessyh(req):
|
def accessyh(req):
|
||||||
logger.info(req.get_full_path())
|
|
||||||
userid = req.session['userid']
|
userid = req.session['userid']
|
||||||
yhdata = json.loads(req.body.decode('utf-8'))
|
yhdata = json.loads(req.body.decode('utf-8'))
|
||||||
troubleid = yhdata['troubleid']
|
troubleid = yhdata['troubleid']
|
||||||
|
@ -1704,7 +1703,7 @@ def accessyh(req):
|
||||||
postdict['touser'] = a.todouser.openid
|
postdict['touser'] = a.todouser.openid
|
||||||
send_wechatmsg.delay(postdict)
|
send_wechatmsg.delay(postdict)
|
||||||
return JsonResponse({"code": 1})
|
return JsonResponse({"code": 1})
|
||||||
|
logger.info(a.troubleid + '-' + str(yhdata))
|
||||||
def parttree2(req):
|
def parttree2(req):
|
||||||
userid = req.session['userid']
|
userid = req.session['userid']
|
||||||
companyid = getcompany(userid)
|
companyid = getcompany(userid)
|
||||||
|
@ -3547,8 +3546,11 @@ def gchandle(req):
|
||||||
if 'lookers' in gcdata:
|
if 'lookers' in gcdata:
|
||||||
ulist = gcdata['lookers'].split(',')
|
ulist = gcdata['lookers'].split(',')
|
||||||
for i in ulist:
|
for i in ulist:
|
||||||
x = User.objects.get(userid=i)
|
try:
|
||||||
obj.lookers.add(x)
|
x = User.objects.get(userid=i)
|
||||||
|
obj.lookers.add(x)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
if 'unsafe' in gcdata:
|
if 'unsafe' in gcdata:
|
||||||
olist = gcdata['unsafe']
|
olist = gcdata['unsafe']
|
||||||
for i in olist:
|
for i in olist:
|
||||||
|
|
Loading…
Reference in New Issue