|
@@ -29,6 +29,7 @@ class Index extends Api
|
|
|
public function banner()
|
|
|
{
|
|
|
$list = Db::name('banner')->field('id, title, image, url')->order('weigh', 'desc')->select();
|
|
|
+ $list = list_domain_image($list, ['image']);
|
|
|
|
|
|
$this->success('轮播图', $list);
|
|
|
}
|
|
@@ -50,6 +51,7 @@ class Index extends Api
|
|
|
$list = Db::name('active')->field('id, type, title, desc, remark, image, price, maxperson, currentperson, status')
|
|
|
->where($where)->page($this->page, $this->pagenum)->order('createtime', 'desc')->select();
|
|
|
|
|
|
+ $list = list_domain_image($list, ['image']);
|
|
|
foreach ($list as &$v) {
|
|
|
if ($v['maxperson'] <= $v['currentperson']) {
|
|
|
$v['is_full'] = 1;
|
|
@@ -73,6 +75,7 @@ class Index extends Api
|
|
|
$this->error('数据不存在');
|
|
|
}
|
|
|
|
|
|
+ $info['image'] = info_domain_image($info, ['image']);
|
|
|
$info['starttime'] = date('Y-m-d H:i', $info['starttime']);
|
|
|
$info['endtime'] = date('Y-m-d H:i', $info['endtime']);
|
|
|
$info['collectiontime'] = date('Y-m-d H:i', $info['collectiontime']);
|
|
@@ -87,6 +90,7 @@ class Index extends Api
|
|
|
}
|
|
|
|
|
|
$info['active_people'] = $active_people;
|
|
|
+ $info['customer_service'] = config('site.customer_service') ? config('site.customer_service') : ''; //客服电话
|
|
|
|
|
|
$this->success('招标详情', $info);
|
|
|
}
|