跟进维护
This commit is contained in:
@@ -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']."'");
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user