提交 14ecf04f authored 作者: chengye's avatar chengye

修复账单如果没有附件则现实错误页面的问题

上级 ee004329
......@@ -16,6 +16,7 @@
/config/session.php
/config/admin.php
/config/cookie.php
/config/app.php
/public/dist
/public/dist2
/public/static/uploads
......
......@@ -119,7 +119,7 @@ class EmInvoice extends Base
//查询抄表信息
$useage = Useage::with('photo')->get(['useage_id'=>$eiu->useage_id]);
if($useage->photo_id) {
if(is_int($useage->photo_id) && $useage->photo_id != 0) {
$receipt = Receipt::get(['id'=>$useage->photo_id]);
if($receipt) $useage['photo'] = $receipt;
} else {
......
......@@ -12,7 +12,7 @@ return [
'files_dir' => './static/uploads/files',
'search_area' => '1', //1按部门搜索,2全局
'order_per' =>'ZD',
'redis_host' => '192.168.1.71',
'redis_host' => '192.168.1.70',
'redis_port' => 6379,
'base_url' => 'http://oa-test.gonn.tech/'
'base_url' => 'http://oa.gonn.com.cn/'
];
<?php
return [
'oa_key' => '5bdfcedb618e1e03abf18e391278c1f4',
'base_url' => 'http://oa-release.gonn.tech/',
'base_url' => 'http://oa.gonn.com.cn/',
'gys' => 'api.php?m=opensupplier&a=list&openkey=',
'type' => 'api.php?m=openfkinfo&a=fkinfor&openkey=',
'fk' => 'api.php?m=openemfk&a=create&openkey=',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论