oDog = new Dog(new ModelCacheTg()); $this->oDog->_setDogName("cacheTg"); $this->oDog->_setStrField(["content"]); $this->aUpdate = $aUpdate; } public function add($aParam) { $sFromGroupCode = $aParam["aOption"][1] ?? "ffq_tg_a"; $sContent = implode(' ', $aParam["aArg"]); $oServicesCacheTg = new ServiceCacheTg(); $oFlow = $oServicesCacheTg->add($sContent, $sFromGroupCode); $sMsg = ''; if ($oFlow->isDone()) { $sMsg = $sFromGroupCode."添加一条缓存"; } return $sMsg; } }