github-pachong/app/Services/Tg/Hook/Mod/SiteMap.php
hellcat c69d35d1bb 1
2026-01-10 16:40:33 +08:00

31 lines
678 B
PHP
Executable File
Raw Permalink 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\Services\Tg\Hook\Dog;
use App\Models\SiteMap as ModelSiteMap;
class SiteMap extends Base {
private $oDog;
// private $aUpdate;
public function __construct($aUpdate)
{
$this->oDog = new Dog(new ModelSiteMap());
$this->oDog->_setDogName("siteMap");
$this->oDog->_setPrimaryKey("code"); // 可选默认id
$this->oDog->_setJsonField(["config", "api_path"]);
// $this->oDog->_setStrField(["content"]);
// $this->aUpdate = $aUpdate;
}
public function __call($sName, $aArg)
{
return $this->oDog->$sName($aArg[0]);
}
}