jxp2002 发表于 2018-10-9 08:04:20

关于url传递mysql返回方法的举例

public function getSellerList($flag = 0)  
{
  
   $page = IReq::get('page') ? IFilter::act(IReq::get('page'),'int') : 1;
  
   $query = new IQuery('seller');
  
      //全部店铺
  
   if($flag == 0){
  
      $query->where = 'is_del = 0 and is_lock = 0';
  
      $query->order = 'sort asc';
  
      //销售排行
  
    }else if($flag == 1){
  
      $query->where = 'is_del = 0 and is_lock = 0';
  
      $query->order = 'sale desc';
  
   }//vip店铺
  
   else if($flag == 2){
  
      $query->where = 'is_del = 0 and is_lock = 0 and is_vip = 1';
  
   }
  
   $query->page= $page;
  
   return $query;
  
}


页: [1]
查看完整版本: 关于url传递mysql返回方法的举例