coze部分接口

This commit is contained in:
Ghost
2025-04-02 10:19:03 +08:00
parent a42bf9e6e6
commit a60dc8d181
12 changed files with 504 additions and 24 deletions

View File

@@ -33,7 +33,6 @@ class BaseController extends Api
// 尝试从缓存获取设备信息
$device = Cache::get($cacheKey);
$device = '';
// 如果缓存不存在,则从数据库获取
if (!$device) {
$device = Db::name('device_user')
@@ -61,6 +60,6 @@ class BaseController extends Api
protected function clearDeviceCache()
{
$cacheKey = 'device_info_' . $this->userInfo['id'] . '_' . $this->userInfo['companyId'];
Cache::delete($cacheKey);
Cache::rm($cacheKey);
}
}