Quellcode durchsuchen

feat:推送结果预览

wangchuanjin vor 1 Jahr
Ursprung
Commit
3f105851d8
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      src/jfw/modules/publicapply/src/subscribePush/entity/vrew.go

+ 5 - 1
src/jfw/modules/publicapply/src/subscribePush/entity/vrew.go

@@ -3,12 +3,13 @@ package entity
 import (
 	"encoding/json"
 	"fmt"
-	"github.com/gogf/gf/v2/util/gconv"
 	"jy/src/jfw/modules/publicapply/src/config"
 	"log"
 	"strings"
 	"time"
 
+	"github.com/gogf/gf/v2/util/gconv"
+
 	qutil "app.yhyue.com/moapp/jybase/common"
 	elastic "app.yhyue.com/moapp/jybase/es"
 	"app.yhyue.com/moapp/jybase/go-xweb/httpsession"
@@ -162,6 +163,9 @@ func GetVIPViewSql(userId string, scd *ViewCondition) string {
 		if strings.Contains(stype, "projectname/purchasing") {
 			stype = strings.Replace(stype, "projectname/purchasing", "projectname,\",\"purchasing", -1)
 		}
+		if stype == "" {
+			stype = "title"
+		}
 		multi_match = fmt.Sprintf(multi_match, "%s", "\""+stype+"\"")
 		repeat := map[string]bool{}
 		for _, v := range scd.Keyword {