From 54441ff859d4cf6ab33613db6adb2e5cb9d2c663 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 19 Aug 2020 12:26:20 +0800 Subject: [PATCH] 1 --- webapp/controller/EquipController.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webapp/controller/EquipController.class.php b/webapp/controller/EquipController.class.php index 3d143f7..f22fa4b 100644 --- a/webapp/controller/EquipController.class.php +++ b/webapp/controller/EquipController.class.php @@ -162,6 +162,15 @@ class EquipController{ $active_time = 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']; if (time() >= $time && $row['sub_time'] != 0) { $ret1 = $conn->execScript('UPDATE equip SET active_time=0, sub_time=0, modify_time=:modify_time ' .