no message
This commit is contained in:
parent
66ee52263e
commit
d3549ce324
@ -128,20 +128,25 @@ class Article extends Base {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function JsonSet($aParam, $sType = "set")
|
public function Json($aParam)
|
||||||
{
|
{
|
||||||
$iId = $aParam["aOption"][1] ?? false;
|
$iId = $aParam["aOption"][1] ?? false;
|
||||||
$sJson = $aParam["aArg"] ?? 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) {
|
if (!$iId) {
|
||||||
return "需要id";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$sJson) {
|
|
||||||
return "需要json";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($sType == "add") {
|
|
||||||
|
|
||||||
$oArticle = new ModelArticle();
|
$oArticle = new ModelArticle();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user