20 lines
550 B
PHP
20 lines
550 B
PHP
<?php
|
|
//考勤机设备
|
|
class flow_kqjsnClassModel extends flowModel
|
|
{
|
|
public function flowrsreplace($rs)
|
|
{
|
|
if(isempt($rs['lastdt'])){
|
|
$rs['ishui'] = 1;
|
|
}else{
|
|
if(time()-strtotime($rs['lastdt'])>5*60)$rs['ishui'] = 1;//5分钟没请求
|
|
}
|
|
if($rs['space']>0)$rs['space'] = $this->rock->formatsize($rs['space']);
|
|
if($rs['memory']>0)$rs['memory'] = $this->rock->formatsize($rs['memory']);
|
|
|
|
$kqjarr = array('群英','中控');
|
|
if(isset($rs['pinpai']))$rs['pinpai'] = $kqjarr[$rs['pinpai']];
|
|
|
|
return $rs;
|
|
}
|
|
} |