Browse Source

新增页面地址

WH01243 4 months ago
parent
commit
02a03ef83f
2 changed files with 8 additions and 7 deletions
  1. 1 1
      src/jfw/front/login.go
  2. 7 6
      src/jfw/front/otherAct.go

+ 1 - 1
src/jfw/front/login.go

@@ -93,7 +93,7 @@ func (l *Login) Login() error {
 	}
 
 	status, isLogin := func() (int, bool) {
-		source := ""
+		source := l.GetString("source")
 		if reqType == "phoneLogin" { //手机号登录
 			phone := l.GetString("phone")
 			password := l.GetString("password")

+ 7 - 6
src/jfw/front/otherAct.go

@@ -134,12 +134,13 @@ func (f *Front) Lpsubmit() error {
 			}
 			data := map[string]interface{}{
 				//"i_type":        1, //手机注册
-				"i_appid":       2,
-				"i_ispush":      1,
-				"s_unique":      phoneNum,
-				"s_phone":       phoneNum,
-				"s_source":      "landPage",
-				"s_rsource":     source,
+				"i_appid":  2,
+				"i_ispush": 1,
+				"s_unique": phoneNum,
+				"s_phone":  phoneNum,
+				"s_source": "landPage",
+				"s_rsource": gconv.String(util.If(source != "", source,
+					f.GetSession("RSource"))),
 				"s_extcode":     s_extcode,
 				"l_registedate": time.Now().Unix(),
 				"i_ts_guide":    2,