dd/app/Services/TG/Hook/Mod/Jctj.php
2025-07-16 18:55:53 +08:00

31 lines
712 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Services\TG\Hook\Mod;
use App\Models\BladeJctj as ModelBladeJctj;
use App\Services\TG\Hook\Mod\DDT;
class Jctj extends Base {
private $oDDT;
public function __construct($aUpdate)
{
$this->oDDT = new DDT(new ModelBladeJctj());
$this->oDDT->_setPrimaryKey("id"); // 可选默认id
$this->oDDT->_setStrField(["content"]); // 可选,指定长文本字段
$this->oDDT->_setThisName("jctj"); // 必须me用正常就是类名只不过后期没准改名所以就这里写死
}
public function __call($sName, $aArg)
{
return $this->oDDT->$sName($aArg[0]);
}
}