当前位置:Gxlcms > PHP教程 > 有谁用过比较好用的【短信验证服务】啊?

有谁用过比较好用的【短信验证服务】啊?

时间:2021-07-01 10:21:17 帮助过:20人阅读

简单,稳定一点的,最好能快速整合到现有的项目中。急!在线等


回复讨论(解决方案)

给个参考吧:http://www.ihuyi.com/product.php
类是这样:

$target = "http://106.ihuyi.cn/webservice/sms.php?method=Submit";$authstr=random(6,1);$post_user='用户名';$post_pwd=md5('密码');$post_data = 'account='.$post_user.'&password='.$post_pwd.'&mobile='.$phoneN.'&content='.rawurlencode('您的验证码是:'.$authstr.'。请不要把验证码泄露给其他人。');$res =  xml_to_array(curl_phone($post_data, $target));//xml_to_array  curl_phone  下载它的demo有$res['SubmitResult']['code']=2;//测试

你也可以看看亿美的,他会给你发个sdk,你直接用sdk就好了

http://115.29.194.198/api/http

人气教程排行