* [misc] adjust gogs mr page error.

This commit is contained in:
caoyanyi
2024-07-08 11:13:40 +08:00
committed by 田淑杰
parent 46404d84fe
commit d161f7520d
+1 -1
View File
@@ -160,7 +160,7 @@ class gogsModel extends model
$url = sprintf($apiRoot, "/users/{$user->username}/repos");
$projects = array();
$results = json_decode(commonModel::http($url . "&page={$page}&limit=50"));
$results = json_decode(commonModel::http($url));
if(!is_array($results) || empty($results)) return array();
if(!empty($results)) $projects = array_merge($projects, $results);