Compare commits

...

1 Commits

Author SHA1 Message Date
殷勇
43feb77029 is_persist 实际扣道具 2023-11-15 10:57:49 +08:00

View File

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