mirror of
https://github.com/kuaifan/dootask.git
synced 2026-09-11 22:49:11 +00:00
fix: extend online license request timeout
This commit is contained in:
parent
f49d6d604f
commit
826058b842
@ -113,7 +113,7 @@ class OnlineLicense
|
||||
if ($bearer !== '') {
|
||||
$headers['Authorization'] = 'Bearer ' . $bearer;
|
||||
}
|
||||
$resp = Ihttp::ihttp_request($url, json_encode($payload, JSON_UNESCAPED_UNICODE), $headers, 15);
|
||||
$resp = Ihttp::ihttp_request($url, json_encode($payload, JSON_UNESCAPED_UNICODE), $headers, 30);
|
||||
if (Base::isError($resp)) {
|
||||
return ['ok' => false, 'data' => [], 'message' => $resp['msg'] ?: '无法连接授权服务'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user