正在显示
1 个修改的文件
包含
10 行增加
和
1 行删除
@@ -161,9 +161,16 @@ class Home extends Base { | @@ -161,9 +161,16 @@ class Home extends Base { | ||
161 | } | 161 | } |
162 | } | 162 | } |
163 | if($uids){ | 163 | if($uids){ |
164 | + $us = []; | ||
165 | + foreach ($uids as $k=>$uid){ | ||
166 | + if(!isset($us[intval($k/100)])) $us[intval($k/100)] = []; | ||
167 | + $us[intval($k/100)][] = $uid; | ||
168 | + } | ||
169 | + | ||
170 | + foreach ($us as $u){ | ||
164 | // 进行同步 | 171 | // 进行同步 |
165 | $mail->syncUidEmail( | 172 | $mail->syncUidEmail( |
166 | - array_slice($uids,0,100), | 173 | + array_values($u), |
167 | $email['id'], | 174 | $email['id'], |
168 | $folder['origin_folder'], | 175 | $folder['origin_folder'], |
169 | $folder['id'], | 176 | $folder['id'], |
@@ -176,6 +183,8 @@ class Home extends Base { | @@ -176,6 +183,8 @@ class Home extends Base { | ||
176 | } | 183 | } |
177 | 184 | ||
178 | } | 185 | } |
186 | + | ||
187 | + } | ||
179 | } | 188 | } |
180 | 189 | ||
181 | 190 |
-
请 注册 或 登录 后发表评论