输出调试信息
This commit is contained in:
@@ -2279,17 +2279,20 @@ func GetTopSkusByCityCode(ctx *jxcontext.Context, cityCode, storeID int) (skuNam
|
||||
for _, storeSkuSync := range storeSkuSyncInfo {
|
||||
skuMap[storeSkuSync.ID] = storeSkuSync
|
||||
}
|
||||
globals.SugarLogger.Debugf("test", storeSkuSyncInfo)
|
||||
v.UnitPrice = int(storeSkuSyncInfo[0].UnitPrice)
|
||||
skuList, _ := dao.GetSkus(db, nil, []int{v.ID}, nil, nil)
|
||||
v.Skus = skuList
|
||||
for _, vv := range skuList {
|
||||
globals.SugarLogger.Debugf("test1", vv)
|
||||
var (
|
||||
storeSkuNameExt []*dao.StoreSkuNameExt
|
||||
skusList []*dao.StoreSkuExt
|
||||
price int
|
||||
)
|
||||
vv.StoreSkuStatus = model.StoreSkuBindStatusDontSale
|
||||
vv.Price = int(skuMap[vv.ID].Price)
|
||||
price = int(skuMap[vv.ID].Price)
|
||||
vv.Price = price
|
||||
skus := &dao.StoreSkuExt{
|
||||
SkuID: vv.ID,
|
||||
BindPrice: price,
|
||||
|
||||
Reference in New Issue
Block a user