正在显示
1 个修改的文件
包含
3 行增加
和
5 行删除
| @@ -223,21 +223,19 @@ class UserLoginLogic | @@ -223,21 +223,19 @@ class UserLoginLogic | ||
| 223 | $date = date('Y-m-d H:i:s'); | 223 | $date = date('Y-m-d H:i:s'); |
| 224 | $scoringSystem = new ScoringSystem(); | 224 | $scoringSystem = new ScoringSystem(); |
| 225 | if($date <= $after30Days){ | 225 | if($date <= $after30Days){ |
| 226 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($date, true) . PHP_EOL, FILE_APPEND); | ||
| 227 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($after30Days, true) . PHP_EOL, FILE_APPEND); | ||
| 228 | - $info = $scoringSystem->read(['type'=>1]);//第一阶段是否有值 | 226 | + $info = $scoringSystem->read(['type'=>1,'project_id'=>$projectInfo['id']]);//第一阶段是否有值 |
| 229 | if($info === false){ | 227 | if($info === false){ |
| 230 | return $this->success(1); | 228 | return $this->success(1); |
| 231 | } | 229 | } |
| 232 | } | 230 | } |
| 233 | if($date >= $afterThreeMonths && $date <= $afterSixMonths){ | 231 | if($date >= $afterThreeMonths && $date <= $afterSixMonths){ |
| 234 | - $info = $scoringSystem->read(['type'=>2]);//第一阶段是否有值 | 232 | + $info = $scoringSystem->read(['type'=>2,'project_id'=>$projectInfo['id']]);//第一阶段是否有值 |
| 235 | if($info === false){ | 233 | if($info === false){ |
| 236 | return $this->success(2); | 234 | return $this->success(2); |
| 237 | } | 235 | } |
| 238 | } | 236 | } |
| 239 | if($date >= $afterOneYear){ | 237 | if($date >= $afterOneYear){ |
| 240 | - $info = $scoringSystem->read(['type'=>3]);//第一阶段是否有值 | 238 | + $info = $scoringSystem->read(['type'=>3,'project_id'=>$projectInfo['id']]);//第一阶段是否有值 |
| 241 | if($info === false){ | 239 | if($info === false){ |
| 242 | return $this->success(3); | 240 | return $this->success(3); |
| 243 | } | 241 | } |
-
请 注册 或 登录 后发表评论