xjconline 6 mesi fa
parent
commit
0ca119cff5
4 ha cambiato i file con 5362 aggiunte e 5362 eliminazioni
  1. 1 0
      .gitignore
  2. 5360 5361
      src/tools/code.csv
  3. 1 1
      src/weixin/controls.py
  4. BIN
      templates/wzb/wanzhubei.apk

+ 1 - 0
.gitignore

@@ -6,3 +6,4 @@ static/*
 templates/*
 templates/demo/*
 templates/
+src/article/img/*

File diff suppressed because it is too large
+ 5360 - 5361
src/tools/code.csv


+ 1 - 1
src/weixin/controls.py

@@ -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

BIN
templates/wzb/wanzhubei.apk