|
@@ -332,6 +332,7 @@ class User extends AuthController
|
|
|
$f[] = Form::input('card_id', '身份证号', $user->getData('card_id'));
|
|
|
$f[] = Form::textarea('mark', '用户备注', $user->getData('mark'));
|
|
|
$f[] = Form::radio('is_promoter', '推广员', $user->getData('is_promoter'))->options([['value' => 1, 'label' => '开启'], ['value' => 0, 'label' => '关闭']]);
|
|
|
+ $f[] = Form::input('spread_uid', '上级编号', $user->getData('spread_uid'));
|
|
|
$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'));
|
|
@@ -352,6 +353,7 @@ class User extends AuthController
|
|
|
['integration_status', 0],
|
|
|
['integration', 0],
|
|
|
['status', 0],
|
|
|
+ ['spread_uid',0],
|
|
|
]);
|
|
|
if (!$uid) return $this->failed('数据不存在');
|
|
|
$user = UserModel::get($uid);
|
|
@@ -413,6 +415,7 @@ class User extends AuthController
|
|
|
$edit['birthday'] = strtotime($data['birthday']);
|
|
|
$edit['mark'] = $data['mark'];
|
|
|
$edit['is_promoter'] = $data['is_promoter'];
|
|
|
+ $edit['spread_uid'] = $data['spread_uid'];
|
|
|
if ($edit) $res3 = UserModel::edit($edit, $uid);
|
|
|
else $res3 = true;
|
|
|
if ($res1 && $res2 && $res3) $res = true;
|