Przeglądaj źródła

feat:关注企业

wangshan 2 lat temu
rodzic
commit
381fb13462

+ 1 - 1
src/jfw/modules/followent/src/db.json

@@ -14,7 +14,7 @@
     },
     "redis": {
     	"main": {
-			"address": "other=192.168.3.206:1712,push=192.168.3.206:1712,sso=192.168.3.206:1712,session=192.168.3.206:1712,recovery=192.168.3.206:1712"
+			"address": "other=192.168.3.206:1712,push=192.168.3.206:1712,sso=192.168.3.206:1712,session=192.168.3.206:1712,recovery=192.168.3.206:1712,newother=192.168.3.206:1712"
 		}
     },
   "mysql": {

+ 3 - 0
src/jfw/modules/followent/src/followent/followent.go

@@ -137,6 +137,9 @@ func (f *FollowEnt) Detail(followId string) error {
 		"id": followId,
 	}, `s_entname,s_id,s_userid`, "")
 	fmt.Println(oneQy)
+	if oneQy == nil {
+		return f.Redirect("/jylab/followent/entList")
+	}
 	follow := "n"
 	if oneQy == nil || len(*oneQy) == 0 {
 		oneQy, _ = mongodb.FindOneByField("jylab_followent_back", map[string]interface{}{