作者 lyh

gx扩展

... ... @@ -85,6 +85,10 @@ class OperationHeartbeatController extends BaseController
$info = [];
}else{
$date_time = strtotime($info['updated_at']) + 7200;
if($this->user['project_id'] == 2127){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($date_time, true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(time(), true) . PHP_EOL, FILE_APPEND);
}
if($date_time < time()){
$operationHeartbeatModel->edit(['status'=>0,'ip'=>'127.0.0.1'],$condition);
$info['status'] = 0;
... ...