|
@@ -85,8 +85,8 @@ class EmployeeService extends Service
|
|
|
$model->entry_time = $data['entry_time'] ?? '';
|
|
|
$model->state = empty($data['leave_time']) ? Employee::USE : Employee::NOT_USE;
|
|
|
$model->is_admin = $data['is_admin'];
|
|
|
+ $model->account = $data['number'];
|
|
|
if($model->is_admin == 1){
|
|
|
- $model->account = $data['number'];
|
|
|
if($data['password'] !== '******'){
|
|
|
$model->password = Hash::make($data['password']);
|
|
|
}
|
|
@@ -152,8 +152,8 @@ class EmployeeService extends Service
|
|
|
$model->state = empty($data['leave_time']) ? Employee::USE : Employee::NOT_USE;
|
|
|
$model->crt_id = $user['id'];
|
|
|
$model->is_admin = $data['is_admin'];
|
|
|
+ $model->account = $data['number'];
|
|
|
if($model->is_admin == 1){
|
|
|
- $model->account = $data['number'];
|
|
|
if($data['password'] !== '********'){
|
|
|
$model->password = Hash::make($data['password']);
|
|
|
}
|