zyimg bug
This commit is contained in:
parent
00c20c84d0
commit
8830d018ab
|
@ -1322,6 +1322,7 @@ 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']
|
||||
|
@ -3884,7 +3885,7 @@ def unbindwechat(req):#解绑公众号全部置空
|
|||
user.save()
|
||||
return JsonResponse({"code": 1})
|
||||
|
||||
|
||||
@apicheck_login
|
||||
def unbindmp(req): #解绑小程序仅仅置空mpopenid
|
||||
userid = req.session['userid']
|
||||
user = User.objects.get(userid=userid)
|
||||
|
@ -5582,8 +5583,13 @@ def apioperation(req):
|
|||
for i in data['zyry']:
|
||||
Operzyry.objects.create(oper=obj, operzyry=User.objects.get(userid=i), checked=1)
|
||||
return JsonResponse({"code": 1})
|
||||
zyimg_l = []
|
||||
if 'zyimg' in data:
|
||||
obj.zyimg = '?'.join(data['zyimg'])
|
||||
for i in data['zyimg']:
|
||||
if i:
|
||||
zyimg_l.append(i)
|
||||
if zyimg_l:
|
||||
obj.zyimg = '?'.join(zyimg_l)
|
||||
obj.fxcs = '?'.join(map(str, data['fxcs']))
|
||||
obj.zyzt = {'zyzt': '确认中', 'index': 0}
|
||||
splc = []
|
||||
|
|
Loading…
Reference in New Issue