no message
This commit is contained in:
parent
1d1f96e1be
commit
d02e4f1581
@ -14,7 +14,7 @@ use App\Models\Option as ModelOption;
|
||||
// $this->oDog->_setInFormat(["type"]); // 可选,zero^int,^date,^dateFull
|
||||
// $this->oDog->_setOutFormat(["time" => "date"]); // 可选,date,dateFull
|
||||
|
||||
class DOG extends Base {
|
||||
class Dog extends Base {
|
||||
|
||||
public $oModelSelf;
|
||||
public $sPrimaryKey = "id";
|
||||
@ -3,27 +3,27 @@
|
||||
namespace App\Services\TG\Hook\Mod;
|
||||
|
||||
use App\Models\Blade as ModelBlade;
|
||||
use App\Services\TG\Hook\Mod\DOG;
|
||||
use App\Services\TG\Hook\Dog;
|
||||
|
||||
|
||||
class Blade extends Base {
|
||||
|
||||
private $oDOG;
|
||||
private $oDog;
|
||||
|
||||
public function __construct($aUpdate)
|
||||
{
|
||||
|
||||
$this->oDOG = new DOG(new ModelBlade());
|
||||
$this->oDOG->_setPrimaryKey("code"); // 可选,默认id
|
||||
$this->oDOG->_setStrField(["content"]); // 可选,指定长文本字段
|
||||
$this->oDOG->_setDogName("blade"); // 必须,me用,正常就是类名,只不过后期没准改名,所以就这里写死
|
||||
$this->oDog = new Dog(new ModelBlade());
|
||||
$this->oDog->_setPrimaryKey("code"); // 可选,默认id
|
||||
$this->oDog->_setStrField(["content"]); // 可选,指定长文本字段
|
||||
$this->oDog->_setDogName("blade"); // 必须,me用,正常就是类名,只不过后期没准改名,所以就这里写死
|
||||
|
||||
}
|
||||
|
||||
public function __call($sName, $aArg)
|
||||
{
|
||||
|
||||
return $this->oDDT->$sName($aArg[0]);
|
||||
return $this->oDog->$sName($aArg[0]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -3,27 +3,27 @@
|
||||
namespace App\Services\TG\Hook\Mod;
|
||||
|
||||
use App\Models\BladeJctj as ModelBladeJctj;
|
||||
use App\Services\TG\Hook\Mod\DDT;
|
||||
use App\Services\TG\Hook\Dog;
|
||||
|
||||
|
||||
class Jctj extends Base {
|
||||
|
||||
private $oDDT;
|
||||
private $oDog;
|
||||
|
||||
public function __construct($aUpdate)
|
||||
{
|
||||
|
||||
$this->oDDT = new DDT(new ModelBladeJctj());
|
||||
$this->oDDT->_setPrimaryKey("id"); // 可选,默认id
|
||||
$this->oDDT->_setStrField(["content"]); // 可选,指定长文本字段
|
||||
$this->oDDT->_setThisName("jctj"); // 必须,me用,正常就是类名,只不过后期没准改名,所以就这里写死
|
||||
$this->oDog = new Dog(new ModelBladeJctj());
|
||||
$this->oDog->_setPrimaryKey("id"); // 可选,默认id
|
||||
$this->oDog->_setStrField(["content"]); // 可选,指定长文本字段
|
||||
$this->oDog->_setThisName("jctj"); // 必须,me用,正常就是类名,只不过后期没准改名,所以就这里写死
|
||||
|
||||
}
|
||||
|
||||
public function __call($sName, $aArg)
|
||||
{
|
||||
|
||||
return $this->oDDT->$sName($aArg[0]);
|
||||
return $this->oDog->$sName($aArg[0]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -3,20 +3,17 @@
|
||||
namespace App\Services\TG\Hook\Mod;
|
||||
|
||||
use App\Models\BladeJctjOption as ModelBladeJctjOption;
|
||||
use App\Services\TG\Hook\Mod\DDT;
|
||||
use App\Services\TG\Hook\Dog;
|
||||
|
||||
class JctjOption extends Base {
|
||||
|
||||
private $oDDT;
|
||||
private $aUpdate;
|
||||
private $oDog;
|
||||
|
||||
public function __construct($aUpdate)
|
||||
{
|
||||
|
||||
$this->aUpdate = $aUpdate;
|
||||
$this->oDDT = new DDT(new ModelBladeJctjOption());
|
||||
$this->oDDT->_setPrimaryKey("k");
|
||||
$this->oDDT->_setThisName("jctj_option");
|
||||
$this->oDog = new Dog(new ModelBladeJctjOption());
|
||||
$this->oDog->_setPrimaryKey("k");
|
||||
$this->oDog->_setThisName("jctj_option");
|
||||
// $this->oDDT->_setStrField(["content"]);
|
||||
|
||||
}
|
||||
@ -24,7 +21,7 @@ class JctjOption extends Base {
|
||||
public function __call($sName, $aArg)
|
||||
{
|
||||
|
||||
return $this->oDDT->$sName($aArg[0]);
|
||||
return $this->oDog->$sName($aArg[0]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user