* Adjust cron error for compile.

This commit is contained in:
caoyanyi
2023-12-13 14:26:46 +08:00
parent 48e8379136
commit 85c7c095f5
2 changed files with 7 additions and 4 deletions
+2
View File
@@ -565,6 +565,8 @@ class gitlabModel extends model
/* Also use `per_page=20` to fetch users in API. Fetch active users only. */
$url = sprintf($apiRoot, "/users") . "&order_by={$order}&sort={$sort}&page={$page}&per_page={$perPage}&active=true";
$httpData = commonModel::http($url, null, array(), array(), 'data', 'GET', 30, true, false);
if(empty($httpData['body'])) break;
$result = json_decode($httpData['body']);
if(!empty($result) && is_array($result))
{