|
...
|
...
|
@@ -65,7 +65,6 @@ class ProjectController extends BaseController |
|
|
|
if(!empty($lists) && !empty($lists['list'])){
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v = $this->handleParam($v);
|
|
|
|
$project_arr[] = $v['id'];
|
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -360,7 +359,12 @@ class ProjectController extends BaseController |
|
|
|
$data = APublicModel::getNumByProjectId($item['id']);
|
|
|
|
}
|
|
|
|
if($item['type'] == Project::TYPE_ONE){//建站中
|
|
|
|
$item['sign_project'] = $this->handleProcessRecords($item['id']);
|
|
|
|
$processModel = new ProcessRecords();
|
|
|
|
$item['sign_project'] = 0;
|
|
|
|
$proInfo = $processModel->read(['project_id'=>$item['id'],'date'=>['<',date('Y-m-d', strtotime('-3 days'))]],['id']);
|
|
|
|
if($proInfo === false){
|
|
|
|
$item['sign_project'] = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$manageModel = new ManageHr();
|
|
|
|
$item['channel'] = Channel::getChannelText($item['channel']['user_id'] ?? 0);
|
|
...
|
...
|
@@ -388,25 +392,6 @@ class ProjectController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :处理建站中项目标记问题
|
|
|
|
* @name :handleProcessRecords
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/11/6 15:22
|
|
|
|
*/
|
|
|
|
public function handleProcessRecords($project_id){
|
|
|
|
$processModel = new ProcessRecords();
|
|
|
|
$proInfo = $processModel->read(['project_id'=>$project_id],['id','record']);
|
|
|
|
if($proInfo !== false){
|
|
|
|
$date = (strtotime(((array)$proInfo['record'][0])['date']) ?? 0 ) + 3 * 24 * 2600;
|
|
|
|
if($date <= time()){
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取数据详情
|
|
|
|
* @name :info
|
|
|
|
* @author :lyh
|
...
|
...
|
|