no message

This commit is contained in:
hellcat 2025-07-02 17:05:37 +08:00
parent baa0c0da04
commit 296436138c

View File

@ -30,6 +30,21 @@ class Ship extends Base {
return $this->toJson($oShip);
}
public function Add($aParam)
{
$sCode = $aParam["aArg"][1] ?? false;
if (!$sCode) {
return "需要code";
}
$oShip = new ModelShip();
$oShip->code = $sCode;
$oShip->save();
return $this->toJson($oShip);
}
public function Set($aParam)
{
$sCode = $aParam["aOption"][1] ?? false;