Commit ad25aa49f4cab318e7eae32cdcc6c059c1e16c56

Authored by teemitop
1 parent acd4b83d

分页调整

@@ -93,7 +93,7 @@ class System extends Common @@ -93,7 +93,7 @@ class System extends Common
93 a.cdate desc 93 a.cdate desc
94 LIMIT ".$page.",".$limit.""); 94 LIMIT ".$page.",".$limit."");
95 $total = Db::query("SELECT 95 $total = Db::query("SELECT
96 - count(1) as total 96 + a.id
97 FROM 97 FROM
98 `xt-member-two-LINE`.xt_dc_dz_log_action AS a 98 `xt-member-two-LINE`.xt_dc_dz_log_action AS a
99 LEFT JOIN `xt-member-two-LINE`.xt_dc_dz_log_history AS h ON a.id = h.aid 99 LEFT JOIN `xt-member-two-LINE`.xt_dc_dz_log_history AS h ON a.id = h.aid
@@ -171,7 +171,7 @@ class System extends Common @@ -171,7 +171,7 @@ class System extends Common
171 $log_info[$key]['new'] = '<a href=/admin/system/differ?id='.$value["id"].' target="_blank"style="color:blue;">查看详情</a>'; 171 $log_info[$key]['new'] = '<a href=/admin/system/differ?id='.$value["id"].' target="_blank"style="color:blue;">查看详情</a>';
172 } 172 }
173 } 173 }
174 - return ['code'=>0,'msg'=>'获取成功!','data'=>$log_info,'count'=>$total[0]['total'],'rel'=>1]; 174 + return ['code'=>0,'msg'=>'获取成功!','data'=>$log_info,'count'=>count($total),'rel'=>1];
175 } 175 }
176 176
177 $idn = array(); 177 $idn = array();