输出调试信息

This commit is contained in:
苏尹岚
2020-01-13 11:56:57 +08:00
parent fb36ee4c68
commit 0fd1880dae

View File

@@ -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,