diff --git a/webapp/controller/ShareController.class.php b/webapp/controller/ShareController.class.php index ca039c0..7960af0 100644 --- a/webapp/controller/ShareController.class.php +++ b/webapp/controller/ShareController.class.php @@ -342,11 +342,12 @@ class ShareController{ } else { $num = 1; } + error_log(json_encode($ach_list)); foreach($ach_list as $ach){ $ach_id = $ach['achievement_id']; $peo_num = $ach['invitee_num']; } - if ($peo_num < $sh['people']) { + if ($peo_num == 0) { phpcommon\sendError(ERR_USER_BASE + 4, '未达到人数要求'); return; }