|
@@ -40,7 +40,7 @@ func (s *Activity) Mini(args string) {
|
|
|
}
|
|
|
step := common.IntAll(sidStr[len(sidStr)-1:])
|
|
|
id := common.IntAll(sidStr[:len(sidStr)-1])
|
|
|
- encryId := encrypt.SE.EncodeString(sidStr[:len(sidStr)-1])
|
|
|
+ encryId := url.QueryEscape(encrypt.SE.EncodeString(sidStr[:len(sidStr)-1]))
|
|
|
if step > len(config.Active.ActivateInfo.To) || id == 0 || common.IntAll(id) == 0 {
|
|
|
s.ServeJson(api.NewResult(nil, errors.New("参数异常")))
|
|
|
return
|
|
@@ -58,10 +58,10 @@ func (s *Activity) Mini(args string) {
|
|
|
s.T["env_version"] = config.Active.ActivateInfo.EnvVersion
|
|
|
if jyutil.IsSubscribe(userId) {
|
|
|
s.T["path"] = config.Active.ActivateInfo.To[stepIndex].Path.Sub
|
|
|
- s.T["query"] = url.QueryEscape(fmt.Sprintf(config.Active.ActivateInfo.To[stepIndex].Query.Sub, encryId))
|
|
|
+ s.T["query"] = fmt.Sprintf(config.Active.ActivateInfo.To[stepIndex].Query.Sub, encryId)
|
|
|
} else {
|
|
|
s.T["path"] = config.Active.ActivateInfo.To[stepIndex].Path.Unsub
|
|
|
- s.T["query"] = url.QueryEscape(fmt.Sprintf(config.Active.ActivateInfo.To[stepIndex].Query.Unsub, encryId))
|
|
|
+ s.T["query"] = fmt.Sprintf(config.Active.ActivateInfo.To[stepIndex].Query.Unsub, encryId)
|
|
|
}
|
|
|
s.Render(config.Active.ActivateInfo.To[stepIndex].Url, &s.T)
|
|
|
return
|