...
|
...
|
@@ -542,7 +542,7 @@ class SecondController extends RestBaseController |
|
|
public function goodsList(){
|
|
|
$goodModel=new GoodsModel();
|
|
|
$map['is_online']=1;
|
|
|
$goods=$goodModel->where($map)->paginate(10,true);
|
|
|
$goods=$goodModel->where($map)->order('id desc')->paginate(10,true);
|
|
|
$list=$goods->items();
|
|
|
foreach ($list as $k=>$v){
|
|
|
$list[$k]['pic']=cmf_get_image_url($v['pic']);
|
...
|
...
|
|