1
This commit is contained in:
parent
5b1e7ced89
commit
7a3e7c1f80
@ -216,10 +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){
|
// if ($chipDb['inlay_state'] == 1){
|
||||||
$this->_rspErr(1, 'Unable to sell goods in use');
|
// $this->_rspErr(1, 'Unable to sell goods in use');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
$orderField = $chipDb['quality'];
|
$orderField = $chipDb['quality'];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -345,9 +345,16 @@ class Chip extends BaseModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function updateInlayState($chip_unnid,$status){
|
public static function updateInlayState($chip_unnid,$status){
|
||||||
self::update2($chip_unnid,array(
|
SqlHelper::update
|
||||||
'inlay_state' => $status
|
(myself()->_getSelfMysql(),
|
||||||
));
|
't_chip',
|
||||||
|
array(
|
||||||
|
'idx' => $chip_unnid,
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'inlay_state' => $status
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,8 +118,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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user