正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -139,7 +139,7 @@ class AdminLightController extends AdminBaseController | @@ -139,7 +139,7 @@ class AdminLightController extends AdminBaseController | ||
139 | array_push($arr, [$r,$c]); | 139 | array_push($arr, [$r,$c]); |
140 | } | 140 | } |
141 | } | 141 | } |
142 | - $is_set = Db::name('light')->where(['area_id'=>$id])->field('row,column')->select()->toArray(); | 142 | + $is_set = Db::name('light')->where(['area_id'=>$id,'id'=>['neq',$this->request->param('lightId')]])->field('row,column')->select()->toArray(); |
143 | if (!empty($lightId)) { | 143 | if (!empty($lightId)) { |
144 | $is_set = Db::name('light')->where(['area_id'=> $id,'id'=>['neq',$lightId]])->field('row,column')->select()->toArray(); | 144 | $is_set = Db::name('light')->where(['area_id'=> $id,'id'=>['neq',$lightId]])->field('row,column')->select()->toArray(); |
145 | } | 145 | } |
-
请 注册 或 登录 后发表评论