Browse Source

Merge branch 'dev2.3.3' of http://192.168.3.207:10080/qmx/jy into dev2.3.3

wangshan 7 years ago
parent
commit
b37ab74cc5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/jfw/front/jyshare.go

+ 2 - 0
src/jfw/front/jyshare.go

@@ -23,6 +23,8 @@ func init() {
 
 //电脑版微信二维码
 func (m *Jyshare) Share(pid string) error {
+	//生成的pid中,有时候结尾会带有/,pid是接收不到的,所以pid直接从url中取
+	pid = strings.TrimLeft(m.Url(), "/front/share/")
 	var pngdata = []byte{}
 	pid = se.DecodeString(pid)
 	if ret, _ := redis.GetBytes("sso", "p_share_"+pid); ret != nil {