手机验证码修改账号

master
zhengyongxing 4 years ago
parent 0d9dd3b22e
commit d47b6a3fad

@ -758,7 +758,7 @@ class PaymentController extends BaseController
if ($data['id'] == 1 && $hav_mobile['mobile']!=$data['mobile']) {
$verify = $_REQUEST['verify'];
if (!A("Public")->checksafecode($data['mobile'], $verify)) {
if (!A("Public")->checksafecode($data['old_mobile'], $verify)) {
$this->ajaxReturn(['status'=>0,'msg'=>'验证码错误']);
}
}

@ -122,7 +122,7 @@
},
yes : function(index, layero) {
var verify = $("#verify").val();
data = {id:id,name:name,mobile:mobile,verify:verify};
data = {id:id,name:name,mobile:mobile,old_mobile:old_mobile,verify:verify};
publicAjax(url,data,function (data) {
// layer.msg(data.msg);
MSG.showmsg(data.msg);

Loading…
Cancel
Save