From 64fb63ea001f4456889e201ae26f9a081215a20f Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 20 Mar 2023 16:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E7=AB=A0ui=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/MyArticle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/MyArticle.php b/app/api/controller/MyArticle.php index fcafb6f..5024063 100644 --- a/app/api/controller/MyArticle.php +++ b/app/api/controller/MyArticle.php @@ -20,7 +20,7 @@ class MyArticle extends BaseController Auth::class => ['except' => ['index','details'] ] ]; - public function index($search = '', $category_id = 1, $page = 1, $is_time=0,) + public function index($search = '', $category_id = 1, $page = 1, $is_time=0) { $where = [ ['status', '=', 1], @@ -81,7 +81,7 @@ class MyArticle extends BaseController } $name['address_name'] = Db::table('fa_szxc_information_usermsg')->where('user_id', $this->request->uid)->value('address_name'); - $name['vartar'] = Db::connect('shop')->table('eb_user')->where('id', $this->request->uid)->value('avatar'); + $name['vartar'] = Db::connect('shop')->table('eb_user')->where('uid', $this->request->uid)->value('avatar'); $name['name'] = Db::table('fa_szxc_information_usermsg')->where('user_id', $this->request->uid)->value('name'); return $this->apiSuccess('ok', ['list' => $select, 'count' => ['count' => $count, 'month_count' => $month_count],'actor'=>$name]);