redis调整

This commit is contained in:
chengxl
2025-08-07 16:14:26 +08:00
parent 104eb43c47
commit c7b4539c49
3 changed files with 172 additions and 67 deletions

View File

@@ -470,7 +470,7 @@ class Material
$aInsert['create_time'] = $iTime;
$response = Db::name('ai_journal_editor_material')->insertGetId($aInsert);
}else{
$aWhere['author_id'] = $aMaterial['author_id'];
$aWhere['author_id'] = $aMaterial['id'];
$aInsert['update_time'] = $iTime;
$response = Db::name('ai_journal_editor_material')->where($aWhere)->limit(1)->update($aInsert);
}

View File

@@ -619,7 +619,7 @@ class OpenAi
curl_setopt($this->curl, CURLOPT_PROXY, $this->proxy);
curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($this->curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); // 强制TLS版本
// curl_setopt($this->curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); // 强制TLS版本
// 核心传输配置 - 解决数据截断
curl_setopt($this->curl, CURLOPT_POST, true);