|
@@ -217,6 +217,9 @@ def do_upload_uid(request):
|
|
if (not MAC['is_active']) or (current_mac[-8:] == 'FF.FF.FF'):
|
|
if (not MAC['is_active']) or (current_mac[-8:] == 'FF.FF.FF'):
|
|
return response.json(175)
|
|
return response.json(175)
|
|
|
|
|
|
|
|
+ area = 0
|
|
|
|
+ if vpg_id != 1:
|
|
|
|
+ area = 1
|
|
# path = '/'.join((BASE_DIR, 'static/uid')).replace('\\', '/') + '/'
|
|
# path = '/'.join((BASE_DIR, 'static/uid')).replace('\\', '/') + '/'
|
|
# if not os.path.exists(path):
|
|
# if not os.path.exists(path):
|
|
# os.makedirs(path)
|
|
# os.makedirs(path)
|
|
@@ -237,7 +240,7 @@ def do_upload_uid(request):
|
|
status=0,
|
|
status=0,
|
|
add_time=add_time,
|
|
add_time=add_time,
|
|
update_time=update_time,
|
|
update_time=update_time,
|
|
- area=0, # 关联vgp表已有区域信息,可以考虑去掉
|
|
|
|
|
|
+ area=area, # 关联vgp表已有区域信息,可以考虑去掉
|
|
vpg_id=vpg_id,
|
|
vpg_id=vpg_id,
|
|
)
|
|
)
|
|
if len(uid) == 14: # 宸云
|
|
if len(uid) == 14: # 宸云
|