提交 64326d17 authored 作者: chengye's avatar chengye

2020-2-7-1

......@@ -12,3 +12,4 @@
/phpinfo.php
/README.md
/think
/config/database.php
差异被折叠。
......@@ -59,11 +59,13 @@ class Invoice extends Base
}
$page =Request::param('page')?Request::param('page'):1;
$limit = Request::param('limit')?Request::param('limit'):10;
$data = (new EmInvoice)->getInvoiceList($map,$page,$limit);
$emInvModel = new EmInvoice;
$data = $emInvModel->getInvoiceList($map,$page,$limit);
foreach ( $data as $key => &$v) {
$v['status']=parseStatus($v['status']);
}
$InvoiceCount = (new EmInvoice)->getInvoiceCount($map);
$InvoiceCount = $emInvModel->getInvoiceCount($map);
if(Request::param('page')){
return ['code'=>0,'msg'=>'','count'=>$InvoiceCount,'data'=>$data];
}
......
......@@ -28,7 +28,7 @@ return [
],
'redis' => [
'type' => 'redis',
'host' => '127.0.0.1',
'host' => '192.168.1.71',
// 全局缓存有效期(0为永久有效)
'expire'=> 0,
// 缓存前缀
......
......@@ -13,15 +13,15 @@ return [
// 数据库类型
'type' => 'mysql',
// 服务器地址
'hostname' => '127.0.0.1',
'hostname' => '192.168.1.71',
// 数据库名
'database' => 'gonn',
'database' => 'gonn_release',
// 用户名
'username' => 'root',
// 密码
'password' => 'pvv5718J0CwhNfn4B^8^H3igPj#oiQkX',
'password' => 'aLN%4Jx7ZsmsoMlOB0XEd7',
// 端口
'hostport' => '10036',
'hostport' => '3306',
// 连接dsn
'dsn' => '',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论