diff --git a/app.py b/app.py index dc3882b89709d82d3f115558988eb1b787e18e55..04c5539a2b8330a48fea3aa2496cb495327a1ef3 100644 --- a/app.py +++ b/app.py @@ -92,12 +92,12 @@ def clear(): rule = getParmas('rule') if not rule: return jsonify(error.failed('规则字段必填')) - cache_path = f'cache/{rule}.js' + cache_path = os.path.abspath(f'cache/{rule}.js') if not os.path.exists(cache_path): - return jsonify(error.failed('服务端没有此规则的缓存文件!')) + return jsonify(error.failed('服务端没有此规则的缓存文件!'+cache_path)) os.remove(cache_path) return jsonify(error.success('成功删除文件:'+cache_path)) if __name__ == '__main__': - # app.run(host="0.0.0.0", port=5705) - app.run(debug=True, host='0.0.0.0', port=5705) \ No newline at end of file + app.run(host="0.0.0.0", port=5705) + # app.run(debug=True, host='0.0.0.0', port=5705) \ No newline at end of file