Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8c83609a5b | ||
![]() |
de272df906 | ||
![]() |
d4f41f13f6 | ||
![]() |
6f713ee8fa | ||
![]() |
b2bdfd786d | ||
![]() |
83f6baf6af | ||
![]() |
aa00cfdef6 | ||
![]() |
8bb40f1c0a | ||
![]() |
1d997f58a3 | ||
![]() |
ed7927f98f |
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ Thumbs.db
|
|||||||
.pem
|
.pem
|
||||||
test_*
|
test_*
|
||||||
*.pid
|
*.pid
|
||||||
|
.vscode/settings.json
|
||||||
|
@ -140,7 +140,7 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
input = json.loads(self.get_query_argument('body'))
|
input = json.loads(self.get_query_argument('body'))
|
||||||
gameid = input['gameid']
|
gameid = input['gameid']
|
||||||
channelid=input.get('channelid',None) or 6001
|
channelid=input.get('channelid',None) or 6001
|
||||||
area=input.get('area',0)
|
area=input.get('area',None)
|
||||||
locationid = input.get('locationid',0)
|
locationid = input.get('locationid',0)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
|
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
|
||||||
@ -190,7 +190,8 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
temp = my_redis.hgetall(f"adinfo::{id}::info")
|
temp = my_redis.hgetall(f"adinfo::{id}::info")
|
||||||
if temp:
|
if temp:
|
||||||
info.append(temp)
|
info.append(temp)
|
||||||
result = {'errcode': 0, "errmsg": '', "message": {"totoal": len(info), "result": info}}
|
info_new = sorted(info, key=lambda s: int(s.get('ad_sort', 9999)))
|
||||||
|
result = {'errcode': 0, "errmsg": '', "message": {"totoal": len(info_new), "result": info_new}}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
result = {'errcode': 1, "errmsg": e}
|
result = {'errcode': 1, "errmsg": e}
|
||||||
return self.write(result)
|
return self.write(result)
|
||||||
|
@ -95,7 +95,7 @@ def produce_task():
|
|||||||
for k, v in zip(field, line):
|
for k, v in zip(field, line):
|
||||||
item[k] = v
|
item[k] = v
|
||||||
|
|
||||||
item['createtime'] = datetime.datetime.strftime(item['createtime'], "%Y-%m-%d %H:%M:%S")
|
item['createtime'] = datetime.datetime.strftime(item['createtime'], "%Y-%m-%dT%H:%M:%S")
|
||||||
if item:
|
if item:
|
||||||
if item.get('jump_param', "") and (item['ad_property'].find("jump_param") == -1):
|
if item.get('jump_param', "") and (item['ad_property'].find("jump_param") == -1):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user