优化手机设置

master
chenzhi 4 years ago
parent 4b2995f279
commit ad2078cfbe

@ -364,7 +364,8 @@ class PaymentController extends BaseController
{
$mobile = $_REQUEST['mobile'];
$verify = $_REQUEST['verify'];
if (!$this->checksafecode($this->admininfo['mobile'], $verify)) {
$flag = A("Public")->checksafecode($this->admininfo['mobile'], $verify);
if (!$flag ) {
$this->error('验证码错误');
}
$dbres = M("Kv")->where("`key`='payment_check_mobile'")->save(['value'=>$mobile]);

@ -74,7 +74,7 @@
$.ajax({
type:'post',
dataType:'json',
data:'phone='+mobile,
data:'phone='+ym,
url:'{:U("Public/telsafecode")}',
success:function(data) {
if (data.status ==1) {

Loading…
Cancel
Save