51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
<?php
|
||
|
||
namespace App\Services\Tg\Hook\Mod;
|
||
|
||
use App\Models\Config as ModelConfig;
|
||
use App\Services\Tg\Hook\Dog;
|
||
|
||
class Config extends Base {
|
||
|
||
private $oDog;
|
||
|
||
public function __construct($aUpdate)
|
||
{
|
||
|
||
$this->oDog = new Dog(new ModelConfig());
|
||
$this->oDog->_setDogName("config"); // 必须,me用,正常就是类名,只不过后期没准改名,所以就这里写死
|
||
$this->oDog->_setPrimaryKey("item"); // 可选,默认id
|
||
// $this->oDog->_setStrField(["content"]); // 可选,指定长文本字段
|
||
}
|
||
|
||
public function __call($sName, $aArg)
|
||
{
|
||
return $this->oDog->$sName($aArg[0]);
|
||
}
|
||
|
||
public function t1()
|
||
{
|
||
$r = ModelConfig::_hit("mailMustMap_clientGroup:vcode");
|
||
tomd($r, 1);
|
||
}
|
||
|
||
// public function show($aParam)
|
||
// {
|
||
// $sDate = $aParam["aArg"][1] ?? date("Y-m-d");
|
||
//
|
||
// $aMailLog = ModelMailLog::whereDate("date", $sDate)->get()->toArray();
|
||
//
|
||
// return $this->toJson($aMailLog);
|
||
// }
|
||
//
|
||
// public function count()
|
||
// {
|
||
// $aCount = ModelMailLog::selectRaw('date, count(*) as total')
|
||
// ->groupBy('date')
|
||
// ->get();
|
||
//
|
||
// return $this->toJson($aCount);
|
||
// }
|
||
|
||
}
|