// +---------------------------------------------------------------------- namespace app\admin\model\kefu; use traits\ModelTrait; use basic\ModelBasic; use service\HookService; use service\SystemConfigService; class KefuSpeechCraft extends ModelBasic { use ModelTrait; protected $name = "kefu_speechcraft"; public function getAddTimeAttr($time) { return date("Y/m/d H:i:s", $time); } public function category() { return $this->hasOne(KefuSpeechCraftCate::class, "id", "cate_id"); } }