优化打款系统登陆

master
chenzhi 4 years ago
parent e9c3355c90
commit b460b7409f

@ -156,7 +156,13 @@ class PublicController extends \Think\Controller
$logininfo["is_payment"] = 0; $logininfo["is_payment"] = 0;
} }
}else{ }else{
$logininfo['real_name'] = M("Kv")->field("IFNULL(value,'admin')")->where("`key`='payment_check_name'")->find();
$rname = M("Kv")->field("value")->where("`key`='payment_check_name'")->find();
if(empty( $rname)){
$logininfo['real_name'] = "admin";
}else{
$logininfo['real_name'] = $rname['value'];
}
$logininfo['is_payment'] = 1; $logininfo['is_payment'] = 1;
} }
} }

@ -203,6 +203,7 @@ $(function(){
</div> </div>
<div class="fgx">功能菜单</div> --> <div class="fgx">功能菜单</div> -->
<div id="subnav" class="subnav"> <div id="subnav" class="subnav">
<if condition="session('payment_user.is_payment') eq 1">
<h3 class='no'><i class="icon icon-unfold"></i>打款设置</h3> <h3 class='no'><i class="icon icon-unfold"></i>打款设置</h3>
<ul class="side-sub-menu" style="display: none;"> <ul class="side-sub-menu" style="display: none;">
<li> <li>
@ -210,6 +211,7 @@ $(function(){
</li> </li>
</ul> </ul>
</if>
<h3 class='no'><i class="icon icon-unfold"></i>打款方式</h3> <h3 class='no'><i class="icon icon-unfold"></i>打款方式</h3>
<ul class="side-sub-menu" style="display: none;"> <ul class="side-sub-menu" style="display: none;">
<li> <li>

Loading…
Cancel
Save