add UTF-8 flag in charset in minetype
This commit is contained in:
parent
c6c00321b0
commit
c69bf07144
6
main.py
6
main.py
@ -60,6 +60,8 @@ def item(item_data, user_character_list):
|
||||
app = Flask(__name__)
|
||||
app.json.sort_keys = False
|
||||
app.json.ensure_ascii = False
|
||||
app.json.mimetype = 'application/json;charset=UTF-8'
|
||||
app.json.compact = False
|
||||
CORS(app)
|
||||
|
||||
@app.errorhandler(404)
|
||||
@ -223,7 +225,7 @@ def unlock_process():
|
||||
info = "Succeed."
|
||||
log = {"UserLoginApiStatus": 1, "UploadUserPlaylogApiStatus": 1, "UpsertUserAllApi": 1, "UserLogoutApiStatus": 1}
|
||||
data = jsonify({"status": status, "timestamp": timestamp, "info": info, "apiName": "unlock", "date": datetime.now(pytz.timezone('Asia/Shanghai')).strftime('%a, %d %b %Y %H:%M:%S GMT+8'), "userId": userId})
|
||||
return data
|
||||
return data, returnCode
|
||||
|
||||
@app.route("/music", methods=['POST'])
|
||||
def music_post():
|
||||
@ -310,4 +312,4 @@ def maps():
|
||||
return data, returnCode
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(port = 8080, debug=True)
|
||||
app.run(port = 8080)
|
||||
|
Loading…
x
Reference in New Issue
Block a user