This commit is contained in:
pengtao 2019-09-09 20:53:00 +08:00
parent 81100ec08d
commit 9b239e42e2
2 changed files with 3 additions and 4 deletions

View File

@ -30,6 +30,7 @@ class PrivMaps(Resource):
except Exception:
log.error(f"get args failed!", exc_info=True)
args = {}
myargs = None
if myargs:
users = myargs.get('args', None)
status = myargs.get('status', 0)
@ -88,11 +89,9 @@ class PrivMaps(Resource):
def post(self):
# log.info(f"args={self.args}")
pdb.set_trace()
myargs = json.loads(my_unquote(self.args['args']).replace("'",'"'))
myargs = json.loads(my_unquote(self.args['args']))
log.info(f"2={myargs}")
try:
mymaps = {}
mymaps['mapid'] = self.get_newid()
mymaps['user'] = myargs['user']

View File

@ -3,7 +3,7 @@ from urllib.parse import unquote, quote, urlencode
def my_unquote(data):
return unquote(data, 'utf-8')
return unquote(data, 'utf-8').replace("'",'"')
def my_quote(data):