作者 lyh

gx

@@ -94,7 +94,7 @@ class CategoryController extends BaseController @@ -94,7 +94,7 @@ class CategoryController extends BaseController
94 ],[ 94 ],[
95 'id.required' => 'ID不能为空' 95 'id.required' => 'ID不能为空'
96 ]); 96 ]);
97 - $data = $logic->getInfo($this->param['id']); 97 + $data = $logic->getCateInfo($this->param['id']);
98 return $this->success($data); 98 return $this->success($data);
99 } 99 }
100 100
@@ -47,7 +47,7 @@ class CategoryLogic extends BaseLogic @@ -47,7 +47,7 @@ class CategoryLogic extends BaseLogic
47 * @method :post 47 * @method :post
48 * @time :2023/8/21 17:14 48 * @time :2023/8/21 17:14
49 */ 49 */
50 - public function getInfo($id) 50 + public function getCateInfo($id)
51 { 51 {
52 $info = $this->model->read(['id'=>$id]); 52 $info = $this->model->read(['id'=>$id]);
53 $info['url'] = $this->user['domain'] . $info['route']; 53 $info['url'] = $this->user['domain'] . $info['route'];