debug
This commit is contained in:
@@ -66,9 +66,11 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
return "", fmt.Errorf("营业时间必填")
|
return "", fmt.Errorf("营业时间必填")
|
||||||
} else {
|
} else {
|
||||||
timeStr = splicingTimeToDoudian(storeDetail.OpenTime1, storeDetail.CloseTime1, storeDetail.OpenTime2, storeDetail.CloseTime2)
|
timeStr = splicingTimeToDoudian(storeDetail.OpenTime1, storeDetail.CloseTime1, storeDetail.OpenTime2, storeDetail.CloseTime2)
|
||||||
|
globals.SugarLogger.Debug("我在splicingTimeToDoudian")
|
||||||
}
|
}
|
||||||
m := make(map[int64]string)
|
m := make(map[int64]string)
|
||||||
for j := 1; j <= 7; j++ {
|
for j := 1; j <= 7; j++ {
|
||||||
|
globals.SugarLogger.Debug("我在==========timeStr")
|
||||||
m[int64(j)] = timeStr
|
m[int64(j)] = timeStr
|
||||||
}
|
}
|
||||||
list := shop_batchCreateStore_request.StoreListItem{
|
list := shop_batchCreateStore_request.StoreListItem{
|
||||||
@@ -86,11 +88,12 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
DayMap: m,
|
DayMap: m,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debug("检测list========", list)
|
||||||
lists = append(lists, list)
|
lists = append(lists, list)
|
||||||
ShopBatchCreateStoreParam = &shop_batchCreateStore_request.ShopBatchCreateStoreParam{
|
ShopBatchCreateStoreParam = &shop_batchCreateStore_request.ShopBatchCreateStoreParam{
|
||||||
StoreList: lists,
|
StoreList: lists,
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debug("检测param========", ShopBatchCreateStoreParam)
|
||||||
if resp, err := getAPI(storeDetail.VendorOrgCode, storeID, storeDetail.VendorStoreID).BatchCreateStore(ShopBatchCreateStoreParam); err != nil {
|
if resp, err := getAPI(storeDetail.VendorOrgCode, storeID, storeDetail.VendorStoreID).BatchCreateStore(ShopBatchCreateStoreParam); err != nil {
|
||||||
globals.SugarLogger.Debug("检测resp1==========", resp)
|
globals.SugarLogger.Debug("检测resp1==========", resp)
|
||||||
return "", err
|
return "", err
|
||||||
|
|||||||
Reference in New Issue
Block a user