This commit is contained in:
yangduo 2025-04-11 15:20:17 +08:00
parent 64e37a19bf
commit 60a026f6ee

View File

@ -703,11 +703,12 @@ class SoloController
} }
$found = false; $found = false;
$newarr = array();
foreach ($details[$fundsname] as &$id) { foreach ($details[$fundsname] as &$id) {
if ($id == $fundsid) { if ($id == $fundsid) {
$found = true; $found = true;
unset($id); } else {
break; $newarr[] = $id;
} }
} }
@ -716,6 +717,8 @@ class SoloController
return; return;
} }
$details[$fundsname] = $newarr;
if (!array_key_exists($fundsid, $fundscfg)) { if (!array_key_exists($fundsid, $fundscfg)) {
phpcommon\sendError(ERR_USER_BASE + 1, '基金不存在 4'); phpcommon\sendError(ERR_USER_BASE + 1, '基金不存在 4');
return; return;