|
@@ -1,12 +1,14 @@
|
|
|
package front
|
|
|
|
|
|
import (
|
|
|
- "github.com/go-xweb/xweb"
|
|
|
- "gopkg.in/mgo.v2/bson"
|
|
|
"jfw/wx"
|
|
|
+ "log"
|
|
|
"qfw/util"
|
|
|
"qfw/util/redis"
|
|
|
"strings"
|
|
|
+
|
|
|
+ "github.com/go-xweb/xweb"
|
|
|
+ "gopkg.in/mgo.v2/bson"
|
|
|
)
|
|
|
|
|
|
type Search struct {
|
|
@@ -36,6 +38,7 @@ func (s *Search) MainSearch() error {
|
|
|
}
|
|
|
s.T["pageSize"] = wx_pageSize
|
|
|
//搜索列表增加分享
|
|
|
+ log.Println(s.Site(), "----", s.Url())
|
|
|
s.T["signature"] = wx.SignJSSDK(s.Site() + s.Url())
|
|
|
myopenid, _ := s.Session().Get("s_m_openid").(string)
|
|
|
s.T["openid"] = se.EncodeString(myopenid)
|