|
@@ -81,20 +81,21 @@ class RecuperateApplyRepository extends BaseRepository
|
|
|
|
|
|
public function createApply($attr)
|
|
|
{
|
|
|
- $this->model->user_name = $attr['user_name'] ?? '';
|
|
|
- $this->model->user_idcard = $attr['user_idcard'] ?? '';
|
|
|
- $this->model->mobile = $attr['mobile'] ?? '';
|
|
|
- $this->model->wechat = $attr['wechat'] ?? '';
|
|
|
- $this->model->level = $attr['level'] ?? 0;
|
|
|
- $this->model->company_name = $attr['company_name'] ?? '';
|
|
|
- $this->model->salary = $attr['salary'] ?? 2;
|
|
|
- $this->model->tax = $attr['tax'] ?? 2;
|
|
|
- $this->model->condition = $attr['condition'] ?? 0;
|
|
|
- $this->model->uid = $attr['uid'] ?? 0;
|
|
|
- $this->model->recuperate_id = $attr['recuperate_id'] ?? 0;
|
|
|
- $this->model->price = $attr['price'] ?? 0;
|
|
|
+ $this->model->user_name = $attr['user_name'] ?? '';
|
|
|
+ $this->model->user_idcard = $attr['user_idcard'] ?? '';
|
|
|
+ $this->model->mobile = $attr['mobile'] ?? '';
|
|
|
+ $this->model->wechat = $attr['wechat'] ?? '';
|
|
|
+ $this->model->level = $attr['level'] ?? 0;
|
|
|
+ $this->model->company_name = $attr['company_name'] ?? '';
|
|
|
+ $this->model->validate_time = $attr['validate_time'] ?? '';
|
|
|
+ $this->model->salary = $attr['salary'] ?? 2;
|
|
|
+ $this->model->tax = $attr['tax'] ?? 2;
|
|
|
+ $this->model->condition = $attr['condition'] ?? 0;
|
|
|
+ $this->model->uid = $attr['uid'] ?? 0;
|
|
|
+ $this->model->recuperate_id = $attr['recuperate_id'] ?? 0;
|
|
|
+ $this->model->price = $attr['price'] ?? 0;
|
|
|
$this->model->recuperate_time_id = $attr['recuperate_time_id'] ?? 0;
|
|
|
- $res = $this->model->save();
|
|
|
+ $res = $this->model->save();
|
|
|
if ($res) {
|
|
|
return true;
|
|
|
} else {
|