|
[插件使用]
购买的sendSms模块不能正常使用
[复制链接]
购买的sendSms模块不能正常使用!!!
app集成了sendSms模块,我一直用我的手机测试,偶尔用同事的手机测试也都能收到短信验证码。
但是昨天对注册进行测试的时候发现,除过我的手机能发送,并且成功接受验证码以外,其他同事的手机均不能发送,收到验证码
好着急啊,又好气,花了500多买的模块不能正常使用连找谁都不知道。
- function reg(){
- var sendsms = api.require('sendSms');
- var param = {
- appkey:"xxx",
- appsecret:"xxx"
- };
- sendsms.regSms(param);
- api.alert({
- msg:"reg phone sms"
- },function(ret,err){
- //coding...
- });
- }
- function sendCode(phonenum,isresend){
- reg();
- var sendsms = api.require('sendSms');
- var param = {
- phone:phonenum
- };
- sendsms.sendMessage(param,function(ret,err){
- api.alert({
- msg:"sendMessage start!!!"
- },function(ret,err){
- //coding...
- });
- if(ret.result == "ok"){
- maxtime = 90;
- timer1 = setInterval("send_code_jishi();", 1000);
- api.toast({
- msg: '短信发送成功',
- duration: 2000,
- location: 'middle'
- });
- }else{
- api.toast({
- msg: ret.result+"--"+err,
- duration: 2000,
- location: 'middle'
- });
- }
- api.alert({
- msg:"sendMessage end!!!"
- },function(ret,err){
- //coding...
- });
- });
- if(!isresend){
- showStep();
- }
- }
- function checkCode(code){
- //mycode表示收到的验证码
- sendsms = api.require('sendSms');
- var param={code:code};
- sendsms.enterCode(param,function(ret,err){
- if(ret.result == "ok"){
- api.toast({
- msg: '验证成功',
- duration: 2000,
- location: 'middle'
- });
- showStep();
- }else{
- api.toast({
- msg: '验证失败',
- duration: 2000,
- location: 'middle'
- });
- }
- });
- }
复制代码 我这种写法应该没什么问题吧???但是为什么只有我能收到验证码??
|
|