提交 dd6e0ab6 authored 作者: wangkr's avatar wangkr

update

上级 f20e95f4
config/cache.php merge=ours
config/admin.php merge=ours
config/session.php merge=ours
config/admin.php merge=ours
......@@ -60,11 +60,7 @@
<script src="dist/js/md5.js"></script>
<script src="dist/js/sha1.js"></script>
<script src="dist/js/util.js"></script>
<<<<<<< HEAD
<!--<script src="dist/js/getUserToken.js"></script>-->
=======
<!-- <script src="dist/js/getUserToken.js"></script> -->
>>>>>>> test
<script>
layui.use(['laydate','form','upload'], function(){
upload = layui.upload;
......
......@@ -269,6 +269,7 @@ class Invoice extends Base
$settle_amount = 0;
foreach ($data as $v){
$v->settle_amount = $v->settle_amount ?:0;
$v->payment_amount = is_numeric($v->payment_amount) ? $v->payment_amount : (float)$v->payment_amount;
$payment_amount += $v->payment_amount;
$settle_amount += $v->settle_amount;
}
......
File mode changed from 100644 to 100755
......@@ -51,6 +51,10 @@ class EmInvoice extends Base
if($item['payment_balance'] == 0){
$item['paid_amount'] = $item['payment_amount'] ;
} else {
if(!is_numeric($item['payment_amount']) || !is_numeric($item['payment_balance'])){
$item['payment_amount'] = (float)$item['payment_amount'];
$item['payment_balance'] = (float)$item['payment_balance'];
}
$item['paid_amount'] = round($item['payment_amount'] - $item['payment_balance'],3);
}
......
File mode changed from 100644 to 100755
<?php
//配置文件
return [
//加密串
'passwd_salt' => 'gonn',
'passwd_init' => 'gonn',
'encrypt_key' => 'INJq4HXEGI',
'login_pattern' => '/^\w{2,}@\w+/', //开放模式
//'login_pattern' => '/^\w{2,}@gonn\.com\.cn$', 严格模式
'upload_dir' => './static/uploads',
'images_dir' => './static/uploads/images',
'files_dir' => './static/uploads/files',
'search_area' => '1', //1按部门搜索,2全局
'order_per' =>'ZD',
'redis_host' => '192.168.1.222',
'redis_port' => 6379,
'base_url' => 'http://oa.gonn.com.cn/?m=login',
];
<?php
return
[
'passwd_salt'=>'gonn',
'passwd_init'=>'gonn',
'encrypt_key'=>'INJq4HXEGI',
'login_pattern'=>'/^\w{2,}@\w+/',
'upload_dir'=>'./static/uploads',
'images_dir'=>'./static/uploads/images',
'files_dir'=>'./static/uploads/files',
'search_area'=>'1',
'order_per'=>'ZD',
'redis_host'=>'192.168.1.222',
'redis_port'=>'6379',
'base_url'=>'http://oa.gonn.com.cn/',
];
\ No newline at end of file
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
return [
// 缓存配置为复合类型
'type' => 'complex',
'default' => [
'type' => 'file',
// 全局缓存有效期(0为永久有效)
'expire'=> 0,
// 缓存前缀
'prefix'=> '',
// 缓存目录
'path' => '',
],
'redis' => [
'type' => 'redis',
'host' => '192.168.1.222',
// 全局缓存有效期(0为永久有效)
'expire'=> 0,
// 缓存前缀
'prefix'=> '',
],
// 添加更多的缓存类型设置
];
<?php
return
[
'type'=>'complex',
'default'=>[ 'type' => 'file',
'expire'=> 0,
'prefix'=> '',
'path' => '',
],
'redis'=>[
'type' => 'redis',
'host' => '192.168.1.222',
'expire'=> 0,
'prefix'=> '',
],
];
\ No newline at end of file
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | Cookie设置
// +----------------------------------------------------------------------
return [
// cookie 名称前缀
'prefix' => '',
// cookie 保存时间
'expire' => 1800,
// cookie 保存路径
'path' => '/',
// cookie 有效域名
'domain' => '.gonn.com.cn',
// cookie 启用安全传输
'secure' => false,
// httponly设置
'httponly' => '',
// 是否使用 setcookie
'setcookie' => true,
];
<?php
return
[
'prefix'=>'',
'expire'=>'1800',
'path'=>'/',
'domain'=>'.gonn.com.cn',
'secure'=>'false',
'httponly'=>'',
'setcookie'=>'true',
];
\ No newline at end of file
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
return [
// 数据库类型
'type' => 'mysql',
// 服务器地址
'hostname' => '192.168.1.214',
// 数据库名
'database' => 'gonn',
// 用户名
'username' => 'gonn',
// 密码
'password' => 'gonn.123',
// 端口
'hostport' => '10036',
// 连接dsn
'dsn' => '',
// 数据库连接参数
'params' => [],
// 数据库编码默认采用utf8
'charset' => 'utf8',
// 数据库表前缀
'prefix' => '',
// 数据库调试模式
'debug' => true,
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy' => 0,
// 数据库读写是否分离 主从式有效
'rw_separate' => false,
// 读写分离后 主服务器数量
'master_num' => 1,
// 指定从服务器序号
'slave_no' => '',
// 自动读取主库数据
'read_master' => false,
// 是否严格检查字段是否存在
'fields_strict' => true,
// 数据集返回类型
'resultset_type' => 'array',
// 自动写入时间戳字段
'auto_timestamp' => false,
// 时间字段取出后的默认时间格式
'datetime_format' => 'Y-m-d H:i:s',
// 是否需要进行SQL性能分析
'sql_explain' => false,
// Builder类
'builder' => '',
// Query类
'query' => '\\think\\db\\Query',
// 是否需要断线重连
'break_reconnect' => false,
// 断线标识字符串
'break_match_str' => [],
'geturl'=>'http://jz.gonn.com.cn/',
];
<?php
return
[
'type'=>'mysql',
'hostname'=>'192.168.1.214',
'database'=>'gonn',
'username'=>'gonn',
'password'=>'gonn.123',
'hostport'=>'10036',
'dsn'=>'',
'params'=>[],
'charset'=>'utf8',
'prefix'=>'',
'debug'=>'true',
'deploy'=>'0',
'rw_separate'=>'false',
'master_num'=>'1',
'slave_no'=>'',
'read_master'=>'false',
'fields_strict'=>'true',
'resultset_type'=>'array',
'auto_timestamp'=>'false',
'datetime_format'=>'Y-m-d H:i:s',
'sql_explain'=>'false',
'builder'=>'',
'query'=>'\\think\\db\\Query',
'break_reconnect'=>'false',
'break_match_str'=>[],
'geturl'=>'http://jz.gonn.com.cn/',
];
\ No newline at end of file
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 会话设置
// +----------------------------------------------------------------------
return [
'type' => 'redis',
'prefix' => '',
'auto_start' => true,
// redis主机
'host' => '192.168.1.222',
// redis端口
'port' => 6379,
];
<?php
return
[
'type'=>'redis',
'prefix'=>'',
'auto_start'=>'true',
'host'=>'192.168.1.222',
'port'=>'6379',
];
\ No newline at end of file
......@@ -2,7 +2,7 @@ let userIdLocal = document.cookie.split('user=')[1]?(document.cookie.split('user
let temp = sessionStorage.getItem('userIdLocal')?sessionStorage.getItem('userIdLocal'):''
if(userIdLocal == '') top.location.href="http://oa-test.gonn.tech/";
if(userIdLocal == '') top.location.href="http://oa.gonn.com.cn/";
if ( temp != userIdLocal || !sessionStorage.getItem('userToken')){
sessionStorage.setItem("userIdLocal", userIdLocal)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论