- fix bug when getting timestamp

This commit is contained in:
gazebo
2018-09-28 09:47:11 +08:00
parent 72ad9c4731
commit afb52e64f9
4 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ func TestTest(t *testing.T) {
}
func TestSign(t *testing.T) {
reqBody := "cmd=order.status.push&timestamp=1538045409&version=3&ticket=A3DF9D06-F1E3-5C9A-46FF-279C9A19B5ED&source=63032&body={\"order_id\":15380342248732,\"status\":9}&sign=CE817F2599F5E45736BEE6E3B350C086&encrypt="
reqBody := "cmd=order.create&timestamp=1538098573&version=3&ticket=F6338922-44FB-2D30-9CDA-5E9AE2604C54&source=63032&body={\"order_id\":\"15380983922052\"}&sign=E9042A52120BFD3D0B448C5F50A1BA55&encrypt="
kvs := strings.Split(reqBody, "&")
values := make(url.Values, len(kvs))
for _, v := range kvs {