- fix bug when getting timestamp
This commit is contained in:
@@ -37,7 +37,7 @@ func TestTest(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSign(t *testing.T) {
|
||||
reqBody := "cmd=order.status.push×tamp=1538045409&version=3&ticket=A3DF9D06-F1E3-5C9A-46FF-279C9A19B5ED&source=63032&body={\"order_id\":15380342248732,\"status\":9}&sign=CE817F2599F5E45736BEE6E3B350C086&encrypt="
|
||||
reqBody := "cmd=order.create×tamp=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 {
|
||||
|
||||
Reference in New Issue
Block a user