|
@@ -360,7 +360,6 @@ class User extends AuthController
|
|
|
$f[] = Form::radio('is_promoter', '推广员', $user->getData('is_promoter'))->options([['value' => 1, 'label' => '开启'], ['value' => 0, 'label' => '关闭']]);
|
|
|
$f[] = Form::select('spread_uid', '推荐人', (string)$user->getData('spread_uid'))->options(array_merge([['value' => 0, 'label' => '无']], UserModel::where('uid', '<>', $uid)->field('uid as value,nickname as label')->select()->toArray()))->filterable(true);
|
|
|
$f[] = Form::radio('captain', '团队长', $user->getData('captain'))->options([['value' => 1, 'label' => '是'], ['value' => 0, 'label' => '否']]);
|
|
|
- $f[] = Form::input('spread_ratio', '分佣比例', $user->getData('spread_ratio'));
|
|
|
$f[] = Form::radio('status', '状态', $user->getData('status'))->options([['value' => 1, 'label' => '开启'], ['value' => 0, 'label' => '锁定']]);
|
|
|
$form = Form::make_post_form('添加用户通知', $f, Url::buildUrl('update', array('uid' => $uid)), 5);
|
|
|
$this->assign(compact('form'));
|
|
@@ -449,7 +448,6 @@ class User extends AuthController
|
|
|
$edit['mark'] = $data['mark'];
|
|
|
$edit['is_promoter'] = $data['is_promoter'];
|
|
|
$edit['captain'] = $data['captain'];
|
|
|
- $data['spread_ratio'] = input('spread_ratio/d');
|
|
|
if ($edit) $res3 = UserModel::edit($edit, $uid);
|
|
|
else $res3 = true;
|
|
|
if ($res1 && $res2 && $res3 && $res_sp) $res = true;
|