This commit is contained in:
richboo111
2023-10-19 17:44:39 +08:00
parent fbb2ec01c6
commit 27a7766941

View File

@@ -6442,14 +6442,15 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOr
for _, v := range bind {
if len(v.VendorStoreID) == 0 || len(v.VendorStoreName) == 0 {
errIDName = append(errIDName, v.VendorStoreID)
} else {
if strings.Contains(v.VendorStoreID, "X") {
temp := strings.Split(v.VendorStoreID, "X")
storeID = temp[1]
} else {
return fmt.Errorf("淘鲜达门店ID不合法"), ""
}
}
//else {
// if strings.Contains(v.VendorStoreID, "X") {
// temp := strings.Split(v.VendorStoreID, "X")
// storeID = temp[1]
// } else {
// return fmt.Errorf("淘鲜达门店ID不合法"), ""
// }
//}
storeMap := &model.StoreMap{
StoreID: utils.Str2Int(storeID),
VendorID: model.VendorIDTaoVegetable,