- AgreeOrRefuseRefund renmae to AgreeOrRefuseCancel

- 修改饿百门店状态判断的错误
This commit is contained in:
gazebo
2019-04-16 09:28:02 +08:00
parent ba85c710b5
commit 98e873f0b2
7 changed files with 7 additions and 9 deletions

View File

@@ -23,9 +23,7 @@ func init() {
}
func EbaiBusStatus2JxStatus(ebaiStatus int) int {
if ebaiStatus == ebaiapi.ShopBusStatusOffline {
return model.StoreStatusDisabled
} else if ebaiStatus == ebaiapi.ShopBusStatusSuspended {
if ebaiStatus == ebaiapi.ShopBusStatusHaveRest || ebaiStatus == ebaiapi.ShopBusStatusSuspended {
return model.StoreStatusClosed
}
return model.StoreStatusOpened

View File

@@ -358,7 +358,7 @@ func (c *PurchaseHandler) GetOrderRealMobile(ctx *jxcontext.Context, order *mode
return mobile, err
}
func (c *PurchaseHandler) AgreeOrRefuseRefund(ctx *jxcontext.Context, order *model.GoodsOrder, isAgree bool, reason string) (err error) {
func (c *PurchaseHandler) AgreeOrRefuseCancel(ctx *jxcontext.Context, order *model.GoodsOrder, isAgree bool, reason string) (err error) {
if globals.EnableEbaiStoreWrite {
if isAgree {
err = api.EbaiAPI.OrderAgreeRefund(order.VendorOrderID)