fix bug
This commit is contained in:
parent
81100ec08d
commit
9b239e42e2
@ -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']
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user