联系官方销售客服
1835022288
028-61286886
请问www.xunruicms.com的短信接口怎么用啊 我使用了官方的代码但是有问题 这个代码能获取到验证码 但是必须先输入图片验证码 然后第二个问题是直接点击提交按钮的话没有验证短信验证码对错 可以直接提交 请问应该怎么修改
{php extract(dr_get_form_post_value('jrwm'))} <form action="" class="form-horizontal" method="post" name="myform" id="myform"> {$form} <div class="row"> <div class="col-lg-6 col-md-6"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1"><i class="fa fa-user" aria-hidden="true"></i> 姓 名</span> <input type="text" class="form-control" placeholder="" aria-describedby="basic-addon1" name="data[xingming]" id="dr_xingming"> </div> </div> <div class="col-lg-6 col-md-6"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1"><i class="fa fa-volume-control-phone" aria-hidden="true" ></i> 电 话</span> <input type="text" class="form-control" placeholder="" aria-describedby="basic-addon1" name="data[dianhua]" id="dr_dianhua"> </div> </div> <div class="p_r mt15"> <label> <div class="form-group" id="dr_row_code"> <label class="col-md-2 control-label">图片验证</label> <div class="col-md-10"> <div class="input-group input-large"> <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_code" name="code"> <div class="input-group-btn fc-code"> {dr_code(120, 35)} </div> </div> </div> </div> <div class="form-group" id="dr_row_sms"> <label class="col-md-2 control-label">短信验证</label> <div class="col-md-10"> <div class="input-group input-large"> <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_sms" name="sms"> <div class="input-group-btn"> <button class="btn blue" onclick="dr_ajax_url('/index.php?s=member&c=api&m=send_code&&code='+$('#dr_code').val()+'&id='+$('#dr_dianhua').val())" type="button">获取手机验证码</button> </div> </div> </div> </div> </label> </div> </div> <div class="text-right"> <button type="button" onclick="dr_ajax_submit('{$post_url}', 'myform', '2000', '{$rt_url}')" class="btn">提 交</button> </div> </form>