mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 11:13:26 +00:00
no message
This commit is contained in:
parent
a336fd4a1a
commit
a8d4f261a4
@ -710,7 +710,7 @@ class File extends AbstractModel
|
|||||||
/**
|
/**
|
||||||
* code获取文件ID、名称
|
* code获取文件ID、名称
|
||||||
* @param $code
|
* @param $code
|
||||||
* @return File
|
* @return File|null
|
||||||
*/
|
*/
|
||||||
public static function code2IdName($code) {
|
public static function code2IdName($code) {
|
||||||
$arr = explode(",", base64_decode($code));
|
$arr = explode(",", base64_decode($code));
|
||||||
|
|||||||
@ -69,7 +69,7 @@ class Setting extends AbstractModel
|
|||||||
|
|
||||||
// AI 机器人设置
|
// AI 机器人设置
|
||||||
case 'aibotSetting':
|
case 'aibotSetting':
|
||||||
if ($value['claude_token'] && empty($value['claude_key'])) {
|
if (!empty($value['claude_token']) && empty($value['claude_key'])) {
|
||||||
$value['claude_key'] = $value['claude_token'];
|
$value['claude_key'] = $value['claude_token'];
|
||||||
}
|
}
|
||||||
$array = [];
|
$array = [];
|
||||||
@ -78,7 +78,7 @@ class Setting extends AbstractModel
|
|||||||
foreach ($aiList as $aiName) {
|
foreach ($aiList as $aiName) {
|
||||||
foreach ($fieldList as $fieldName) {
|
foreach ($fieldList as $fieldName) {
|
||||||
$key = $aiName . '_' . $fieldName;
|
$key = $aiName . '_' . $fieldName;
|
||||||
$content = $value[$key] ? trim($value[$key]) : '';
|
$content = !empty($value[$key]) ? trim($value[$key]) : '';
|
||||||
switch ($fieldName) {
|
switch ($fieldName) {
|
||||||
case 'models':
|
case 'models':
|
||||||
if ($content) {
|
if ($content) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user