fix(api): 评级列表修改

master
yin5th 2023-01-13 18:00:06 +08:00
parent 1cf835c2d7
commit c5548e7c92
1 changed files with 3 additions and 2 deletions

View File

@ -713,12 +713,13 @@ class User extends Base
*/
public function starList(): Json
{
$accountId = $this->request->user['user_id'] ?? 0;
$accountId = input('account_id/d', 0);
$accountId = $accountId ?: 0;
$worksiteId = input('worksite_id/d', 0);
$worksiteId = $worksiteId ?: 0;
if (!$account = Account::findById($accountId)) {
return $this->json(6001, '请先登录');
return $this->json(4004, '用户不存在');
}
$where = [];