update 用户邀请码
This commit is contained in:
parent
c4faaed24f
commit
b9b8e1aaec
|
@ -74,8 +74,8 @@ class UserController extends BaseAdminController
|
|||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new UserValidate())->post()->goCheck('setInfo');
|
||||
UserLogic::setUserInfo($params);
|
||||
$params = $this->request->param();
|
||||
UserLogic::editUser($params);
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
|
|
@ -96,6 +96,33 @@ class UserLogic extends BaseLogic
|
|||
]);
|
||||
}
|
||||
|
||||
public static function editUser($params)
|
||||
{
|
||||
return User::update([
|
||||
'id' => $params['id'],
|
||||
'nickname' => $params['nickname'],
|
||||
'account' => $params['account'],
|
||||
'mobile' => $params['account'],
|
||||
'id_card' => $params['id_card'],
|
||||
'channel' => 0,
|
||||
'sex' => $params['sex'],
|
||||
'province' => $params['province'],
|
||||
'city' => $params['city'],
|
||||
'area' => $params['area'],
|
||||
'street' => $params['street'],
|
||||
'village' => $params['village'],
|
||||
'brigade' => $params['brigade'],
|
||||
'address' => $params['address'],
|
||||
'qualification' => json_encode($params['qualification']),
|
||||
'company_id' => $params['company_id'],
|
||||
'deposit' => $params['deposit'],
|
||||
'deposit_date' => strtotime($params['deposit_date']),
|
||||
'user_information_count' => $params['user_information_count'],
|
||||
'register_num' => $params['register_num'],
|
||||
'merchant_num' => $params['merchant_num'],
|
||||
'trade_amount' => $params['trade_amount'],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 调整用户余额
|
||||
|
|
Loading…
Reference in New Issue