wangshan před 7 měsíci
rodič
revize
4f6f2b3ba0

+ 1 - 1
src/jfw/modules/publicapply/src/detail/consts/consts.go

@@ -54,7 +54,7 @@ var (
 	QyxyEntNameCacheKey = "jydetail_qyxy_%s"
 	CustomerCacheKey    = "jydetail_customer_%s_%s_%s"
 	CacheAdvanceKey     = "jydetail_advance_%s"
-	TokenLen            = 5
+	TokenLen            = 6
 	TypeCodeMap         = map[string]string{
 		"拟建":   "拟建项目",
 		"采购意向": "采购意向",

+ 2 - 0
src/jfw/modules/publicapply/src/detail/dao/preAgent.go

@@ -9,6 +9,7 @@ import (
 	"fmt"
 	"jy/src/jfw/modules/publicapply/src/detail/consts"
 	"jy/src/jfw/modules/publicapply/src/detail/util"
+	"log"
 	"net/http"
 	"strings"
 	"time"
@@ -141,6 +142,7 @@ func (p *PreAgentReq) PreAgent() (res PreAgentRes, err error) {
 		p.PageType = "content"
 	}
 	token := fmt.Sprintf("%s#%s#%s#%s#%s#%s", p.Id, p.FirstType, p.PageType, fmt.Sprintf("%d", now.Unix()), p.UserInfo.UserId, encrypt.SE.Decode4Hex(fromUserId))
+	log.Println(p.UserInfo.Phone, "--token--:", token)
 	consts.TokenLen = len(strings.Split(token, "#"))
 	res.Token = encrypt.SE.EncodeString(token)
 	res.ShareOpenid = fromUserId