|
@@ -53,6 +53,17 @@ class Category extends Api
|
|
|
public function inlist(){
|
|
|
$list = Db::name('unishop_category')
|
|
|
->where('status','normal')
|
|
|
+ ->field('id,name,nickname,keywords')
|
|
|
+ ->order('weigh ASC')
|
|
|
+ ->cache(20)
|
|
|
+ ->select();
|
|
|
+
|
|
|
+ $this->success('',$list);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function inlist_old(){
|
|
|
+ $list = Db::name('unishop_category')
|
|
|
+ ->where('status','normal')
|
|
|
->field('id,name,nickname,pid')
|
|
|
->order('weigh ASC')
|
|
|
->cache(20)
|