From 3bbc4296076ca1baa1c58df4b0e21b7180f83761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=A1=83?= <1098598843@qq.com> Date: Tue, 7 Feb 2023 09:43:46 +0800 Subject: [PATCH] 1 --- app/controller/api/Auth.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 04cc577e..98002781 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -387,7 +387,8 @@ class Auth extends BaseController 'jointime' => $time, 'createtime' => $time, 'updatetime' => $time, - 'status' => 'normal' + 'status' => 'normal', + 'mobile' => $data['phone'], ]; $n_user_id = Db::connect('nongke')->table('fa_user')->insertGetId($user_data); $datas = [ @@ -420,6 +421,8 @@ class Auth extends BaseController $msg=Db::connect('nongke')->table('fa_szxc_information_usermsg')->where('user_id',$find['n_user_id'])->cache(true)->find(); if ($msg){ $user['no_update']=0; + $ddd['phone'] = $data['phone']; + Db::connect('nongke')->table('fa_szxc_information_usermsg')->where('user_id',$find['n_user_id'])->update($ddd); } }