Exemplo n.º 1
0
 /**
  *    监测是否过期 删除对用过期信息
  */
 public function check_data()
 {
     $result = Lock::all()->toArray();
     if (!empty($result)) {
         $nowtime = time();
         foreach ($result as $key => $value) {
             if ($value['time'] <= $nowtime) {
                 $this->del_data[$value['contentid']];
             }
         }
     }
 }