fix: 打手提现/收款认赠送会员为有效会员资格
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -240,16 +240,19 @@ def check_dashou_has_valid_huiyuan(yonghuid):
|
||||
|
||||
def check_dashou_has_formal_huiyuan_for_withdraw(yonghuid):
|
||||
"""
|
||||
打手佣金提现/收款:必须持有未过期的正式会员。
|
||||
体验会员期内一律拒绝;体验到期后须购买正式会员。
|
||||
打手佣金提现/收款:须持有未过期的正式会员,或后台赠送会员。
|
||||
体验会员期内一律拒绝;体验到期后须购买正式会员或持有赠送会员。
|
||||
"""
|
||||
from jituan.services.member_recharge import (
|
||||
dashou_has_active_formal_huiyuan,
|
||||
dashou_in_active_trial_period,
|
||||
)
|
||||
from jituan.services.gift_huiyuan import user_has_any_active_gift_huiyuan
|
||||
|
||||
if dashou_has_active_formal_huiyuan(yonghuid):
|
||||
return True, ''
|
||||
if user_has_any_active_gift_huiyuan(yonghuid):
|
||||
return True, ''
|
||||
if dashou_in_active_trial_period(yonghuid):
|
||||
return False, '体验会员不可提现佣金,请购买正式会员'
|
||||
if not Huiyuangoumai.query.filter(yonghu_id=yonghuid).exists():
|
||||
|
||||
Reference in New Issue
Block a user