Explorar o código

将ai对话设置为8次上限
导出加客户的id
如果是北京存在的项目就返回固定的二维码

xw hai 2 meses
pai
achega
1c4c71e998

+ 8 - 0
fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

@@ -934,6 +934,14 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
         if (qwUser==null){
             return R.error("客服不存在");
         }
+        
+        // 如果是"北京存在文化"项目,直接返回固定的二维码
+        if ("北京存在文化".equals(signProjectName)) {
+            contactWay = "https://www.showdoc.com.cn/1889765213630885/8938733230746678"; 
+            return R.error(400, msg).put("qrcode", contactWay);
+        }
+        
+        // 其他项目使用原来的逻辑
         if (StringUtils.isNotEmpty(qwUser.getContactWay())){
             contactWay = qwUser.getContactWay();
         }

+ 1 - 1
fs-service/src/main/java/com/fs/course/vo/FsCourseWatchLogListVO.java

@@ -22,7 +22,7 @@ public class FsCourseWatchLogListVO extends BaseEntity
     private Long logId;
 
     /** 会员id */
-//    @Excel(name = "会员id")
+    @Excel(name = "客户id")
     private Long userId;
 
     /** 小程序昵称 */

+ 2 - 2
fs-service/src/main/resources/mapper/fastGpt/FastGptChatMsgMapper.xml

@@ -101,7 +101,7 @@
                          AND msg_type = 1
                          AND send_type IN (1, 2)
                        ORDER BY send_type, create_time DESC
-                           LIMIT 5 BY send_type)
+                           LIMIT 8 BY send_type)
         ORDER BY create_time DESC
     </select>
 
@@ -116,7 +116,7 @@
                          AND msg_type = 1
                          AND send_type IN (1, 2)
                    ) AS temp
-                 WHERE row_num <= 5
+                 WHERE row_num <= 8
                  ORDER BY create_time DESC]]>
 
         <!--select * from (SELECT * FROM fastgpt_chat_msg