正在显示
1 个修改的文件
包含
19 行增加
和
10 行删除
@@ -161,16 +161,25 @@ class Home extends Base { | @@ -161,16 +161,25 @@ class Home extends Base { | ||
161 | } | 161 | } |
162 | } | 162 | } |
163 | if($uids){ | 163 | if($uids){ |
164 | - // 进行同步 | ||
165 | - $mail->syncUidEmail( | ||
166 | - array_slice($uids,0,100), | ||
167 | - $email['id'], | ||
168 | - $folder['origin_folder'], | ||
169 | - $folder['id'], | ||
170 | - [], | ||
171 | - [], | ||
172 | - db() | ||
173 | - ); | 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){ | ||
171 | + // 进行同步 | ||
172 | + $mail->syncUidEmail( | ||
173 | + array_values($u), | ||
174 | + $email['id'], | ||
175 | + $folder['origin_folder'], | ||
176 | + $folder['id'], | ||
177 | + [], | ||
178 | + [], | ||
179 | + db() | ||
180 | + ); | ||
181 | + } | ||
182 | + | ||
174 | } | 183 | } |
175 | 184 | ||
176 | } | 185 | } |
-
请 注册 或 登录 后发表评论