xxxrrrdddd пре 2 година
родитељ
комит
38f814b927
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      application/admin/controller/Mobile.php

+ 7 - 0
application/admin/controller/Mobile.php

@@ -132,6 +132,7 @@ class Mobile extends Backend
             return implode(',',$arr);
         }
     }
+    #秒杀
     public function mobile_kill()
     {
         //设置过滤方法
@@ -143,9 +144,15 @@ class Mobile extends Backend
             }
             list($where, $sort, $order, $offset, $limit) = $this->buildindexparams();
 
+            $map=[];
+            if($this->admin('sub')){
+                $map['hold_chan']=$this->auth->id;
+            }
+
             $list = $this->model
                 ->with(['info','proxy'])
                 ->where($where)
+                ->where($map)
                 ->where('mobile.type',1)
                 ->where('mobile.is_activity',1)
                 ->order($sort, $order)