where('is_opened' ,1) ->orderByDesc('sort') ->get(); return $this->success($lists); } public function contact(): JsonResponse { $lists = Contact::select(['name','phone_num','wechat_num'])->get(); return $this->success($lists); } public function indexBanner(): JsonResponse { $type = \user()->account->type != 1 ? 2 : 1; $lists = ProductHot::select(['cover_img as image','product_id']) ->where('type',$type) ->where('is_opened' ,1) ->orderByDesc('sort') ->get(); return $this->success($lists); } }