一元云购短信接口配置修改,只适用于56短信网短信接口,如果您在修改中或调到短信接口中遇到问题可以随时联系我们技术人员:QQ:826585910,852754126,我们将为您提供免费的技术支持,如果您对代码不懂,可以联系我们技术人员帮您调试.
56短信网致力于为您提供,快捷,高效,安全的短信接口服务
1。首先确保您的程序是正确安装的。
libs文件下的sendmobile.class.php文件,核心代码如下:
private function cfg_seting_11(){
$mobile = $this->mobile['cfg_mobile_2'];
$this->config['content'] = $this->config['content'].$mobile['mqianming'];
return true;
}
//调用发送短信
private function cfg_send_11(){
$mobile = $this->mobile['cfg_mobile_2'];
$config = $this->config;
$url = "http://jiekou.56dxw.com/sms/HttpInterfaceMd5.aspx?comid=60&username=".$mobile["mid"]."&userpwd=".md5($mobile["mpass"])."&handtel=".$mobile["mid"]."&sendcontent=".urlencode($config['content'])."&sendtime=&smsnumber=10690";
$ch2 = curl_init($url);
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1);
$html = curl_exec($ch2);
curl_close($ch2);
if($html=1){
$this->v="发送成功";
$this->error=1;
&nb