正在显示
1 个修改的文件
包含
6 行增加
和
21 行删除
| @@ -65,7 +65,6 @@ class ProjectController extends BaseController | @@ -65,7 +65,6 @@ class ProjectController extends BaseController | ||
| 65 | if(!empty($lists) && !empty($lists['list'])){ | 65 | if(!empty($lists) && !empty($lists['list'])){ |
| 66 | foreach ($lists['list'] as $k => $v){ | 66 | foreach ($lists['list'] as $k => $v){ |
| 67 | $v = $this->handleParam($v); | 67 | $v = $this->handleParam($v); |
| 68 | - $project_arr[] = $v['id']; | ||
| 69 | $lists['list'][$k] = $v; | 68 | $lists['list'][$k] = $v; |
| 70 | } | 69 | } |
| 71 | } | 70 | } |
| @@ -360,7 +359,12 @@ class ProjectController extends BaseController | @@ -360,7 +359,12 @@ class ProjectController extends BaseController | ||
| 360 | $data = APublicModel::getNumByProjectId($item['id']); | 359 | $data = APublicModel::getNumByProjectId($item['id']); |
| 361 | } | 360 | } |
| 362 | if($item['type'] == Project::TYPE_ONE){//建站中 | 361 | if($item['type'] == Project::TYPE_ONE){//建站中 |
| 363 | - $item['sign_project'] = $this->handleProcessRecords($item['id']); | 362 | + $processModel = new ProcessRecords(); |
| 363 | + $item['sign_project'] = 0; | ||
| 364 | + $proInfo = $processModel->read(['project_id'=>$item['id'],'date'=>['<',date('Y-m-d', strtotime('-3 days'))]],['id']); | ||
| 365 | + if($proInfo === false){ | ||
| 366 | + $item['sign_project'] = 1; | ||
| 367 | + } | ||
| 364 | } | 368 | } |
| 365 | $manageModel = new ManageHr(); | 369 | $manageModel = new ManageHr(); |
| 366 | $item['channel'] = Channel::getChannelText($item['channel']['user_id'] ?? 0); | 370 | $item['channel'] = Channel::getChannelText($item['channel']['user_id'] ?? 0); |
| @@ -388,25 +392,6 @@ class ProjectController extends BaseController | @@ -388,25 +392,6 @@ class ProjectController extends BaseController | ||
| 388 | } | 392 | } |
| 389 | 393 | ||
| 390 | /** | 394 | /** |
| 391 | - * @remark :处理建站中项目标记问题 | ||
| 392 | - * @name :handleProcessRecords | ||
| 393 | - * @author :lyh | ||
| 394 | - * @method :post | ||
| 395 | - * @time :2024/11/6 15:22 | ||
| 396 | - */ | ||
| 397 | - public function handleProcessRecords($project_id){ | ||
| 398 | - $processModel = new ProcessRecords(); | ||
| 399 | - $proInfo = $processModel->read(['project_id'=>$project_id],['id','record']); | ||
| 400 | - if($proInfo !== false){ | ||
| 401 | - $date = (strtotime(((array)$proInfo['record'][0])['date']) ?? 0 ) + 3 * 24 * 2600; | ||
| 402 | - if($date <= time()){ | ||
| 403 | - return 1; | ||
| 404 | - } | ||
| 405 | - } | ||
| 406 | - return 0; | ||
| 407 | - } | ||
| 408 | - | ||
| 409 | - /** | ||
| 410 | * @remark :获取数据详情 | 395 | * @remark :获取数据详情 |
| 411 | * @name :info | 396 | * @name :info |
| 412 | * @author :lyh | 397 | * @author :lyh |
-
请 注册 或 登录 后发表评论