fix: TypeError: mapstock() takes 0 positional arguments but 1 was given

This commit is contained in:
7a1dd609-d238-4580-9d5f-ee8412b0f5bc 2025-01-11 02:01:19 +08:00
parent cf4fa84616
commit f03afd2251

View File

@ -117,7 +117,7 @@ def ticket():
return data, returnCode
@app.route("/mapstock")
def mapstock():
def mapstock_process():
userId = request.args.get('userid')
if userId is None or userId.isdigit() is False or len(str(userId)) != 8:
return jsonify({"apiName": "mapstock", "apiInfo": "Save 99 Kilometers in Maps.", "apiUsage": "/mapstock?userid=<userId>"})
@ -166,7 +166,7 @@ def mapstock():
return data, returnCode
@app.route("/unlock")
def unlock():
def unlock_process():
userId = request.args.get('userid')
if userId is None or userId.isdigit() is False or len(str(userId)) != 8:
return jsonify({"apiName": "unlock", "apiInfo": "Unlock All DX Master Charts.", "apiUsage": "/unlock?userid=<userId>"})