is_persist 实际扣道具

This commit is contained in:
殷勇 2023-11-15 10:57:49 +08:00
parent 98ee92c347
commit 43feb77029

View File

@ -60,7 +60,11 @@ class BagController extends BaseAuthedController {
$this->_rspErr(3, $this->_getLackItemErrMsg($lackItem));
return;
}
$this->_decItems($costItems);
$isPersist = getReqVal('is_persist', 0);
if ($isPersist == 1) {
$this->_decItems($costItems);
}
$this->_rspOk();
}