From e2502260329b1552cac55ccd56ef42a066239f34 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 19 Mar 2020 18:48:03 +0800 Subject: [PATCH] 1 --- webapp/controller/BagController.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index a4aa365..4ce401f 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -80,7 +80,7 @@ class BagController{ $active_time = 0; $color_id = 0; if (time() >= $row['active_time'] && $row['active_time'] != 0) { - $ret = $conn->execScript('UPDATE bag SET active_time=0, color_id=0, modify_time=:modify_time ' . + $ret = $conn->execScript('UPDATE bag SET active_time=0, color_id=0, status=2, modify_time=:modify_time ' . ' WHERE accountid=:account_id AND id=:id;', array( ':account_id' => $account_id, @@ -93,16 +93,18 @@ class BagController{ } $active_time = 0; $color_id = 0; + $status = 2; } else { if ($row['active_time'] != 0) { $active_time = $row['active_time']; } $color_id = $row['color_id']; + $status = $row['status']; } array_push($bag_list, array( 'id' => $row['id'], 'active_time' => $active_time, - 'status' => $row['status'], + 'status' => $status, 'color_id' => $color_id, )); }