/** +---------------------------------------------------------- * 默认操作 +---------------------------------------------------------- */ public function index() { //require C('APP_ROOT')."Lib/Util/sms/SmsWSInvoke.class.php"; //$smsutil = new SmsWSInvoke(); require C('APP_ROOT') . "Lib/Util/sms/SmsUrlInvoke.class.php"; $smsutil = new SmsUrlInvoke(); //if($d<0) $d="用户名或密码错误"; //else $d = "¥".$d; $msgconfig = FS("Webconfig/msgconfig"); $this->assign('d', $smsutil->getFee()); $this->assign('stmp_config', $msgconfig['stmp']); $this->assign('sms_config', $msgconfig['sms']); $this->display(); }
function masssendsms($mob, $content, $time = '', $long = false, $isSub = false) { require_once C('APP_ROOT') . "Lib/Util/sms/SmsUrlInvoke.class.php"; $smsutil = new SmsUrlInvoke(); if ($long) { $data = $smsutil->massSend($mob, $content, $time, $isSub); } else { $data = $smsutil->massSend($mob, $content, $time, $isSub); } return $data; }