联系官方销售客服
1835022288
028-61286886
请问自定义回调函数中,获得到catid后,怎么转中文栏目名称,代码要怎么写呢?
插件名称:小程序
//新闻详情 public function news_show_data($data) { $rt = []; if ($data) { $aa = dr_get_files($data['images']);$images=[]; foreach($aa as $a) { $images[] = dr_get_file($a['file']); } return [ 'id' => $data['id'], 'catid' => $data['catid'], 'title' => $data['title'], 'thumb' => dr_thumb($data['thumb'], 200, 200), 'hits' => $data['hits'], 'updatetime' => dr_date($data['_updatetime'], 'Y-m-d H:i:s'), 'inputtime' => dr_date($data['_inputtime'], 'Y-m-d H:i:s'), ]; } return $rt; }