no message
This commit is contained in:
parent
09552234c9
commit
a37a93ab17
23
app/Services/Tg/Hook/Mod/Articles.php
Executable file
23
app/Services/Tg/Hook/Mod/Articles.php
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Services\Tg\Hook\Mod;
|
||||||
|
use App\Models\Articles as ModelArticles;
|
||||||
|
use App\Services\Tg\Hook\Dog;
|
||||||
|
|
||||||
|
class Articles extends Base {
|
||||||
|
|
||||||
|
private $oDog;
|
||||||
|
|
||||||
|
public function __construct($aUpdate = [])
|
||||||
|
{
|
||||||
|
$this->oDog = new Dog(new ModelArticles());
|
||||||
|
// $this->oDog->_setPrimaryKey("k"); // 可选,默认id
|
||||||
|
$this->oDog->_setDogName("articles"); // 必须
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __call($sName, $aArg)
|
||||||
|
{
|
||||||
|
return $this->oDog->$sName($aArg[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user