存客宝微信好友表更名,模型动态引用

This commit is contained in:
柳清爽
2025-05-12 15:32:42 +08:00
parent 138e1c1deb
commit dbf6bb592a
14 changed files with 177 additions and 90 deletions

View File

@@ -8,12 +8,12 @@ use think\model\concern\SoftDelete;
/**
* 微信好友模型类
*/
class WechatFriend extends Model
class WechatFriendShip extends Model
{
use SoftDelete;
// 设置表名
protected $name = 'wechat_friend';
protected $name = 'wechat_friendship';
// 自动写入时间戳
protected $autoWriteTimestamp = true;