fix: fund_freeze 从 business_models 导入 User,修复提现驳回 500

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-29 01:14:52 +08:00
parent 36e1bf902a
commit 9346123e8c

View File

@@ -301,7 +301,8 @@ def credit_role_balance(
def _load_profile(role: str, user_id: str):
from users.models import User, UserDashou, UserGuanshi, UserZuzhang, UserShenheguan
from users.business_models import User
from users.models import UserDashou, UserGuanshi, UserZuzhang, UserShenheguan
user = User.query.filter(UserUID=user_id).first()
if not user:
return None
@@ -580,7 +581,7 @@ def apply_unfreeze_step(
if not model:
return {'ok': False, 'msg': f'未知角色 {ledger.role}'}
from users.models import User
from users.business_models import User
user = User.query.filter(UserUID=ledger.user_id).first()
if not user:
return {'ok': False, 'msg': '用户不存在'}