} if ($t == 'sms') { $table = 'nt_sms'; } $r = $noticeApiCurd->actDetailList($from, $table, $page); } if (count($r) > 0) { echo json_encode($r); } else { echo $format == 'json' ? error_json_notice('2010') : error_xml_notic('2010'); } break; //拉取用户可发送邮件的人员名单 //拉取用户可发送邮件的人员名单 case "sendList": $r = $noticeApiCurd->actSendList(); if (count($r) > 0) { echo json_encode($r); } else { echo $format == 'json' ? error_json_notice('2010') : error_xml_notic('2010'); } break; //拉取用户可发送短信的数量 //拉取用户可发送短信的数量 case "smsSurNum": $r = $noticeApiCurd->actSmsSurNum($from); if ($r) { echo json_encode($r); } else { echo $format == 'json' ? error_json_notice('2010') : error_xml_notic('2010'); }