支付宝赞助帐号:service@kuitao8.com 

thinkphp5高级查询

Created2020-03-19   Views 292    Author 懒人程序
  $map  = [];
        $map[] = ['status', '=', 1];
        $map[]  = ['is_delete', "=", Db::raw(0)];
        $map[] = ['type', '=', $type];
        $whereExp = '';
        $whereExp .= " FIND_IN_SET($app_id,app_ids) ";
        $whereExp .= " AND FIND_IN_SET($platform,platforms) ";
        $whereExp .= " AND  (lang = '$lang' OR lang = '')";
        $res  = AdsModel::where($map)->where($whereExp)->json(['images'])->order(['sort' => 'DESC', 'id' => 'DESC'])->select();
上一篇: mpdf7中文乱码 解决办法
下一篇:没有了
支持键盘 ← →

邮件订阅

订阅我们的精彩内容