exit; } echo $format == 'json' ? error_json_notice('2013') : error_xml_notic('2013'); //2014 break; //拉取某个用户最近10条消息 //拉取某个用户最近10条消息 case "shownotice": foreach ($type_arr as $t) { if ($t == 'email') { $table = 'nt_email'; } if ($t == 'sms') { $table = 'nt_sms'; } $r = $noticeApi->actDetailList($from, $table, $page); } if (count($r) > 0) { $jsondata = $callback . "(" . json_encode($r) . ")"; echo $jsondata; } else { echo $format == 'json' ? error_json_notice('2010') : error_xml_notic('2010'); } break; default: echo $format == 'json' ? error_json_notice('2010') : error_xml_notic('2010'); } exit; //发送邮件函数 function sendEmail($title, $content, $email) {