public function actgetUserCName()
 {
     if (empty($_GET['loginName'])) {
         self::$errCode = '027';
         self::$errMsg = 'param error';
         return null;
     }
     $loginName = $_GET['loginName'];
     $queryConditions = array('loginName' => $loginName);
     $getApiGlobalUser = Auth::getApiGlobalUser($queryConditions);
     if ($getApiGlobalUser) {
         self::$errCode = '001';
         self::$errMsg = 'Get api global userName success';
         $arrRes = json_decode($getApiGlobalUser, true);
         return $arrRes;
         //array('userName'=>$arrRes['0']['userName']);
     }
 }
$sysName = '';
if (isset($_GET['sysName']) && !empty($_GET['sysName'])) {
    $sysName = urldecode(trim($_GET['sysName']));
}
//检查是否有第几页,默认第一页
$page = 1;
if (isset($_GET['page']) && !empty($_GET['page'])) {
    $page = (int) $_GET['page'];
}
include_once "../../framework.php";
Core::getInstance();
include_once WEB_PATH . "lib/sms.class.php";
include_once WEB_PATH . "lib/class.phpmailer.php";
include_once WEB_PATH . "lib/class.smtp.php";
include_once WEB_PATH . "action/noticeApiCurd.action.php";
$noticeApiCurd = new NoticeApiCurdAct();
switch ($action) {
    //发送消息
    case "send":
        $errTo = array();
        //收集不存在的接收者
        $toSelf = false;
        //标志发送者和接收者是否是同一个人
        $noEmail = array();
        //记录是否存在对方的邮件
        $noMobile = array();
        //记录是否存在对方手机号
        $smSendFail = array();
        //收集发送手机失败 名字
        $emailSendFail = array();
        //收集邮件发送失败 名字