|
...
|
...
|
@@ -223,21 +223,19 @@ class UserLoginLogic |
|
|
|
$date = date('Y-m-d H:i:s');
|
|
|
|
$scoringSystem = new ScoringSystem();
|
|
|
|
if($date <= $after30Days){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($date, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($after30Days, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$info = $scoringSystem->read(['type'=>1]);//第一阶段是否有值
|
|
|
|
$info = $scoringSystem->read(['type'=>1,'project_id'=>$projectInfo['id']]);//第一阶段是否有值
|
|
|
|
if($info === false){
|
|
|
|
return $this->success(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($date >= $afterThreeMonths && $date <= $afterSixMonths){
|
|
|
|
$info = $scoringSystem->read(['type'=>2]);//第一阶段是否有值
|
|
|
|
$info = $scoringSystem->read(['type'=>2,'project_id'=>$projectInfo['id']]);//第一阶段是否有值
|
|
|
|
if($info === false){
|
|
|
|
return $this->success(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($date >= $afterOneYear){
|
|
|
|
$info = $scoringSystem->read(['type'=>3]);//第一阶段是否有值
|
|
|
|
$info = $scoringSystem->read(['type'=>3,'project_id'=>$projectInfo['id']]);//第一阶段是否有值
|
|
|
|
if($info === false){
|
|
|
|
return $this->success(3);
|
|
|
|
}
|
...
|
...
|
|