|
@@ -37,6 +37,8 @@ from django_redis import get_redis_connection
|
|
|
from constants import *
|
|
from constants import *
|
|
|
from utils.aliyun_sms import send_verify_code,send_signup_success
|
|
from utils.aliyun_sms import send_verify_code,send_signup_success
|
|
|
from utils.wxSubscribeMessage import send_consult_reply_message
|
|
from utils.wxSubscribeMessage import send_consult_reply_message
|
|
|
|
|
+#import logging
|
|
|
|
|
+#log = logging.getLogger("myerror")
|
|
|
|
|
|
|
|
def async(f):
|
|
def async(f):
|
|
|
def wrapper(*args, **kwargs):
|
|
def wrapper(*args, **kwargs):
|
|
@@ -732,7 +734,8 @@ def add_model(cls,**kwargs):
|
|
|
player_id = player.id,
|
|
player_id = player.id,
|
|
|
stock_date = stock_date
|
|
stock_date = stock_date
|
|
|
)
|
|
)
|
|
|
- usobj.fund = ts["fund"]
|
|
|
|
|
|
|
+ if ts.get("fund"):
|
|
|
|
|
+ usobj.fund = ts["fund"]
|
|
|
usobj.save()
|
|
usobj.save()
|
|
|
ts["stock_id"] = stock_id
|
|
ts["stock_id"] = stock_id
|
|
|
new_stock_list.append(ts)
|
|
new_stock_list.append(ts)
|