This commit is contained in:
richboo111
2023-05-29 10:26:48 +08:00
parent 11fc0151aa
commit 2a08672aa1
4 changed files with 46 additions and 33 deletions

View File

@@ -9,8 +9,12 @@ import (
var api = New(AppID, AppKey)
const (
AppID = 1663705378 //开发者ID
AppKey = "0838426b310fd2530c57dd6e770ddff1" //开发者密钥
//正式环境
AppID2 = 1663705444
AppKey2 = "600e22db5deb6402e527e58f0d6636a0"
AppID = 1663705378 //测试开发者ID
AppKey = "0838426b310fd2530c57dd6e770ddff1" //测试开发者密钥
TestSFStoreID = "3243279847393" //open测试平台型店铺
)
@@ -24,7 +28,7 @@ func TestPreCreateOrder(t *testing.T) {
UserAddress: "北京市海淀区学清嘉创大厦A座15层",
Weight: 1000,
ProductType: 4,
PushTime: 1684379930,
PushTime: 1684996039,
ShopType: 1,
LbsType: LbsTypeGD,
RiderPickMethod: 1,
@@ -49,12 +53,13 @@ func TestCreateOrder(t *testing.T) {
param := &CreateOrderReq{
DevId: AppID,
ShopId: TestSFStoreID,
ShopOrderId: "20230518Test",
ShopOrderId: "20230525Test",
OrderSequence: "测试",
OrderSource: OrderSourceELM,
OrderTime: 1684302448,
PushTime: 1684399264,
OrderTime: 1684997166,
PushTime: 1684997166,
Version: 19,
ReturnFlag: 511,
Receive: &ReceiveAddress{
UserLng: "116.339392",
UserLat: "40.002349",