|
@@ -18,7 +18,23 @@ class Index extends Controller
|
|
|
// $this->model = new \app\common\model\Daily();
|
|
|
}
|
|
|
|
|
|
- public function device(){
|
|
|
+ public function device()
|
|
|
+ {
|
|
|
+ set_time_limit(0);
|
|
|
+ ini_set("memory_limit", "512M");
|
|
|
+ $cates = [24,25,26,27];
|
|
|
+ $uids = [3206,3207];
|
|
|
+ exit();
|
|
|
+ $lists = Db::name('device')->where('org_id',100)->where('cate_id','in',$cates)->select();
|
|
|
+ foreach ($lists as $k=>$v){
|
|
|
+ Db::name('device_user')->where('device_id',$v['id'])->delete();
|
|
|
+ Db::name('device_user')->insert(['device_id'=>$v['id'],'user_id'=>3206]);
|
|
|
+ Db::name('device_user')->insert(['device_id'=>$v['id'],'user_id'=>3207]);
|
|
|
+ }
|
|
|
+ halt($lists);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function device2(){
|
|
|
set_time_limit(0);
|
|
|
ini_set("memory_limit","512M");
|
|
|
|
|
@@ -60,7 +76,7 @@ class Index extends Controller
|
|
|
halt($data);
|
|
|
}
|
|
|
|
|
|
- public function device2(){
|
|
|
+ public function device3(){
|
|
|
set_time_limit(0);
|
|
|
ini_set("memory_limit","2048M");
|
|
|
|