|
|
@@ -31,6 +31,9 @@ class Website extends Base {
|
|
|
|
|
|
public function listData($where,$order,$page=1,$limit=20,$start=0,$field='*',$addition=1,$totalshow=1)
|
|
|
{
|
|
|
+ $page = $page > 0 ? (int)$page : 1;
|
|
|
+ $limit = $limit ? (int)$limit : 20;
|
|
|
+ $start = $start ? (int)$start : 0;
|
|
|
if(!is_array($where)){
|
|
|
$where = json_decode($where,true);
|
|
|
}
|
|
|
@@ -66,6 +69,9 @@ class Website extends Base {
|
|
|
|
|
|
public function listRepeatData($where,$order,$page=1,$limit=20,$start=0,$field='*',$addition=1)
|
|
|
{
|
|
|
+ $page = $page > 0 ? (int)$page : 1;
|
|
|
+ $limit = $limit ? (int)$limit : 20;
|
|
|
+ $start = $start ? (int)$start : 0;
|
|
|
if(!is_array($where)){
|
|
|
$where = json_decode($where,true);
|
|
|
}
|