|
@@ -166,30 +166,52 @@ class Login
|
|
|
public function mobilePost()
|
|
|
{
|
|
|
$mobile = input('mobile/s', '');
|
|
|
- $verify = input('verify/s', '');
|
|
|
+ /*$verify = input('verify/s', '');
|
|
|
|
|
|
$session_verify = session('verify');
|
|
|
if ($verify != $session_verify) {
|
|
|
page_result(1, '验证码错误!');
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
$auth = UserAuthsModel::where(['identitytype' => 'mobile', 'identifier' => $mobile])->find();
|
|
|
if (empty($auth)) {
|
|
|
$open_id = session('user.open_id');
|
|
|
$nickname = session('user.nickname');
|
|
|
$headimgurl = session('user.headimgurl');
|
|
|
- $user = User::create([
|
|
|
- 'nickname' => $nickname,
|
|
|
- 'avatar' => $headimgurl ?? '',
|
|
|
- 'mobile' => $mobile,
|
|
|
- 'groupsid' => 7,
|
|
|
- 'education' => 7,
|
|
|
- 'emp_time' => [],
|
|
|
- 'user_tags' => [],
|
|
|
- 'com_cate' => [],
|
|
|
- 'work_place' => [],
|
|
|
- 'createtime' => time(),
|
|
|
- ]);
|
|
|
+ $user_data = [
|
|
|
+ 'groupsid' => 7,
|
|
|
+ 'brokerid' => 0,
|
|
|
+ 'nickname' => $nickname,
|
|
|
+ 'avatar' => $headimgurl ?? '',
|
|
|
+ 'realname' => "",
|
|
|
+ 'mobile' => $mobile,
|
|
|
+ 'integral' => 0,
|
|
|
+ 'inttotal' => 0,
|
|
|
+ 'status' => 2,
|
|
|
+ 'isvip' => 1,
|
|
|
+ 'authstatus' => 1,
|
|
|
+ 'authremark' => "",
|
|
|
+ 'idcardzpic' => "",
|
|
|
+ 'idcardfpic' => "",
|
|
|
+ 'idcard' => "",
|
|
|
+ 'gender' => 1,
|
|
|
+ 'birthday' => "",
|
|
|
+ 'address' => "",
|
|
|
+ 'education' => "",
|
|
|
+ 'createtime' => time(),
|
|
|
+ 'jobintention' => "",
|
|
|
+ 'workexperience' => "",
|
|
|
+ 'eduexperience' => "",
|
|
|
+ 'followstatus' => 1,
|
|
|
+ 'wxampcode' => "",
|
|
|
+ 'bankcard' => ['openbank' => "", 'account' => "", 'number' => ""],
|
|
|
+ 'emp_time' => [],
|
|
|
+ 'com_cate' => [],
|
|
|
+ 'work_place' => [],
|
|
|
+ 'user_tags' => [],
|
|
|
+ ];
|
|
|
+
|
|
|
+ $user = User::create($user_data);
|
|
|
$auth = UserAuthsModel::create([
|
|
|
'userid' => $user['id'],
|
|
|
'identitytype' => 'weixin',
|