|
@@ -71,10 +71,14 @@ class AppLogView(View):
|
|
|
if uid is None or average_delay is None or status is None or filename is None:
|
|
|
return response.json(444)
|
|
|
else:
|
|
|
- ModelService.app_log_log(userID, uid)
|
|
|
+ if len(uid) < 20:
|
|
|
+ return response.json(444, 'uid')
|
|
|
+
|
|
|
+ # ModelService.app_log_log(userID, uid)
|
|
|
now_time = int(time.time())
|
|
|
+ uid = uid.strip()
|
|
|
data = {
|
|
|
- 'uid': uid.strip(),
|
|
|
+ 'uid': uid[0:20],
|
|
|
'average_delay': average_delay,
|
|
|
'status': status,
|
|
|
'filename': filename,
|