Browse Source

修改订单创建成功参数

master v0.3.6
guzeng 3 years ago
parent
commit
0f4871a490
3 changed files with 46 additions and 27 deletions
  1. +10
    -2
      client.getinfo_test.go
  2. +35
    -25
      client_test.go
  3. +1
    -0
      variable.go

+ 10
- 2
client.getinfo_test.go View File

@ -2,12 +2,20 @@ package orderrpcv2
import ( import (
"testing" "testing"
"git.tetele.net/tgo/crypter"
) )
func Test_GetInfo(t *testing.T) { func Test_GetInfo(t *testing.T) {
ret, err := GetInfoByOrderSn("100064", "shop_v2", "2021000121222", "id,order_sn")
// ret, err := GetInfoByOrderSn("100064", "shop_v2", "2021000121222", "id,order_sn")
// t.Log(ret)
// t.Log(err)
data := "1DD5556CC3F069F517419E4BAA490CFBE0BB2D0027C59249B641A0D1AF05E2A3076F605D22044171D5552BF856B6448807F7B08063421E0C263CC47B3ECB0763193D704A0B4A30018F980E5D2F8A7196A7B0EAE7D7FF3E6F20BA573EAB2A3A196CC4ECE6095A76B1E2F9660AB4AAC04C0FF7C74C3CEAEF0E82D0357E67C2549AA754B1DFE3F1F195F075CFBCCB59A8A4"
ret := crypter.DesDe(data, DES_KEY)
t.Log(ret) t.Log(ret)
t.Log(err)
} }

+ 35
- 25
client_test.go
File diff suppressed because it is too large
View File


+ 1
- 0
variable.go View File

@ -4,6 +4,7 @@ const DES_KEY = "ordernew"
type OrderCreateRes struct { type OrderCreateRes struct {
OrderSn string OrderSn string
OrderId string
} }
type OrderCancelRes struct { type OrderCancelRes struct {


Loading…
Cancel
Save