|
@@ -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
|