Esempio n. 1
0
                                } else {
                                    if ($strReturnCode == "8") {
                                        check::Alert("用户已冻结,请联系客服人员", -1);
                                    } else {
                                        if ($strReturnCode == "0009") {
                                            check::Alert("参数无效!", -1);
                                        } else {
                                            check::Alert("未知错误!", -1);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
$objSms = new BizSMS();
$objSms->setParam($yx_arrMBizParam);
$message = $objSms->getMsgInfo();
$objSms->setParam($arrMBizParam);
$message_xx = $objSms->getMsgInfo();
// 输出到模板
$arrMOutput["smarty_assign"]['message'] = $message;
$arrMOutput["smarty_assign"]['message_xx'] = $message_xx;
$arrMOutput["smarty_assign"]['strNav'] = '短信按照设定发送_10658';
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'sms/sms_sender_1.htm';
$objWebInit->output($arrMOutput);
Esempio n. 2
0
//翻页参数
$objWebInit->arrGPage = $arrGPage;
$objWebInit->db();
$arrWhere = array();
$arrLink = array();
$arrWhere[] = "pass='******'";
$strLink = '';
if (empty($_GET['page'])) {
    $intPage = 1;
} else {
    $intPage = intval($_GET['page']);
}
$strWhere = implode(' AND ', $arrWhere);
$strWhere = 'where ' . $strWhere;
if ($_GET['code'] == 'domobilecode') {
    setcookie('intMobile', $_GET['title'], time() + 1);
    $intMobileCode = rand(10000, 99999);
    if ($_COOKIE['intMobile']) {
        //弹出js警告
        echo json_encode(array("status" => "-1", "data" => "", "msg" => "请在两分钟以后再获取手机验证码"));
        exit;
    } else {
        //发手机验证码信息
        $objSms = new BizSMS();
        $objSms->setParam($arrMBizParam);
        //设置商务领航短信接口的基本参数
        $strResult = $objSms->sendShortMessage($_GET['title'], '您好,您现在正在获取手机验证码,您的短信验证码是:' . $intMobileCode);
        echo json_encode(array("status" => "1", "data" => $intMobileCode, "msg" => "验证码已发送至您的手机,请注意查收"));
        exit;
    }
}