From a027ad12aa444f178c0a9cbc744472be9338be4a Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 12 Mar 2026 02:40:26 +0000 Subject: [PATCH] save code --- change_app.py | 4 ++-- change_proxy/change_cloth_proxy.py | 6 +++--- config.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/change_app.py b/change_app.py index 5183a67..682f2ac 100644 --- a/change_app.py +++ b/change_app.py @@ -316,7 +316,7 @@ def change(human_name, cloth_name, c_width, c_height, cloth_url, human_url, no2, print(f'不用第二部 no2{no2}') else: print(f'要第二部 no2{no2} 先搞第一步') - if sgwzd >= 0.55: + if sgwzd >= 0.70: #脱衣服 takeoff_file_name = takeoff_cloth_first(human_name, sex_girl) print(f"takeoff_file_name:{takeoff_file_name} human_name:{human_name} sex_girl:{sex_girl}") @@ -1043,4 +1043,4 @@ def change_cloth_base64(): if __name__ == '__main__': - app.run(host="0.0.0.0", port=base64_test_port, debug=True) \ No newline at end of file + app.run(host="0.0.0.0", port=base64_test_port, debug=False) \ No newline at end of file diff --git a/change_proxy/change_cloth_proxy.py b/change_proxy/change_cloth_proxy.py index 4bd22e1..c0008f9 100644 --- a/change_proxy/change_cloth_proxy.py +++ b/change_proxy/change_cloth_proxy.py @@ -15,7 +15,7 @@ STATIC_FOLDER = os.path.join(APP_ROOT, 'static') app = Flask(__name__, static_folder=STATIC_FOLDER, static_url_path='/static') CORS(app) -CHANGE_APP_BASE_URL = "http://127.0.0.1:28888" +CHANGE_APP_BASE_URL = "http://127.0.0.1:28889" logging.basicConfig( level=logging.INFO, @@ -254,5 +254,5 @@ def do_change_cloth(): if __name__ == '__main__': - log_message(f"Starting change_cloth_proxy service on port 5000, forwarding to {CHANGE_APP_BASE_URL}") - app.run(host="0.0.0.0", port=5000, debug=True, threaded=True) + log_message(f"Starting change_cloth_proxy service on port 28888, forwarding to {CHANGE_APP_BASE_URL}") + app.run(host="0.0.0.0", port=28888, debug=False, threaded=True) diff --git a/config.py b/config.py index 088a703..7cc9543 100644 --- a/config.py +++ b/config.py @@ -44,7 +44,7 @@ if selfComputer == "5090": change_only_name = "change_new_only_change.json" change_with_add_cloth = "change_new_debug_api.json" xiezhen_name = "xiezhen-0812-40s_api.json" - base64_test_port = 28888 + base64_test_port = 28889 else: change_tuodi_input = 'change_tuodi_input_3090_api.json' change_only_name = "change_new_only_3090.json"