Merge branch 'feature/excel_payment' of wmtx/platform into master

优化手机设置
master
廖金灵 4 years ago committed by Gogs
commit 80e89c651a

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

@ -169,7 +169,9 @@
<div class="butnbox" > <div class="butnbox" >
<div class="butnlist jscheckbutn" style="margin-left: 2px"> <div class="butnlist jscheckbutn" style="margin-left: 2px">
<a class='butn' id='doPayment'>批量打款</a> <if condition="session('payment_user.is_payment') eq 1">
<a class='butn' id='doPayment'>批量打款</a>
</if>
</div> </div>
</div> </div>

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

Loading…
Cancel
Save