正在显示
1 个修改的文件
包含
9 行增加
和
4 行删除
@@ -245,11 +245,16 @@ class MailListV2 extends Base { | @@ -245,11 +245,16 @@ class MailListV2 extends Base { | ||
245 | return $v; | 245 | return $v; |
246 | },$lists?:[]); | 246 | },$lists?:[]); |
247 | 247 | ||
248 | - // 总数 | ||
249 | - if(empty($where['flagged'])){ | ||
250 | - $total = db()->cache($this->cache)->count(sprintf($sql,"count(*)")); | 248 | + if($lists){ |
249 | + // 总数 | ||
250 | + if(empty($where['flagged'])){ | ||
251 | + $total = db()->cache($this->cache)->count(sprintf($sql,"count(*)")); | ||
252 | + }else{ | ||
253 | + $total = db()->cache($this->cache)->count("select count(*) from (".sprintf($sql,"`id`").' group by `udate`) as t'); | ||
254 | + } | ||
255 | + | ||
251 | }else{ | 256 | }else{ |
252 | - $total = db()->cache($this->cache)->count("select count(*) from (".sprintf($sql,"`id`").' group by `udate`) as t'); | 257 | + $total = 0; |
253 | } | 258 | } |
254 | 259 | ||
255 | 260 |
-
请 注册 或 登录 后发表评论