|
@@ -835,7 +835,7 @@ def add_model(cls,**kwargs):
|
|
|
raise ce.TipException(u"数据错误,今日净资产不能超过9999万元,不能低于0万元,请仔细核对数据!")
|
|
|
|
|
|
#有资金出入
|
|
|
- if cm.FundInOut.objects.filter(user_id=user_id,stock_date=stock_date).exists():
|
|
|
+ if cm.FundInOut.objects.filter(user_id=user_id,stock_date=stock_date).exists() and player.fund>0:
|
|
|
fundinout = cm.FundInOut.objects.filter(user_id=user_id,stock_date=stock_date).first()
|
|
|
fundin = fundinout.fundin
|
|
|
fundout = fundinout.fundout
|