京东商城创建商品补充

This commit is contained in:
苏尹岚
2020-05-28 17:18:47 +08:00
parent 75ca2274a6
commit 83ec115cbe
3 changed files with 22 additions and 10 deletions

View File

@@ -48,6 +48,8 @@ const (
JdsSkuStatus1032 = 1032 //在售 审核不通过
PassReason = "审核通过"
JdsOtherMeatCatID = 15245
)
var (

View File

@@ -35,14 +35,6 @@ func TestDeleteShopCategory(t *testing.T) {
t.Log(utils.Format4Output(result, false))
}
func TestFindVendorCategories(t *testing.T) {
result, err := api.FindVendorCategories()
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestUploadPicture(t *testing.T) {
data, _, err := DownloadFileByURL("https://image.jxc4.com/noGoodsImg.jpg")
// img, outMimeType, _ := Binary2Image(data, "")
@@ -230,8 +222,16 @@ func TestCreateSku(t *testing.T) {
t.Log(utils.Format4Output(result, false))
}
func TestFindVendorCategories(t *testing.T) {
result, err := api.FindVendorCategories()
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestFindAttrs(t *testing.T) {
result, err := api.FindAttrs(13571)
result, err := api.FindAttrs(15245)
if err != nil {
t.Fatal(err)
}
@@ -239,7 +239,7 @@ func TestFindAttrs(t *testing.T) {
}
func TestFindValuesByAttrId(t *testing.T) {
result, no, err := api.FindValuesByAttrId(102241)
result, no, err := api.FindValuesByAttrId(123060)
if err != nil {
t.Fatal(err)
}

View File

@@ -44,3 +44,13 @@ func TestCreateH5UnitorderOrder(t *testing.T) {
Body: "test",
})
}
func TestPayRefund(t *testing.T) {
api.PayRefund(&PayRefundParam{
Trxamt: 1250,
Reqsn: utils.GetUUID(),
// OldReqsn: orderPay.VendorOrderID,
Remark: "系统退款,商品数量错误",
OldTrxID: "122094350000087981",
})
}