![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tp5相关
tp5相关问题
weixin_47176131
这个作者很懒,什么都没留下…
展开
-
tp5 分页查询带参数
~~~none $userlist=model('User')->where("namelike'%{$name}%'")->paginate(12,false,[ 'query'=>request()->param(), ]); ~~~原创 2021-05-12 09:55:40 · 113 阅读 · 0 评论 -
A-z字母排序
/** * 将数组按字母A-Z排序 * @return [type] [description] */ public function chartSort() { $cList = Db::name('category') ->where('status = 1') ->field('id,name') ->select(); foreach ($cList as &$v) { $v['chart']=$this->getFirstChart( $v['原创 2021-05-12 09:52:57 · 528 阅读 · 0 评论 -
tp5 id数组查询 时间的区间查询
## 查询自己所属所有的下级会员($level = 1,$level=2) ids 数组查询 public static function getLevelOrderList($level,$uid) { //查询所有的一级会员Id,拼装成数组条件 $where = []; $where['fxlevel'] = $level; $where['pid'] = $uid; $result = Db::name('user_relations')->where($where)->co原创 2021-05-12 09:49:52 · 859 阅读 · 0 评论 -
tp5 + vue 前后段分离 前端刷新页面404
location / { root /usr/local/sixpre/;位置 index index.html index.htm; try_files $uri $uri/ @router; } #重点是这个地方配置,具体原理我也不知道,希望知道的大神赐教 location @router { rewrite ^.*$ /index.h...原创 2021-05-12 09:38:53 · 132 阅读 · 0 评论