跟进维护

This commit is contained in:
“wanyongkang”
2023-08-11 14:27:48 +08:00
parent f87102ee42
commit 9de0a6ec36
2 changed files with 2 additions and 6 deletions

View File

@@ -149,9 +149,7 @@ class Index
$data['Password'] = empty($data['Password'])?cToMd5('123468455'):cToMd5(trim($data['Password']));
$user_model = new UserModel;
$manager_list = $user_model->getManagerList([],'ManagerId,ManagerName,count(1) as num',['ManagerId'],'num asc');
$data['ManagerId'] = $manager_list[0]['ManagerId'];
$data['ManagerName'] = $manager_list[0]['ManagerName'];
$data['ManagerId'] = 0;
unset($data['code']);
$has_user = $user_model->isExit("LoginCode='".$data['LoginCode']."' or Phone='".$data['Phone']."' or TaoBao='".$data['Phone']."'");

View File

@@ -107,9 +107,7 @@ class User extends Controller
$data['Password'] = empty($data['Password'])?cToMd5('1234'):cToMd5(trim($data['Password']));
$user_model = new UserModel;
$manager_list = $user_model->getManagerList([],'ManagerId,ManagerName,count(1) as num',['ManagerId'],'num asc');
$data['ManagerId'] = $manager_list[0]['ManagerId'];
$data['ManagerName'] = $manager_list[0]['ManagerName'];
$data['ManagerId'] = 0;
$has_user = $user_model->isExit("LoginCode='".$data['LoginCode']."' or Phone='".$data['Phone']."' or TaoBao='".$data['Phone']."'");
if ($has_user){