This commit is contained in:
wangwei01 2019-05-10 16:30:51 +08:00
parent 7902c1bd33
commit c212d25976

View File

@ -159,12 +159,13 @@ class QuestController{
':active_num' => 0 ':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;', ' WHERE accountid=:accountid AND quest_type=:quest_type AND quest_id<:quest_id;',
array( array(
':accountid' => $account_id, ':accountid' => $account_id,
':quest_type' => 0, ':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) { if (phpcommon\getMondayseconds(time()) - phpcommon\getMondayseconds($row['sum_time']) > 0) {
$this->updateActiveTime($account_id, 75000, 2); $this->updateActiveTime($account_id, 75000, 2);
$this->insertActive($account_id, 74001, 3);
} else { } else {
$active_sum = $row['active_sum']; $active_sum = $row['active_sum'];
} }
@ -202,7 +202,6 @@ class QuestController{
//每日更新活跃度 //每日更新活跃度
if (phpcommon\getdayseconds(time()) - phpcommon\getdayseconds($row['num_time']) > 0) { if (phpcommon\getdayseconds(time()) - phpcommon\getdayseconds($row['num_time']) > 0) {
$this->updateActiveTime($account_id, 74000, 1); $this->updateActiveTime($account_id, 74000, 1);
$this->insertActive($account_id, 73001, 5);
} else { } else {
$active_num = $row['active_num']; $active_num = $row['active_num'];
} }