31 lines
726 B
PHP
Executable File
31 lines
726 B
PHP
Executable File
<?php
|
||
|
||
namespace App\Services\Tg\Hook\Mod;
|
||
|
||
use App\Models\Blade as ModelBlade;
|
||
use App\Services\Tg\Hook\Dog;
|
||
use Illuminate\Support\Str;
|
||
|
||
class Blade extends Base {
|
||
|
||
private $oDog;
|
||
|
||
public function __construct($aUpdate)
|
||
{
|
||
|
||
$this->oDog = new Dog(new ModelBlade());
|
||
$this->oDog->_setDogName("blade"); // 必须,me用,正常就是类名,只不过后期没准改名,所以就这里写死
|
||
$this->oDog->_setPrimaryKey("code"); // 可选,默认id
|
||
$this->oDog->_setStrField(["content"]); // 可选,指定长文本字段
|
||
|
||
}
|
||
|
||
public function __call($sName, $aArg)
|
||
{
|
||
|
||
return $this->oDog->$sName($aArg[0]);
|
||
|
||
}
|
||
|
||
}
|