Heim  >  Artikel  >  Backend-Entwicklung  >  有哪位高手用过比较好用的【短信验证服务】啊

有哪位高手用过比较好用的【短信验证服务】啊

WBOY
WBOYOriginal
2016-06-13 12:19:53871Durchsuche

有谁用过比较好用的【短信验证服务】啊?
简单,稳定一点的,最好能快速整合到现有的项目中。急!在线等
------解决思路----------------------
给个参考吧:http://www.ihuyi.com/product.php
类是这样:

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

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:四.运行结果Nächster Artikel:symfony2 关于是不是需要建立多bundle