coze优化 + 微信好友微信群聊天同步

This commit is contained in:
Ghost
2025-04-09 09:11:20 +08:00
parent 919317630e
commit c7c499f006
18 changed files with 1663 additions and 12 deletions

View File

@@ -38,19 +38,18 @@ class BaseController extends Api
$device = Db::name('device_user')
->alias('du')
->join('device d', 'd.id = du.deviceId','left')
->join('wechat_account wa', 'd.id = wa.currentDeviceId','left')
->where([
'du.userId' => $this->userInfo['id'],
'du.companyId' => $this->userInfo['companyId']
])
->field('d.*')
->field('d.*,wa.id as wechatAccountId,wa.wechatId,wa.alias')
->find();
// 将设备信息存入缓存
if ($device) {
Cache::set($cacheKey, $device, $this->cacheExpire);
}
}
$this->device = $device;
}