'post', '2' => 'member'); $operateType = 'member'; $operateData = $securityService->getOperateData($operateType); if (count($operateData) == 0) { $operateType = 'post'; $operateData = $securityService->getOperateData($operateType); } if (count($operateData) == 0 || !is_array($operateData)) { exit; } $operateThreadData = array(); $operatePostData = array(); if ($operateType == 'post') { foreach ($operateData as $tempData) { if ($tempData['operateType'] == 'thread') { $operateThreadData[] = $tempData; } else { $operatePostData[] = $tempData; } } if (count($operateThreadData)) { $res = $securityClient->securityReportOperation('thread', $operateThreadData); } elseif(count($operatePostData)) { $res = $securityClient->securityReportOperation('post', $operatePostData); } } elseif(count($operateData)) { $res = $securityClient->securityReportOperation($operateType, $operateData); } $securityService->markasreported($operateType, $operateData);