充值信息查看权限添加

master
zhengyongxing 4 years ago
parent 837358f86b
commit 4c3112b70e

@ -267,7 +267,7 @@ class PromoteController extends ThinkController
public function add($account=null, $password=null, $second_pwd=null, $real_name=null, $email=null,
$mobile_phone=null, $bank_name=null, $bank_card=null, $admin=null, $status=null, $ba_id = null, $company_id = null,
$withdraw_show = null,$withdraw_done = null)
$withdraw_show = null,$withdraw_done = null,$can_view_recharge = null)
{
if (IS_POST) {
if (C('PROMOTE_AUTO_AUDIT') == 1) {
@ -308,6 +308,7 @@ class PromoteController extends ThinkController
'company_relation' => $company_relation,
'withdraw_show'=>$withdraw_show,
'withdraw_done'=>$withdraw_done,
'can_view_recharge'=>$can_view_recharge
);
if (preg_match('/^[a-zA-Z0-9]{6,15}$/', $account)==false) {
@ -423,6 +424,7 @@ class PromoteController extends ThinkController
$data['withdraw_show'] = $_POST['withdraw_show'];
$data['withdraw_done'] = $_POST['withdraw_done'];
$data['can_view_recharge'] = $_POST['can_view_recharge'];
if (empty($pwd)) {
unset($data['password']);

@ -128,6 +128,20 @@
</tr>
<tr>
<td class="l">充值信息查看权限:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="1" name="can_view_recharge" > 开启
</label >
<label >
<input type="radio" value="0" name="can_view_recharge" checked="checked"> 锁定
</label>
</span>
</td>
</tr>
<tr>
<td class="l">公司结算查看权限:</td>
<td class="r table_radio">

@ -289,6 +289,21 @@
<span class="notice-text">二级密码适用于推广后台会长代充与财务管理功能</span>
</td>
</tr>
<tr>
<td class="l">充值信息查看权限:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="1" name="can_view_recharge" class="can_view_recharge" <if condition="$data['can_view_recharge'] eq 1">checked="checked"</if>> 开启
</label >
<label >
<input type="radio" value="0" name="can_view_recharge" class="can_view_recharge" <if condition="$data['can_view_recharge'] eq 0">checked="checked"</if>> 锁定
</label>
</span>
</td>
</tr>
<tr>
<td class="l">公司结算查看权限:</td>
<td class="r table_radio">

@ -964,6 +964,7 @@ class PromoteService {
'group_remark' => $params['group_remark'] ?? '',
'withdraw_show' => $params['withdraw_show'] ?? 0,
'withdraw_done' => $params['withdraw_done'] ?? 0,
'can_view_recharge'=>$params['can_view_recharge'] ?? 0,
];
if ($parent) {

Loading…
Cancel
Save