作者 刘锟

update

... ... @@ -16,6 +16,7 @@ use App\Models\Ai\AiBlogAuthor;
use App\Models\Channel\Channel;
use App\Models\Channel\User;
use App\Models\Channel\Zone;
use App\Models\Com\CollectLog;
use App\Models\Com\NoticeLog;
use App\Models\Com\UpdateLog;
use App\Models\Devops\Servers;
... ... @@ -116,6 +117,8 @@ class ProjectLogic extends BaseLogic
$info['minor_languages'] = $this->getProjectMinorLanguages($id);
//升级项目采集完成时间
$info['collect_time'] = $info['is_upgrade'] ? UpdateLog::getProjectUpdate($id) : '';
//升级项目采集的测试站域名
$info['collect_test_domain'] = $info['is_upgrade'] ? CollectLog::getCollectTestDomain($id) : '';
//获取项目所属行业
$info['deploy_optimize']['industry'] = ProjectIndustryRelated::where('project_id', $id)->pluck('industry_id')->toArray();
... ...
... ... @@ -7,4 +7,16 @@ use App\Models\Base;
class CollectLog extends Base
{
protected $table = 'gl_collect_log';
/**
* 获取最近一次填写的采集域名
* @param $project_id
* @return string
* @author Akun
* @date 2025/09/19 14:31
*/
public static function getCollectTestDomain($project_id)
{
return self::where('project_id', $project_id)->orderBy('id', 'desc')->value('test_domain') ?? '';
}
}
... ...