From 39d7fc638df232c166e8d378c363052f9c9d12aa Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Wed, 3 Jul 2019 17:52:37 +0800 Subject: [PATCH] 1 --- webapp/controller/ShareController.class.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/webapp/controller/ShareController.class.php b/webapp/controller/ShareController.class.php index 312e651..617b77c 100644 --- a/webapp/controller/ShareController.class.php +++ b/webapp/controller/ShareController.class.php @@ -333,9 +333,17 @@ class ShareController{ $peo_num = 0; $sh = $this->getShare($ach_id); for ($i = 0; $i < count($ach_list); $i++) { - $arr = $this->getExplode($ach_list[$i]); - if ($ach_id == $arr[0][0]) { - $peo_num = $arr[0][1]; + $delim = ","; + $drop_multiply = explode($delim, $string); + $delim1 = ":"; + $arr = array(); + for ($i = 0; $i < count($drop_multiply); $i++) { + $mul = explode($delim1, $drop_multiply[$i]); + array_push($arr, $mul); + } + error_log(json_encode($arr)); + if ($ach_id == $arr[0][1]) { + $peo_num = $arr[1][1]; break; } }