diff --git a/app/Models/Article.php b/app/Models/Article.php new file mode 100755 index 00000000..db8a2664 --- /dev/null +++ b/app/Models/Article.php @@ -0,0 +1,22 @@ +toArray(); + + foreach ($aSelf as &$aSelfRow) { + unset($aSelfRow["content"]); + } + + return $aSelf; + } +} diff --git a/app/Models/ArticleOption.php b/app/Models/ArticleOption.php new file mode 100755 index 00000000..98e41e45 --- /dev/null +++ b/app/Models/ArticleOption.php @@ -0,0 +1,24 @@ +toArray(); +// +// foreach ($aSelf as &$aSelfRow) { +// unset($aSelfRow["content"]); +// } +// +// return $aSelf; +// } + + +} diff --git a/app/Services/TG/Hook/Mod/Article.php b/app/Services/TG/Hook/Mod/Article.php new file mode 100644 index 00000000..801b1577 --- /dev/null +++ b/app/Services/TG/Hook/Mod/Article.php @@ -0,0 +1,30 @@ +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->oDog->$sName($aArg[0]); + + } + +}