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