代码优化

This commit is contained in:
wong
2025-09-29 11:46:37 +08:00
parent 0e6b885095
commit 5f0c1c8b97
2 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ class KfNoticeCommand extends Command
$followUp = FollowUp::where($where)->alias('a')
->field('a.*,f.nickname,f.avatar,f.alias,f.wechatId')
->join(['s2_wechat_friend f'], 'a.friendId = f.id')
->where('isRemind',0)
->where('a.isRemind',0)
->select();
if (!empty($followUp)) {
foreach ($followUp as $k => $v) {
@@ -81,7 +81,7 @@ class KfNoticeCommand extends Command
$toDo = ToDo::where($where)->alias('a')
->field('a.*,f.nickname,f.avatar,f.alias,f.wechatId')
->join(['s2_wechat_friend f'], 'a.friendId = f.id')
->where('isRemind',0)
->where('a.isRemind',0)
->select();
if (!empty($toDo)) {
foreach ($toDo as $k => $v) {