$info = Db::name('store_company')->where(['id'=>$company_id])->field('id,name,cate_id,company_type,vid,logo,content,files')->find();
$tmp = Db::name('store_company_cate')->where('id','in',$info['cate_id'])->field('title')->select();
$info['cate_id'] = implode(',', array_column($tmp,'title'));
$c = Db::name('store_collection')->where(['userid'=>$userid,'goodsid'=>$company_id,'type'=>3])->find();
if($c){
$info['is_collection'] = 1;
}else{
$info['is_collection'] = 2;
}
if($info['company_type'] == 1){
$hot_list = Db::name('store_supply')->where(['vid'=>$info['vid'],'is_deleted'=>0,'status'=>1,'is_hot'=>1])->limit(8)->field('id,imgs,title,price,vid,thumb_display')->select();
$new_list = Db::name('store_supply')->where(['vid'=>$info['vid'],'is_deleted'=>0,'status'=>1])->limit(8)->order('id desc')->field('id,imgs,title,price,vid,thumb_display')->select();
foreach ($hot_list as &$v) {
$v['is_tp'] = 0;
}
foreach ($new_list as &$val) {
$val['is_tp'] = 0;
}
}else{