kppw威客系统短信接口修改,56短信接口目前适用于市场上所有的商城、CMS、手机APP、网站等,无论您的程序是那个版本,您在修改中或调到短信接口中遇到问题可以随时联系我们技术人员,微信QQ同号:QQ:826585910,我们将为您提供免费的技术支持,如果您对代码不懂,可以联系我们技术人员帮您免费接入调试。
1.新增lib\inc\dxwSms.php 核心代码如下:
const URL = 'http://jiekou.56dxw.com/sms/webinterface.aspx';
public static function sendSms($userName, $password, $mobile='', $content='')
{
$password = md5($password);
$content = urlencode($content);
$sendUrl = self::URL . '&username=' . $userName . '&userpwd=' . $password . '&handtel=' . $mobile . '&sendcontent=' . $content;
$ret = file_get_contents($sendUrl);
if (1!= $ret) {
return false;
}
return true;
}