刮刮后端接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
531 B

<?php
namespace app\model;
class ZoneGoods extends \think\Model
{
public static function getList($param)
{
$where = ['status' => 1];
if (isset($param['zone_id'])) $where['zone_id'] = $param['zone_id'];
$field = 'zone_id,title,important,price,cover_image';
$list = self::where($where)->field($field)->order('id desc')->select()->toArray();
foreach ($list as &$item) {
$item['cover_image'] = get_image_url($item['cover_image']);
}
return $list;
}
}