From 3db3bb2a9a5a71ddcfb8c55edf36193595cde3f4 Mon Sep 17 00:00:00 2001 From: TIANHE Date: Sat, 28 Feb 2026 00:15:58 +0800 Subject: [PATCH] v2.2.1 Signed-off-by: TIANHE --- backend_api_python/app/services/community_service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend_api_python/app/services/community_service.py b/backend_api_python/app/services/community_service.py index a7f80d3..2cf0fb3 100644 --- a/backend_api_python/app/services/community_service.py +++ b/backend_api_python/app/services/community_service.py @@ -330,12 +330,14 @@ class CommunityService: # 6. 复制指标到买家账户 now_ts = int(time.time()) + # Get vip_free as boolean from indicator + vip_free_value = bool(indicator.get('vip_free') or False) cur.execute(""" INSERT INTO qd_indicator_codes (user_id, is_buy, end_time, name, code, description, publish_to_community, pricing_type, price, is_encrypted, preview_image, vip_free, createtime, updatetime, created_at, updated_at) - VALUES (?, 1, 0, ?, ?, ?, 0, 'free', 0, ?, ?, 0, ?, ?, NOW(), NOW()) + VALUES (?, 1, 0, ?, ?, ?, 0, 'free', 0, ?, ?, ?, ?, ?, NOW(), NOW()) """, ( buyer_id, indicator['name'], @@ -343,6 +345,7 @@ class CommunityService: indicator['description'], indicator['is_encrypted'] or 0, indicator['preview_image'], + vip_free_value, # Use boolean value instead of integer 0 now_ts, now_ts ))