|
...
|
...
|
@@ -58,7 +58,7 @@ class SyncMobile extends Command |
|
|
|
'mobile'=>$mobile,
|
|
|
|
'created_at'=>date('Y-m-d H:i:s')
|
|
|
|
];
|
|
|
|
$mobile->insert($param);
|
|
|
|
$mobileModel->insert($param);
|
|
|
|
//查看当前用户是否存在
|
|
|
|
$info = $userModel->read(['mobile'=>$mobile,'project_id'=>1]);
|
|
|
|
if($info === false){
|
|
...
|
...
|
@@ -76,5 +76,7 @@ class SyncMobile extends Command |
|
|
|
$userModel->edit(['status'=>1],['project_id'=>1,'mobile'=>['not in',$data]]);
|
|
|
|
$userModel->edit(['status'=>0],['project_id'=>1,'mobile'=>['in',$data]]);
|
|
|
|
}
|
|
|
|
echo 'end.'.PHP_EOL;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|