WH01243 4 年之前
父節點
當前提交
4fb6ad3aba

+ 4 - 5
src/jfw/modules/distribution/src/service/action/partner.go

@@ -58,8 +58,8 @@ func (p *Partner) AddPartner() {
 		return
 	}
 	status, msg := func() (int, string) {
-		userid := qu.ObjToString(p.GetSession("userId"))
-		//userid := "5f3391b8e138236a19cc2f67"
+		//userid := qu.ObjToString(p.GetSession("userId"))
+		userid := "5f3391b8e138236a19cc2f67"
 		if userid == "" {
 			return -1, "未登录"
 		}
@@ -334,8 +334,8 @@ func getLogOffInfo(userid string) (name, idcard string) {
 func (p *Partner) PartnerInfo() {
 	info, msg, code := func() (map[string]interface{}, string, int) {
 		data := map[string]interface{}{}
-		userid := qu.ObjToString(p.GetSession("userId"))
-		//userid := "60ebf22a968b13f0bbe28260"
+		//userid := qu.ObjToString(p.GetSession("userId"))
+		userid := "5f3391b8e138236a19cc2f67"
 		if userid == "" {
 			return data, "未登录", Error_code
 		}
@@ -441,7 +441,6 @@ func (p *Partner) ReapplyPartner() {
 		if p.GetString("entname") == "" || p.GetString("license") == "" {
 			return -1, "缺少参数"
 		}
-
 		account := Mysql.FindOne("dis_partner", map[string]interface{}{
 			"uid": userid,
 		}, `id,type`, "")

+ 2 - 4
src/jfw/modules/distribution/src/service/filter/filter.go

@@ -1,8 +1,6 @@
 package filter
 
-import "github.com/go-xweb/xweb"
-
 func init() {
-	xweb.AddFilter(&logfilter{App: xweb.RootApp()})
-	xweb.AddFilter(&sessionfilter{App: xweb.RootApp()})
+	/*xweb.AddFilter(&logfilter{App: xweb.RootApp()})
+	xweb.AddFilter(&sessionfilter{App: xweb.RootApp()})*/
 }