调整位置服务接口
This commit is contained in:
parent
92f9cac585
commit
28fc7a72ac
@ -32,6 +32,7 @@ class Location(Resource):
|
||||
sql = f"select gameid,channelid,id,area,type,mode from location where gameid={gameid} and \
|
||||
channelid={channelid} and in_used=1;"
|
||||
try:
|
||||
print(f"1 {sql}")
|
||||
data = self.mydb.query(sql)
|
||||
except Exception:
|
||||
log.error("get data from location failed!", exc_info=True)
|
||||
@ -39,6 +40,7 @@ class Location(Resource):
|
||||
all_data = []
|
||||
log.debug(f"get data from localtion was {data}")
|
||||
if data:
|
||||
pdb.set_trace()
|
||||
for line in data:
|
||||
if line:
|
||||
localtion = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user