|
@@ -194,7 +194,7 @@ class SerialNumberView(View):
|
|
|
'color': 'E24A28' if distribution_type == 0 or user_added == 1 or scan_log == 0 else '4EDF4E'
|
|
|
}
|
|
|
|
|
|
- return response.json(0, {'data': response_data})
|
|
|
+ return response.json(0, response_data)
|
|
|
|
|
|
except Exception as e:
|
|
|
# 记录异常信息
|
|
@@ -295,7 +295,7 @@ class SerialNumberView(View):
|
|
|
'checkCount': count,
|
|
|
'color': color
|
|
|
}
|
|
|
- return response.json(0, {'data': res_data}) # 返回成功响应
|
|
|
+ return response.json(0, res_data) # 返回成功响应
|
|
|
|
|
|
except Exception as e:
|
|
|
# 记录异常信息
|