|
|
|
@ -11,11 +11,18 @@ class CheckUpTypeController extends Controller
|
|
|
|
//H5获取体检类型名称和logo
|
|
|
|
//H5获取体检类型名称和logo
|
|
|
|
public function GetList()
|
|
|
|
public function GetList()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$openid = request('openid');
|
|
|
|
|
|
|
|
$user=DB::table('web_users')->where(['openid'=>$openid])->first();
|
|
|
|
$ids = [7,1,4];
|
|
|
|
$ids = [7,1,4];
|
|
|
|
$sortedIds = implode(',', array_map('intval', $ids));
|
|
|
|
$sortedIds = implode(',', array_map('intval', $ids));
|
|
|
|
$list=DB::table('checkup_type')->where(['status'=>1,'is_del'=>0])
|
|
|
|
$list=DB::table('checkup_type')->where(['status'=>1,'is_del'=>0])
|
|
|
|
->orderByRaw("FIELD(id, {$sortedIds})")
|
|
|
|
->orderByRaw("FIELD(id, {$sortedIds})");
|
|
|
|
->get();
|
|
|
|
|
|
|
|
|
|
|
|
if($user->dev===1){ //开发人员开启婚检
|
|
|
|
|
|
|
|
$list=$list->orWhere('id',4);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$list=$list->get();
|
|
|
|
|
|
|
|
|
|
|
|
foreach($list as $k=>$v){
|
|
|
|
foreach($list as $k=>$v){
|
|
|
|
if($v->name=='健康体检'){
|
|
|
|
if($v->name=='健康体检'){
|
|
|
|
$v->name='预约体检';
|
|
|
|
$v->name='预约体检';
|
|
|
|
|