wangshan 2 年 前
コミット
47719606c2

+ 10 - 1
src/jfw/modules/app/src/app/front/front.go

@@ -22,9 +22,9 @@ import (
 	"app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
 	"app.yhyue.com/moapp/jypkg/public"
 
+	"app.yhyue.com/moapp/jybase/dchest/captcha"
 	"app.yhyue.com/moapp/jybase/go-xweb/xweb"
 	"github.com/SKatiyar/qr"
-	"app.yhyue.com/moapp/jybase/dchest/captcha"
 	"go.mongodb.org/mongo-driver/bson"
 )
 
@@ -84,6 +84,7 @@ type Front struct {
 
 	appConfig   xweb.Mapper `xweb:"/jyapp/free/config"`      //app配置项
 	shareDomain xweb.Mapper `xweb:"/jyapp/free/shareDomain"` //app分享 域名配置项
+	mainIndex   xweb.Mapper `xweb:"/"`                       //首页
 }
 
 var sewx encrypt.SimpleEncrypt //微信的加密方法
@@ -102,6 +103,14 @@ func init() {
 	industrylist, sortArray = jy.Getindustrys(util.ObjToString(config.Sysconfig["industry"]), mongodb)
 }
 
+// 移动首页
+func (f *Front) MainIndex() error {
+	if userId, _ := f.GetSession("userId").(string); userId == "" {
+		return f.Redirect("/jyapp/s/tags/home/home.html")
+	}
+	return f.Redirect("/jy_mobile/tabbar/home")
+}
+
 func (f *Front) PushMsgCallback() {
 	f.ServeJson(map[string]interface{}{})
 }

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

@@ -20,7 +20,7 @@
 			"password": "jy@DevGroup"
 		},
 		"bidding": {
-			"address": "192.168.3.206:27001,192.168.3.206:27002",
+			"address": "192.168.3.206:27002",
 	 		"size": 5,
 	 		"dbName": "qfw_data",
 			"collection": "bidding",