update file_get_content timeout
This commit is contained in:
parent
58a5522642
commit
ea202ccc3f
|
@ -6,5 +6,6 @@ return [
|
||||||
"maxLogs" => 50000,
|
"maxLogs" => 50000,
|
||||||
"maxPicture" => 9999,
|
"maxPicture" => 9999,
|
||||||
"version" => "1.0.7",
|
"version" => "1.0.7",
|
||||||
"autoSyncLog" => false
|
"autoSyncLog" => false,
|
||||||
|
"timeoutRequestServer" => 10
|
||||||
];
|
];
|
||||||
|
|
|
@ -109,6 +109,7 @@ class ApiController extends Controller {
|
||||||
$text = implode("|", $data);
|
$text = implode("|", $data);
|
||||||
$res = json_decode(@file_get_contents($ip . "/api/box/face_recognition_auth_v2?token=" . $tk, false, stream_context_create([
|
$res = json_decode(@file_get_contents($ip . "/api/box/face_recognition_auth_v2?token=" . $tk, false, stream_context_create([
|
||||||
'http' => [
|
'http' => [
|
||||||
|
'timeout' => Yii::$app->params['timeoutRequestServer'],
|
||||||
'header' => "Content-Type: application/json",
|
'header' => "Content-Type: application/json",
|
||||||
'method' => "POST",
|
'method' => "POST",
|
||||||
'content' => json_encode([
|
'content' => json_encode([
|
||||||
|
|
Loading…
Reference in New Issue
Block a user