public function getCateLabel() { if (!$this->p_type) { return ''; } $cates = Product::getProductCate($this->p_type); if (!$this->p_cate) { return ''; } return $cates[$this->p_cate]; }
public function getFleaCate() { $data = Product::getProductCate(2); $re = Tools::reTrue('获取分类成功', $data); return Response::json($re); }