|
...
|
...
|
@@ -23,14 +23,14 @@ class BlogLabelLogic extends BaseLogic |
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
*/
|
|
|
|
public function get_label_name($v){
|
|
|
|
$label_info = $this->model->list(['id'=>['in',explode(',',trim($v['label_id'],','))]],'id',['name']);
|
|
|
|
public function getLabelName($label){
|
|
|
|
$label_info = $this->model->list(['id'=>['in',explode(',',trim($label,','))]],'id',['name']);
|
|
|
|
$str = '';
|
|
|
|
foreach ($label_info as $v1){
|
|
|
|
$str .= $v1['name'].',';
|
|
|
|
}
|
|
|
|
$v['label_name'] = trim($str,',');
|
|
|
|
return $this->success($v);
|
|
|
|
$label_name = trim($str,',');
|
|
|
|
return $this->success($label_name);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @name :新增标签
|
...
|
...
|
|