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 { $lists = ProductHot::select(['cover_img as image','product_id']) ->where('type',\user()->account->type) ->where('is_opened' ,1) ->orderByDesc('sort') ->get(); return $this->success($lists); } }