作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !732
... ... @@ -321,6 +321,11 @@ class ProjectUpdate extends Command
$attrs[] = ['key' => $k_attr, 'value' => $attr];
}
}
//下载文件
$files = '';
if ($item['file'] ?? '') {
$files = json_encode(['url' => $this->source_download($item['file'], $project_id, $domain_arr['host'], $web_url_domain, $home_url, 1), 'text' => 'Download']);
}
//名称去掉特殊符号
$item['ttile'] = $this->special2str($item['ttile'] ?? '');
... ... @@ -347,6 +352,7 @@ class ProjectUpdate extends Command
'updated_at' => $item['post_date'] ?? date('Y-m-d H:i:s'),
'send_time' => $item['post_date'] ?? date('Y-m-d H:i:s'),
'sort' => $item['sort'] ?? 0,
'files' => $files,
'is_upgrade' => 1,
'six_read' => 1,
'route' => $route
... ... @@ -375,6 +381,7 @@ class ProjectUpdate extends Command
]),
'send_time' => $item['post_date'] ?? date('Y-m-d H:i:s'),
'sort' => $item['sort'] ?? 0,
'files' => $files,
], ['id' => $id]);
} else {
//按6.0展示只更新分类
... ...