aa
This commit is contained in:
@@ -718,6 +718,19 @@ func GetVendorStore(ctx *jxcontext.Context, vendorID int, vendorOrgCode, vendorS
|
|||||||
return retVal, nil
|
return retVal, nil
|
||||||
}
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
|
} else {
|
||||||
|
handler := partner.GetDeliveryPlatformFromVendorID(vendorID).Handler
|
||||||
|
if store, err := handler.GetStore(ctx, 0, vendorStoreID); err == nil {
|
||||||
|
retVal = &StoreExt{
|
||||||
|
Store: store.Store,
|
||||||
|
}
|
||||||
|
if retVal.Status == model.StoreStatusDisabled {
|
||||||
|
retVal.BussinessStatus = -1
|
||||||
|
} else {
|
||||||
|
retVal.BussinessStatus = 1
|
||||||
|
}
|
||||||
|
return retVal, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil, ErrCanNotFindVendor
|
return nil, ErrCanNotFindVendor
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user