|
@@ -2894,7 +2894,7 @@ def get_article_info(**kwargs):
|
|
"""
|
|
"""
|
|
_id = kwargs.get("id")
|
|
_id = kwargs.get("id")
|
|
rst = cm.Article.objects.filter(id=_id).values().first()
|
|
rst = cm.Article.objects.filter(id=_id).values().first()
|
|
- rst["url"] = "https://www.hunanwanzhu.com/topic/article.html?id="+str(_id)
|
|
|
|
|
|
+ rst["url"] = "https://api.hunanwanzhu.com/topic/share/article.html?id="+str(_id)
|
|
return rst
|
|
return rst
|
|
|
|
|
|
|
|
|
|
@@ -3674,11 +3674,17 @@ def get_user_match_stock_winloss_rank_list(**kwargs):
|
|
if index == 0:
|
|
if index == 0:
|
|
for sitem in today_stock:
|
|
for sitem in today_stock:
|
|
sitem["stock_date"] = stock_date
|
|
sitem["stock_date"] = stock_date
|
|
|
|
+ sitem['id'] = qitem.id
|
|
|
|
+ sitem['match_id'] = qitem.match_id
|
|
|
|
+ sitem['user_id'] = qitem.user_id
|
|
data.append(sitem)
|
|
data.append(sitem)
|
|
else:
|
|
else:
|
|
for sitem in today_stock:
|
|
for sitem in today_stock:
|
|
if sitem["fund"] in ["0.0","0",""]:
|
|
if sitem["fund"] in ["0.0","0",""]:
|
|
sitem["stock_date"] = stock_date
|
|
sitem["stock_date"] = stock_date
|
|
|
|
+ sitem['id'] = qitem.id
|
|
|
|
+ sitem['match_id'] = qitem.match_id
|
|
|
|
+ sitem['user_id'] = qitem.user_id
|
|
data.append(sitem)
|
|
data.append(sitem)
|
|
|
|
|
|
if rank_type == "win":
|
|
if rank_type == "win":
|