From 20c861b786407b1764232a452d492b10d9d3acee Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Thu, 25 Aug 2022 17:53:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=AC=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index dc3882b..04c5539 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 -- GitLab