|
@@ -242,7 +242,7 @@ class RegisterController extends HomeBaseController
|
|
|
'native' => Constant::NATIVE,
|
|
|
'education' => $education,
|
|
|
'income' => Constant::COND_INCOME,
|
|
|
- 'id_type' => array_merge(Constant::ID_TYPE,['不限']),
|
|
|
+ 'id_type' => array_merge(Constant::ID_TYPE, ['不限']),
|
|
|
'smoke' => Constant::SMOKE,
|
|
|
'drink' => Constant::DRINK,
|
|
|
'tinyint' => Constant::COND_TINYINT,
|
|
@@ -256,6 +256,22 @@ class RegisterController extends HomeBaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public function t1()
|
|
|
+ {
|
|
|
+ $auth = UserAuthModel::all();
|
|
|
+ $num = 0;
|
|
|
+ foreach ($auth as $v) {
|
|
|
+ $birth = strtotime(Fun::getBirthDayByIdCard($v['idcard']));
|
|
|
+ $check = UserModel::where('mobile',$v['mobile'])->find();
|
|
|
+ if (!empty($check) && $check->birthday != $birth) {
|
|
|
+ $check->birthday = $birth;
|
|
|
+ $check->save();
|
|
|
+ $num++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return $num;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 健康码上传
|