Browse Source

数据导出存session

wangshan 5 years ago
parent
commit
8570c32e22
2 changed files with 8 additions and 8 deletions
  1. 4 4
      src/jfw/front/wx_dataExport.go
  2. 4 4
      src/jfw/modules/app/src/app/front/dataExport.go

+ 4 - 4
src/jfw/front/wx_dataExport.go

@@ -72,10 +72,10 @@ func (w *WxDataExport) ToSieve() error {
 		}
 
 		w.T["orderDetail"] = orderDetail
-		//是否是从结构化数据推广页过来的
-		if w.GetString("from") == "structed" {
-			w.SetSession("Structed", true)
-		}
+	}
+	//是否是从结构化数据推广页过来的
+	if w.GetString("from") == "structed" {
+		w.SetSession("Structed", true)
 	}
 	//分享
 	w.T["signature"] = wx.SignJSSDK(w.Site() + w.Url())

+ 4 - 4
src/jfw/modules/app/src/app/front/dataExport.go

@@ -80,10 +80,10 @@ func (w *WxDataExport) ToSieve() error {
 			}
 		}
 		w.T["orderDetail"] = orderDetail
-		//是否是从结构化数据推广页过来的
-		if w.GetString("from") == "structed" {
-			w.SetSession("Structed", true)
-		}
+	}
+	//是否是从结构化数据推广页过来的
+	if w.GetString("from") == "structed" {
+		w.SetSession("Structed", true)
 	}
 	if myUserId == "" {
 		return errors.New("未登录")