no message

This commit is contained in:
hellcat 2026-03-31 18:38:19 +08:00
parent 63d3135109
commit eaa006b2a4

View File

@ -784,15 +784,23 @@ public function jsonSet($aParam)
$aJson = json_decode($sJson, true); $aJson = json_decode($sJson, true);
if ($sJson == "?") { if ($sJson == "?") {
return "#jsonSet__[id(主键)]__[field] [json]"; return "#jsonSet__[id]__[field] [json]";
} }
$aParam = []; if (!$iId || !$sField || !$sJson) {
$aParam["aOption"][1] = $iId; return "参数不足";
$aParam["aOption"][2] = $sField; }
$aParam["aArg"][1] = $aJson;
return $this->set($aParam); $oModelSelf = $this->oModelSelf->where("id", $iId)->first();
if (!$oModelSelf) {
return "没有这个";
}
$oModelSelf->$sField = $aJson;
$oModelSelf->save();
return $this->find($oModelSelf->id);
} }
public function schemaAdd($aParam) public function schemaAdd($aParam)