getGoodsCats(); exit(jsonReturn('',1,$goodsCatList)); } public function getGoodsCat(){ $m = new M(); $goodsCatList = $m->getGoodsCat(); exit(jsonReturn('',1,$goodsCatList)); } /** * 获取分类名 * @return [type] [description] */ public function getCatName(){ $m = new M(); $rs = $m->getCatName(); exit(jsonReturn('',1,$rs)); } }