作者 lishaoshuai
1 个管道 的构建 通过 耗费 0 秒

更新 LeaveController.php

@@ -89,7 +89,7 @@ class LeaveController extends RestBaseController @@ -89,7 +89,7 @@ class LeaveController extends RestBaseController
89 $condition['l.to_uid|l.from_uid'] = $this->userId; 89 $condition['l.to_uid|l.from_uid'] = $this->userId;
90 $field = 'l.id,l.to_uid,from.avatar,from.user_nickname name,content,l.create_time'; 90 $field = 'l.id,l.to_uid,from.avatar,from.user_nickname name,content,l.create_time';
91 //将该业务员的 留言都改为已读状态 91 //将该业务员的 留言都改为已读状态
92 - Db::name('leave')->where(['to_uid|from_uid' => $this->userId])->update(['is_read' => 1]); 92 + Db::name('leave')->where(['to_uid|from_uid' => $this->userId,'parent_id' => 0])->update(['is_read' => 1]);
93 } 93 }
94 $result = Db::name('leave') 94 $result = Db::name('leave')
95 ->alias('l') 95 ->alias('l')