SystemBase::mForm(‘form’);
public function state()
{
ShopGoods::mSave($this->_vali([
‘status.in:0,1’ => ‘状态值范围异常!’,
‘status.require’ => ‘状态值不能为空!’,
]), ‘code’);
}
SystemBase::mDelete();
WareInfo::mDelete(‘ware_id’);//ware_id为主键
DataUserBalance::mDelete(”, [[‘code’, ‘like’, ‘B%’]]);
public function remove()
{
ShopGoods::mSave($this->_vali([
‘deleted.in:0,1’ => ‘状态值范围异常!’,
‘deleted.require’ => ‘状态值不能为空!’,
]), ‘code’);
}
protected function _delete_result()
{
$this->_form_result(true);
}