no message
This commit is contained in:
parent
bb565e4559
commit
8c7d2648d4
32
src/Services/Tg/Hook/Mod/Faq.php
Normal file
32
src/Services/Tg/Hook/Mod/Faq.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Services\Tg\Hook\Mod;
|
||||||
|
|
||||||
|
use App\Models\Faq as ModelFaq;
|
||||||
|
use App\Services\Tg\Hook\Dog;
|
||||||
|
//use App\Services\IM\TelegramV2;
|
||||||
|
|
||||||
|
class Faq extends Base {
|
||||||
|
|
||||||
|
private $oDog;
|
||||||
|
|
||||||
|
public function __construct($aUpdate)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->oDog = new Dog(new ModelFaq());
|
||||||
|
$this->oDog->_setDogName("faq"); // 必须,me用,正常就是类名,只不过后期没准改名,所以就这里写死
|
||||||
|
// $this->oDog->_setPrimaryKey("code"); // 可选,默认id
|
||||||
|
$this->oDog->_setStrField(["r"]); // 可选,指定长文本字段
|
||||||
|
// $this->oDog->_setInFormat(["date"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __call($sName, $aArg)
|
||||||
|
{
|
||||||
|
|
||||||
|
return $this->oDog->$sName($aArg[0]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user