From e20a9f3ae9cf367b26c67cc4c9d839028f3dfd31 Mon Sep 17 00:00:00 2001 From: wzdnzd Date: Wed, 13 Nov 2024 20:03:40 +0800 Subject: [PATCH] bug fixed --- subscribe/process.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subscribe/process.py b/subscribe/process.py index 43d218893..0ac6cada1 100644 --- a/subscribe/process.py +++ b/subscribe/process.py @@ -424,13 +424,16 @@ def assign( for i in range(num): index = -1 if num == 1 else i + 1 sub = subscribe[i] if subscribe else "" - renew = {"coupon_code": coupon, "api_prefix": api_prefix} + renew = {"coupon_code": coupon} if coupon else {} globalid += 1 if accounts: renew.update(accounts[i]) renew.update(renews) + if renew and api_prefix: + renew["api_prefix"] = api_prefix + task = TaskConfig( name=name, taskid=globalid,