* Adjust cron error for compile.

This commit is contained in:
caoyanyi
2023-12-13 14:25:53 +08:00
parent abf89d1c34
commit 0ad3372437
3 changed files with 17 additions and 13 deletions
+2
View File
@@ -553,6 +553,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))
{