修改权限验证,添加权限迁移数据

This commit is contained in:
cxdbz committed 2018-10-24 22:18:58 +08:00
1 parent 52d5b63647
commit 50c911f98a
5 files changed
+31 -20

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ class Index extends Base
$data = AGA::where('uid',$id)->update(['group_id'=>$group_id]);
// 根据更新结果设置返回提示信息
$data ? $data=['msg'=>'更新成功','val'=>1] : $data=['msg'=>'数据处理错误','val'=>0];
$data >= 0 ? $data=['msg'=>'更新成功','val'=>1] : $data=['msg'=>'数据处理错误','val'=>0];
// 返回信息
return json($data);