Compare commits

..

No commits in common. '105d335647dd88d125acd7e81f089cc588ebedaa' and '5d3e1b465218c3affcd172dcc5d9f86eda530fb2' have entirely different histories.

  1. 4
      app/api/model/Goods.php
  2. 9
      app/api/service/Goods.php

@ -235,6 +235,7 @@ class Goods extends GoodsModel
'is_change' => 0,
'status' => 1,
])->order('id desc')->find();
if ($info) {
$goods = explode(',', $info->goods_list);
@ -266,6 +267,7 @@ class Goods extends GoodsModel
public function presaleCateList()
{
$info = PreSale::where([
'store_id' => request()->header()['storeid'],
'is_change' => 0,
@ -281,8 +283,8 @@ class Goods extends GoodsModel
'a.status' => 10,
'c.parent_id' => 0,
])->whereIn('a.goods_id', $goods)->field('c.*,a.sales_initial,a.sales_actual')->select()->toArray();
$list = $this->removeDuplicatesByField($list, 'category_id');
$info['end_time'] = strtotime($info->p_time) - time();
$res['info'] = $info;
$res['category'] = $list;
return $res;

@ -52,7 +52,8 @@ class Goods extends GoodsService
public function getCommonConfig()
{
//todo wmc1新品首发背景图 2限时秒杀背景图 3排行榜背景图 4大牌正品是轮播 5预售规则
//todo wmc1新品首发背景图 2限时秒杀背景图 3排行榜背景图 4大牌正品是轮播
switch (request()->get('type')) {
case 1:
$data['imgurl'] = 'https://www.saas.njrenzhou.com/uploads/10001/20240131/bdc5f17f3ff8c53ce0853177bc4f1917.png';
@ -72,12 +73,6 @@ class Goods extends GoodsService
];
return $data;
break;
case 5:
$data['imgurl'] = [
'http://qiniu.shop.royaum.com.cn/10001/20240201/13f2e675794e25176352fc039dfb6dcb.jpg',
];
return $data;
break;
}
return [];
}

Loading…
Cancel
Save