会话列表 edit
This commit is contained in:
@@ -126,7 +126,7 @@ class MessageController extends ApiController
|
|||||||
// 批量更新
|
// 批量更新
|
||||||
$query->update(['is_read' => 1]);
|
$query->update(['is_read' => 1]);
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return $this->success();
|
return $this->success(true);
|
||||||
}catch (\Throwable $exception) {
|
}catch (\Throwable $exception) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
return $this->error($exception->getMessage());
|
return $this->error($exception->getMessage());
|
||||||
@@ -154,7 +154,7 @@ class MessageController extends ApiController
|
|||||||
// 批量更新
|
// 批量更新
|
||||||
$query->update(['is_read' => 1]);
|
$query->update(['is_read' => 1]);
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return $this->success();
|
return $this->success(true);
|
||||||
}catch (\Throwable $exception) {
|
}catch (\Throwable $exception) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
return $this->error($exception->getMessage());
|
return $this->error($exception->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user