|
@@ -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)
|