自动问候功能提交

This commit is contained in:
wong
2025-09-26 15:37:15 +08:00
parent 1e1b65684d
commit acabbf30da
11 changed files with 462 additions and 33 deletions

View File

@@ -3,10 +3,10 @@
namespace app\chukebao\model;
use think\Model;
class AiFriendSettings extends Model
class AutoGreetings extends Model
{
protected $pk = 'id';
protected $name = 'ai_friend_settings';
protected $name = 'kf_auto_greetings';
// 自动写入时间戳
protected $autoWriteTimestamp = true;

View File

@@ -6,7 +6,7 @@ use think\Model;
class FollowUp extends Model
{
protected $pk = 'id';
protected $name = 'follow_up';
protected $name = 'kf_follow_up';
// 自动写入时间戳
protected $autoWriteTimestamp = true;

View File

@@ -0,0 +1,17 @@
<?php
namespace app\chukebao\model;
use think\Model;
class FriendSettings extends Model
{
protected $pk = 'id';
protected $name = 'kf_friend_settings';
// 自动写入时间戳
protected $autoWriteTimestamp = true;
protected $createTime = 'createTime';
protected $updateTime = 'updateTime';
}

View File

@@ -6,7 +6,7 @@ use think\Model;
class Questions extends Model
{
protected $pk = 'id';
protected $name = 'ai_questions';
protected $name = 'kf_questions';
// 自动写入时间戳
protected $autoWriteTimestamp = true;

View File

@@ -6,7 +6,7 @@ use think\Model;
class ToDo extends Model
{
protected $pk = 'id';
protected $name = 'to_do';
protected $name = 'kf_to_do';
// 自动写入时间戳
protected $autoWriteTimestamp = true;

View File

@@ -6,7 +6,7 @@ use think\Model;
class TokensRecord extends Model
{
protected $pk = 'id';
protected $name = 'tokens_record';
protected $name = 'kf_tokens_record';
// 自动写入时间戳
protected $autoWriteTimestamp = true;