public function send_sms($smssendqueue) { if (constant('Product') == 'AllInOne') { $this->loadModel('SmsSendQueue'); } else { return false; } $uid = 'SV00038'; //用户名 $passwd = '111111'; //密码 //$message=$sms[0]['sms_body'].date("Y-m-d H:i:s")."【实玮网络】"; //$telphone="13818606243"; //pr($smssendqueue);die; foreach ($smssendqueue as $k => $v) { $client = new SoapClient('http://mb345.com:999/ws/LinkWS.asmx?wsdl', array('encoding' => 'UTF-8')); $sendParam = array('CorpID' => $uid, 'Pwd' => $passwd, 'Mobile' => $v['SmsSendQueue']['phone'], 'Content' => $v['SmsSendQueue']['content'], 'Cell' => '', 'SendTime' => ''); //pr($sendParam);die(); $result = $client->BatchSend($sendParam); $result = $result->BatchSendResult; } }