Browse Source

no message

libushang 8 months ago
parent
commit
73bb77474f
1 changed files with 5 additions and 4 deletions
  1. 5 4
      routers/api/onlineRollCall/call.py

+ 5 - 4
routers/api/onlineRollCall/call.py

@@ -492,8 +492,8 @@ async def get_event_detail(
         data['update_time'] = get_datetime_str(data['update_time'])
         data['duration_time'] = ''
 
-        # 已应答
-        if data['call_status'] == 1:
+        # 已应答(结束)
+        if data['call_status'] == 2:
 
             # 处理垃圾数据
             if base_row.end_time is None:
@@ -532,8 +532,9 @@ def send_yzy_msg(db: Session, detail_entity: OnlineRollCallDetail, user_id: int)
     yzy_account = user_info.yzy_account
     yzy_userid = db_yzy.get_userid_by_account(db, yzy_account)
     create_time = get_datetime_str(detail_entity.create_time)
-    detail_url = YzyApi.format_redirect_url(settings.YJXP_WEB_ROOT_PATH, yzy_userid)
-    
+    # detail_url = YzyApi.format_redirect_url(settings.YJXP_WEB_ROOT_PATH, yzy_userid)
+    detail_url = "{}/".format(settings.YJXP_WEB_ROOT_PATH) # 主页
+
     description = f"你有一条在线点名通知,请尽快确认\n点名时间:{create_time}"
     data = {
         "yzy_userid": yzy_userid,