This commit is contained in:
hujiabin 2024-08-26 14:22:19 +08:00
parent 57724a4c4b
commit 5b1e7ced89
2 changed files with 5 additions and 1 deletions

View File

@ -216,6 +216,10 @@ class InGameMallController extends BaseAuthedController {
$this->_rspErr(1, 'param goods_unnid error'); $this->_rspErr(1, 'param goods_unnid error');
return; return;
} }
if ($chipDb['inlay_state'] == 1){
$this->_rspErr(1, 'Unable to sell goods in use');
return;
}
$orderField = $chipDb['quality']; $orderField = $chipDb['quality'];
} }
break; break;

View File

@ -70,8 +70,8 @@ class ChipPage extends BaseModel
foreach ($data as &$value){ foreach ($data as &$value){
$chipDb = Chip::find($value['chip_id']); $chipDb = Chip::find($value['chip_id']);
if ( !$chipDb ) { if ( !$chipDb ) {
$value['chip_id'] = 0;
Chip::updateInlayState($value['chip_id'],0); Chip::updateInlayState($value['chip_id'],0);
$value['chip_id'] = 0;
} }
} }
self::update($row['hero_uniid'],array( self::update($row['hero_uniid'],array(