修复文章ui错误

This commit is contained in:
mkm 2023-03-20 16:49:06 +08:00
parent b6fc04e547
commit 64fb63ea00

View File

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