支付宝接口

This commit is contained in:
wanyongkang
2020-10-11 19:23:42 +08:00
parent ce067b91dc
commit 517b026891
1110 changed files with 139880 additions and 95 deletions

View File

@@ -23,4 +23,25 @@ class Model extends Sql
$this->table = strtolower($this->model);
}
}
/**
* 获取总数目
*
*/
public function getCount(){
return $this->field('count(1) as count')->fetch();
}
/**
* 按照页数获取数据
* @param $fields 'id,count(1)...'
* @param $order 'id desc'/'id asc'
* @param $limit = '100' 限制查询100条
* $limit = '2,100' 查询第二页 100条数据
*/
public function getListPage($fields = '*',$order = 'id desc', $page = '50')
{
return $this->field($fields)->order($order)->limit($page)->fetchAll();
}
}