...
|
...
|
@@ -48,7 +48,7 @@ class Classification extends Api |
|
|
{
|
|
|
$id = $this->request->post('id',0);
|
|
|
$model = new Category();
|
|
|
$list = $model->field('id,name')->order('weight desc')->select();
|
|
|
$list = $model->field('id,name')->order('weigh desc')->select();
|
|
|
foreach ($list as $key => &$value){
|
|
|
$value['is_myself'] = $value['id']==$id?'1':'0';
|
|
|
}
|
...
|
...
|
|