diff --git a/app/Services/TG/Hook/Mod/Option.php b/app/Services/TG/Hook/Mod/Option.php index 6b1aa80..5a0566d 100644 --- a/app/Services/TG/Hook/Mod/Option.php +++ b/app/Services/TG/Hook/Mod/Option.php @@ -14,13 +14,13 @@ class Option extends Base { throw new \Exception("没有?"); } - $str = ""; - foreach ($oOptionList as $row) { -// $str .= "\n\n"; - $str .= $row->key."::".$row->value; - } +// $str = ""; +// foreach ($oOptionList as $row) { +//// $str .= "\n\n"; +// $str .= $row->key."::".$row->value; +// } - return $str; + return $this->toJson($oOptionList); } @@ -33,7 +33,7 @@ class Option extends Base { $oOption->key = $sKey; $r = $oOption->save(); - return $r; + return $this->toJson($oOption); } public function Like($aParam) @@ -47,7 +47,9 @@ class Option extends Base { throw new \Exception("没有"); } - $this->eachSendTg($oOption); + return $this->toJson($oOption); + +// $this->eachSendTg($oOption); }