+CanSwitch2SelfDeliver,美团预定单是不能转自送的

减小转自送失败尝试时间间隙至3秒(以免出现不能取消三方运单的情况)
This commit is contained in:
gazebo
2019-11-28 14:18:52 +08:00
parent 2c21ea4385
commit 45827aceb5
6 changed files with 43 additions and 14 deletions

View File

@@ -192,16 +192,18 @@ func TestSyncAct(t *testing.T) {
}
func TestForceUpdateVendorPrice(t *testing.T) {
_, err := ForceUpdateVendorPrice(jxcontext.AdminCtx, model.VendorIDJD, model.ActSkuDirectDown, []*ActStoreSkuParam{
hint, err := ForceUpdateVendorPrice(jxcontext.AdminCtx, model.VendorIDJD, model.ActSkuDirectDown, []*ActStoreSkuParam{
&ActStoreSkuParam{
ActStoreSku: model.ActStoreSku{
StoreID: 100118,
SkuID: 22509,
StoreID: 100118,
SkuID: 22509,
ActPrice: 9900,
},
ActualActPrice: 9900,
VendorPrice: 19900,
},
}, false)
if err != nil {
t.Fatal(err)
}
t.Log(hint)
}