权限判断
来源:互联网 发布:算法跟数学的关系 编辑:程序博客网 时间:2024/06/03 17:56
这是一个影片和用户之间的权限的判断
只要用户的状态大于影片的状态就可以观看影片
if(session('adminn')){ $user=User::select('role')->where('account','=',session('adminn'))->first()->toArray(); $last = last($user); if($last>=$last2){ return view("home.xq.index",['filminfo'=>$filminfo,'filmcmt'=>$filmcmt,'info'=>$info,'w'=>$w]); }else{ return redirect('a/home'); } }else{ if($last2>0){ return view("home.xq.index",['filminfo'=>$filminfo,'filmcmt'=>$filmcmt,'info'=>$info,'w'=>$w]); }else{ return redirect('a/home'); } }
阅读全文
0 0
- 权限判断
- 权限判断
- 权限 判断函数
- 二进制判断权限
- BigInteger权限判断示例
- TP 权限判断
- Android权限判断checkPermission
- 判断相机权限
- 6.0判断权限
- 判断 相册隐私权限
- BigInteger权限判断示例
- BigInteger权限判断示例
- BigInteger权限判断示例
- android 6.0权限判断
- Android AppOpsManager权限判断
- BigInteger权限判断
- BigInteger权限判断示例
- spring+shiro权限判断
- B.FRIENDit壁虎忍者usb背光机械游戏键盘G-Master青轴无冲跑马灯机械键盘+G2背光游戏鼠标套装
- Vue折腾记
- RecyclerView的基本使用
- 优先队列priority_queue 用法详解
- android四大组件简单总结
- 权限判断
- python 将 mysql原有的表结构导入到django 的 models中
- sql2008 只有已安装的包和正在运行的包,左侧没有数据库,怎么添加数据库
- C++ bitset学习
- 按每天的日期归类同一天的数据的方法实现。
- Hbase之新型API使用
- Uploadify cannot read the property 'queueData'
- JQuery基础
- MFC的TAB控件使用详细说明