会话列表 edit

This commit is contained in:
2025-12-04 09:33:24 +08:00
parent 43f99495ed
commit e371039374

View File

@@ -126,7 +126,7 @@ class MessageController extends ApiController
// 批量更新
$query->update(['is_read' => 1]);
Db::commit();
return $this->success();
return $this->success(true);
}catch (\Throwable $exception) {
Db::rollback();
return $this->error($exception->getMessage());
@@ -154,7 +154,7 @@ class MessageController extends ApiController
// 批量更新
$query->update(['is_read' => 1]);
Db::commit();
return $this->success();
return $this->success(true);
}catch (\Throwable $exception) {
Db::rollback();
return $this->error($exception->getMessage());