diff --git a/webapp/controller/QuestController.class.php b/webapp/controller/QuestController.class.php index 2d9aea6..7028762 100644 --- a/webapp/controller/QuestController.class.php +++ b/webapp/controller/QuestController.class.php @@ -159,12 +159,13 @@ class QuestController{ ':active_num' => 0 )); } - $ret = $conn->execScript('DELETE FROM quest ' . + $ret = $conn->execScript('UPDATE quest SET quest_state=:quest_state ' . ' WHERE accountid=:accountid AND quest_type=:quest_type AND quest_id<:quest_id;', array( ':accountid' => $account_id, ':quest_type' => 0, - ':quest_id' => $quest_id + ':quest_id' => $quest_id, + ':quest_state' => 0 )); } @@ -189,7 +190,6 @@ class QuestController{ //每周更新活跃度 if (phpcommon\getMondayseconds(time()) - phpcommon\getMondayseconds($row['sum_time']) > 0) { $this->updateActiveTime($account_id, 75000, 2); - $this->insertActive($account_id, 74001, 3); } else { $active_sum = $row['active_sum']; } @@ -202,7 +202,6 @@ class QuestController{ //每日更新活跃度 if (phpcommon\getdayseconds(time()) - phpcommon\getdayseconds($row['num_time']) > 0) { $this->updateActiveTime($account_id, 74000, 1); - $this->insertActive($account_id, 73001, 5); } else { $active_num = $row['active_num']; }