|
@@ -204,4 +204,13 @@ class CommonService:
|
|
|
if lang == 'cn':
|
|
|
return time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(int(n_time)))
|
|
|
else:
|
|
|
- return time.strftime('%m-%d-%Y %H:%M:%S', time.gmtime(int(n_time)))
|
|
|
+ return time.strftime('%m-%d-%Y %H:%M:%S', time.gmtime(int(n_time)))
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def app_log_log(uid='None', tz='0'):
|
|
|
+ file_path = '/'.join((BASE_DIR, 'static/app_log.log'))
|
|
|
+ file = open(file_path, 'a+')
|
|
|
+ file.write("uid:" + uid + "; " + "; tz:" + tz)
|
|
|
+ file.write('\n')
|
|
|
+ file.flush()
|
|
|
+ file.close()
|