|
@@ -901,20 +901,20 @@ def add_model(cls,**kwargs):
|
|
|
|
|
|
obj.total_income = round(total_income,4)
|
|
obj.total_income = round(total_income,4)
|
|
|
|
|
|
- if float(today_income)>0.4:
|
|
|
|
- raise ce.TipException(u"今日盈利已超过40%,请仔细核对数据或直接联系顽主!")
|
|
|
|
|
|
+ if float(today_income)>0.6:
|
|
|
|
+ raise ce.TipException(u"今日盈利已超过60%,请仔细核对数据或直接联系顽主!")
|
|
|
|
|
|
- if float(total_income)>8:
|
|
|
|
|
|
+ if float(total_income)>20:
|
|
raise ce.TipException(u"请仔细核对数据或直接联系顽主!")
|
|
raise ce.TipException(u"请仔细核对数据或直接联系顽主!")
|
|
|
|
|
|
else:
|
|
else:
|
|
today_income = (today_fund - yesterday_fund)/float(yesterday_fund) if yesterday_fund else 0.0
|
|
today_income = (today_fund - yesterday_fund)/float(yesterday_fund) if yesterday_fund else 0.0
|
|
total_income = (today_fund - init_fund)/float(init_fund) if init_fund else 0.0
|
|
total_income = (today_fund - init_fund)/float(init_fund) if init_fund else 0.0
|
|
|
|
|
|
- if float(today_income)>0.4:
|
|
|
|
- raise ce.TipException(u"今日盈利已超过40%,请仔细核对数据或直接联系顽主!")
|
|
|
|
|
|
+ if float(today_income)>0.6:
|
|
|
|
+ raise ce.TipException(u"今日盈利已超过60%,请仔细核对数据或直接联系顽主!")
|
|
|
|
|
|
- if float(total_income)>8:
|
|
|
|
|
|
+ if float(total_income)>20:
|
|
raise ce.TipException(u"请仔细核对数据或直接联系顽主!")
|
|
raise ce.TipException(u"请仔细核对数据或直接联系顽主!")
|
|
|
|
|
|
obj.today_income = round(today_income,4)
|
|
obj.today_income = round(today_income,4)
|