作者 lyh

gx翻译域名

... ... @@ -68,6 +68,17 @@ class CountAllProject extends Command
if(empty($v['online_date'])){
$v['online_date'] = null;
}
if(!empty($v['category'])){
$arr = explode('.',$v['category']);
if($arr[0] == 1){
$v['status'] = 1;
}elseif ($arr[0] == 2){
$v['status'] = 2;
}
$v['category'] = $arr[1] ?? '';
}
if($v['is_admin5'] == 5){
$v['version'] = 2;
}else{
... ...
... ... @@ -35,11 +35,14 @@ class DetailController extends BaseController
$data_column = $column->list([],'id',['*'],'asc');
if(!empty($data_column) && !empty($data)){
foreach ($data_column as $k => $v){
foreach ($data as $k1 => $v1){
$column_data = [];
foreach ($data as $v1){
if($v['id'] == $v1['column_id']){
$data_column[$k]['data'][] = $v1;
$column_data[] = $v1;
}
}
$v['data'] = $column_data;
$data_column[$k] = $v;
}
}
$this->response('success',Code::SUCCESS,$data_column);
... ...