1
This commit is contained in:
@@ -51,7 +51,7 @@ func TestGetOAuthCode(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestPreparationMealComplete(t *testing.T) {
|
func TestPreparationMealComplete(t *testing.T) {
|
||||||
api.PreparationMealComplete(1100657633926494664)
|
api.PreparationMealComplete(900658760944919842)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGetAccessToken(t *testing.T) {
|
func TestGetAccessToken(t *testing.T) {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ func TestOrderViewStatus(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOrderGetOrderDetail(t *testing.T) {
|
func TestOrderGetOrderDetail(t *testing.T) {
|
||||||
result, err := api.OrderGetOrderDetail(1100496043552579025, false)
|
result, err := api.OrderGetOrderDetail(900658760944919842, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,17 +259,13 @@ var storeList = []int64{
|
|||||||
|
|
||||||
// 商品上下架
|
// 商品上下架
|
||||||
func TestStoreSkuUpdateOffShelf(t *testing.T) {
|
func TestStoreSkuUpdateOffShelf(t *testing.T) {
|
||||||
for _, v := range storeList {
|
param := &request587.AlibabaAxChannelSkuStatusUpdateRequest{ChannelSkuUpdateStatusReq: &domain587.AlibabaAxChannelSkuStatusUpdateChannelSkuUpdateStatusReq{
|
||||||
param := &request587.AlibabaAxChannelSkuStatusUpdateRequest{ChannelSkuUpdateStatusReq: &domain587.AlibabaAxChannelSkuStatusUpdateChannelSkuUpdateStatusReq{
|
SkuCode: utils.String2Pointer("23702"),
|
||||||
SkuCode: utils.String2Pointer("19930827"),
|
StoreId: utils.String2Pointer(fmt.Sprintf("JX%d", 103002)),
|
||||||
StoreId: utils.String2Pointer(fmt.Sprintf("JX%d", v)),
|
ChannelCode: utils.String2Pointer("31"),
|
||||||
ChannelCode: utils.String2Pointer("31"),
|
OnlineSaleFlag: utils.Int64ToPointer(0),
|
||||||
OnlineSaleFlag: utils.Int64ToPointer(0),
|
}}
|
||||||
}}
|
apiTao.StoreSkuUpdateOffShelf(param)
|
||||||
apiTao.StoreSkuUpdateOffShelf(param)
|
|
||||||
}
|
|
||||||
|
|
||||||
//globals.SugarLogger.Debugf("err := %s ", utils.Format4Output(err, false))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 商品库存修改
|
// 商品库存修改
|
||||||
|
|||||||
Reference in New Issue
Block a user