Authored by yangyang

page=-1时报错

... ... @@ -79,7 +79,7 @@ class HelperSearch
//总页数
$result['page_total'] = isset($data['product']['page_total']) ? $data['product']['page_total'] : '';
self::$pageTotal = $result['page_total'];
self::$total = $data['product']['total'];
self::$total = isset($data['product']['total']) ? $data['product']['total'] : 0;
//当前页
self::$page = $result['page'] = isset($data['product']['page']) ? $data['product']['page'] : '';
//筛选条件
... ...