lqmac 6 months ago
parent fce590d623
commit 93a4a7a24a
  1. 2
      app/command/SyncStoreBasicData.php
  2. 3
      app/common/model/sharp/Goods.php
  3. 2
      app/common/model/store/Setting.php
  4. 2
      app/store/controller/Goods.php

@ -86,7 +86,7 @@ class SyncStoreBasicData extends Command
if ($isSyncBannerData) {
$this->syncBannerData($store);
}
//Store::where('store_id', $store['store_id'])->update(['is_sync' => 1]);
Store::where('store_id', $store['store_id'])->update(['is_sync' => 1]);
}

@ -111,7 +111,8 @@ class Goods extends BaseModel
// 商品图片
$item['goods_image'] = !empty($item['goods']['goods_image']) ? $item['goods']['goods_image'] : '';
// 秒杀商品原价 (获取主商品价格)
$item['original_price'] = !empty($item['goods']['original_price']) ? $item['goods']['original_price']: $item['goods']['goods_price_min'];
//$item['original_price'] = !empty($item['goods']['original_price']) ? $item['goods']['original_price']: $item['goods']['goods_price_min'];
$item['original_price'] = !empty($item['goods']['original_price']) ?? $item['goods']['goods_price_min'];
// 回调函数
is_callable($callback) && call_user_func($callback, $item);
}

@ -380,7 +380,7 @@ class Setting extends BaseModel
'auto' => [
'category' => 0, // 商品分类 0为全部
'goodsSort' => 'all', // 商品排序 (all默认 sales销量 price价格)
'showNum' => 15 // 显示数量
'showNum' => 50 // 显示数量
],
'goodsIds' => [] // 手动选择的商品ID集
],

@ -177,7 +177,7 @@ class Goods extends Controller
['goods_id'=>'系统编码(禁止修改)'],
['goods_name'=>'标题'],
['cmmdty_model'=>'商品型号'],
['goods_source'=>'商品来源(JD:京东 SN:苏宁 GC:工厂 CC:仓储 ZC:自采 填其中一项)'],
['goods_source'=>'商品来源(GC:工厂 CC:仓储 ZC:自采 填其中一项)'],
['goods_no'=>'商品编码(电商平台同款编码)'],
['category_id'=>'分类(填写1级到现有分类代码,中间用英文小写的逗号分开)'],
['delivery_time'=>'发货时效(0:24小时 1:48小时 3:72小时 4:7天内 5:15天内 6:30天内 7:45天内 填写其中一项)'],

Loading…
Cancel
Save