xjc 6 ヶ月 前
コミット
8db86cab23
2 ファイル変更8 行追加2 行削除
  1. 7 1
      src/weixin/controls.py
  2. 1 1
      templates/topic/xsSignup.html

+ 7 - 1
src/weixin/controls.py

@@ -2894,7 +2894,7 @@ def get_article_info(**kwargs):
     """
     _id = kwargs.get("id")
     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
 
 
@@ -3674,11 +3674,17 @@ def get_user_match_stock_winloss_rank_list(**kwargs):
         if index == 0:
             for sitem in today_stock:
                 sitem["stock_date"] = stock_date
+                sitem['id'] = qitem.id
+                sitem['match_id'] = qitem.match_id
+                sitem['user_id']  = qitem.user_id
                 data.append(sitem)
         else:
             for sitem in today_stock:
                 if sitem["fund"] in ["0.0","0",""]:
                     sitem["stock_date"] = stock_date
+                    sitem['id'] = qitem.id
+                    sitem['match_id'] = qitem.match_id
+                    sitem['user_id']  = qitem.user_id
                     data.append(sitem)
 				
     if rank_type == "win":

+ 1 - 1
templates/topic/xsSignup.html

@@ -71,7 +71,7 @@
           百万组:50W到300W<br/>
           十万组:10W到50W<br/>
           菜鸟组:10W以下<br/>
-          各组第一奖牛气冲天奖杯+茅台飞天53度一瓶。<br/>
+          {{info.awards_content}}<br/>
         </div>
         <div class="title">3、交作业</div>
         <div>