diff --git a/client.createorder_test.go b/client.createorder_test.go index 5f77e9f..8901674 100644 --- a/client.createorder_test.go +++ b/client.createorder_test.go @@ -7,7 +7,7 @@ import ( func Test_CreateOrder(t *testing.T) { dbname := "shop" siteid := "1198881" - order_sn := "864351351351" + order_sn := "1638859609193467246" list, err := CreateOrder(dbname,siteid,order_sn) diff --git a/common.go b/common.go index d471f77..75910d2 100644 --- a/common.go +++ b/common.go @@ -22,7 +22,7 @@ func rpc_server_conn(url ...string) (*OrderServiceClient, error) { } else if conf.YYT_RPC_URL != "" { rpc_url = conf.YYT_RPC_URL } else { - rpc_url = "127.0.0.1:" + conf.YYT_RPC_URL + rpc_url = "127.0.0.1:" + conf.YYT_RPC_PORT } conn, _, err := DialOrderService("tcp", rpc_url)