1
This commit is contained in:
parent
cd2eb8948e
commit
54441ff859
@ -162,6 +162,15 @@ class EquipController{
|
|||||||
$active_time = 0;
|
$active_time = 0;
|
||||||
}
|
}
|
||||||
$time_flag = 0;
|
$time_flag = 0;
|
||||||
|
if ($flag == 0) {
|
||||||
|
$ret = $conn->execScript('UPDATE equip SET id=:id, lv=0, modify_time=:modify_time ' .
|
||||||
|
' WHERE accountid=:accountid;',
|
||||||
|
array(
|
||||||
|
':accountid' => $account_id,
|
||||||
|
':modify_time' => time(),
|
||||||
|
':id' => $id,
|
||||||
|
));
|
||||||
|
}
|
||||||
$time = $row['active_time'] + $row['sub_time'];
|
$time = $row['active_time'] + $row['sub_time'];
|
||||||
if (time() >= $time && $row['sub_time'] != 0) {
|
if (time() >= $time && $row['sub_time'] != 0) {
|
||||||
$ret1 = $conn->execScript('UPDATE equip SET active_time=0, sub_time=0, modify_time=:modify_time ' .
|
$ret1 = $conn->execScript('UPDATE equip SET active_time=0, sub_time=0, modify_time=:modify_time ' .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user