Explorar el Código

feat:最新标讯 隐藏附件标识

wangshan hace 3 años
padre
commit
116dbaddbb

+ 1 - 0
jyBXBase/rpc/etc/bxbase.yaml

@@ -7,3 +7,4 @@ Etcd:
 Timeout: 8000
 Webrpcport: 8015
 BidSearchOldUserLimit: 1626105600
+FileSignBool: true

+ 1 - 0
jyBXBase/rpc/internal/config/config.go

@@ -9,6 +9,7 @@ type Config struct {
 	zrpc.RpcServerConf
 	Webrpcport            int64
 	BidSearchOldUserLimit int64
+	FileSignBool          bool
 }
 
 type Db struct {

+ 3 - 0
jyBXBase/rpc/model/collectionInfo.go

@@ -31,6 +31,9 @@ func MakeCollection(userId string, list []*bxbase.NewestList) {
 			}
 		}
 		for _, v := range list {
+			if !IC.C.FileSignBool {
+				v.FileExists = false
+			}
 			if bid_map[v.Id] {
 				v.IsCol = true
 			}