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]);