...
|
...
|
@@ -3,6 +3,7 @@ package push |
|
|
import (
|
|
|
"bytes"
|
|
|
"fmt"
|
|
|
"net/url"
|
|
|
"strings"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -138,7 +139,7 @@ func (o *Options) FormatTranDataToIntent() string { |
|
|
}
|
|
|
var params = bytes.NewBuffer(nil)
|
|
|
for k, v := range tranMap {
|
|
|
params.WriteString(fmt.Sprintf("S.%s=%v;", k, v))
|
|
|
params.WriteString(fmt.Sprintf("S.%s=%v;", url.QueryEscape(k), url.QueryEscape(fmt.Sprintf("%v", v))))
|
|
|
}
|
|
|
if idx := strings.Index(o.Intent, "end"); idx > 0 {
|
|
|
return o.Intent[0:idx] + params.String() + "end"
|
...
|
...
|
|