浏览代码

订阅向导提取省份字段

wangkaiyue 3 年之前
父节点
当前提交
3ccd2ac9e7
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/jfw/front/front.go
  2. 1 1
      src/jfw/front/wxkeyset.go
  3. 1 1
      src/jfw/modules/app/src/app/front/front.go

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

@@ -1047,7 +1047,6 @@ func (f *Front) TSGuide() error {
 					}
 					keyMaps = append(keyMaps, map[string]interface{}{
 						"key":      vs,
-						"area":     []string{area},
 						"infotype": []string{},
 						"notkey":   []string{},
 						"from":     1, //用于记录是否可以选择全国
@@ -1057,6 +1056,7 @@ func (f *Front) TSGuide() error {
 					}
 				}
 				saveData := bson.M{
+					"o_jy.o_area":       []string{area},
 					"o_jy.a_key":        keyMaps,
 					"o_jy.l_modifydate": time.Now().Unix(),
 					"i_ts_guide":        2,

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

@@ -33,7 +33,7 @@ func (m *Front) WxKeyset(tpl string) error {
 		})
 	}
 	vipMsg := jy.GetBigVipUserBaseMsg(userid, public.Mysql, public.MQFW)
-	if tpl == "index" && vipMsg.VipStatus < 0 && vipMsg.Status < 0 && isInTSguide(userid) { //仅免费用户跳转向导页面
+	if tpl == "index" && vipMsg.VipStatus <= 0 && vipMsg.Status <= 0 && isInTSguide(userid) { //仅免费用户跳转向导页面
 		return m.Redirect("/front/tenderSubscribe/guide")
 	}
 	if tpl == "seniorset" {

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

@@ -306,7 +306,6 @@ func (f *Front) TSGuide() error {
 					}
 					keyMaps = append(keyMaps, map[string]interface{}{
 						"key":      vs,
-						"area":     []string{area},
 						"infotype": []string{},
 						"notkey":   []string{},
 						"from":     1, //用于记录是否可以选择全国
@@ -316,6 +315,7 @@ func (f *Front) TSGuide() error {
 					}
 				}
 				saveData := bson.M{
+					"o_jy.o_area":       []string{area},
 					"o_jy.a_key":        keyMaps,
 					"o_jy.l_modifydate": time.Now().Unix(),
 					"i_ts_guide":        2,