no message

This commit is contained in:
hellcat 2025-07-07 12:35:54 +08:00
parent 66ee52263e
commit d3549ce324

View File

@ -128,20 +128,25 @@ class Article extends Base {
}
public function JsonSet($aParam, $sType = "set")
public function Json($aParam)
{
$iId = $aParam["aOption"][1] ?? false;
$sJson = $aParam["aArg"] ?? false;
if (empty($aParam["aOption"]) && empty($aParam["aArg"])) {
return "json__id? json | 有id为set无id为add";
}
// if (!$iId) {
// return "需要id";
// }
//
// if (!$sJson) {
// return "需要json";
// }
if (!$iId) {
return "需要id";
}
if (!$sJson) {
return "需要json";
}
if ($sType == "add") {
$oArticle = new ModelArticle();