diff --git a/webapp/controller/SoloController.class.php b/webapp/controller/SoloController.class.php index 119d3c4..a224f5e 100644 --- a/webapp/controller/SoloController.class.php +++ b/webapp/controller/SoloController.class.php @@ -703,11 +703,12 @@ class SoloController } $found = false; + $newarr = array(); foreach ($details[$fundsname] as &$id) { if ($id == $fundsid) { $found = true; - unset($id); - break; + } else { + $newarr[] = $id; } } @@ -716,6 +717,8 @@ class SoloController return; } + $details[$fundsname] = $newarr; + if (!array_key_exists($fundsid, $fundscfg)) { phpcommon\sendError(ERR_USER_BASE + 1, '基金不存在 4'); return; @@ -1056,7 +1059,7 @@ class SoloController } } else { $quest->triggerQuest(QUEST_DAY_SWEEP, 1, 1, $account_id); - $quest->triggerQuest(QUEST_DAY_MEDALS, 1,$medalcost, $account_id); + $quest->triggerQuest(QUEST_DAY_MEDALS, 1, $medalcost, $account_id); } $uplv_all_item_list = array();