Skip to content

Commit 4b843f3

Browse files
authored
Merge pull request #1 from top-think/master
update
2 parents a9a8599 + eb1d4e0 commit 4b843f3

File tree

5 files changed

+77
-22
lines changed

5 files changed

+77
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
composer.lock
33
*.log
4+
thinkphp

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
sudo: false
2+
3+
language: php
4+
5+
branches:
6+
only:
7+
- stable
8+
9+
cache:
10+
directories:
11+
- $HOME/.composer/cache
12+
13+
before_install:
14+
- composer self-update
15+
16+
install:
17+
- composer install --no-dev --no-interaction --ignore-platform-reqs
18+
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Core.zip .
19+
- composer require --update-no-dev --no-interaction "topthink/think-image:^1.0"
20+
- composer require --update-no-dev --no-interaction "topthink/think-migration:^1.0"
21+
- composer require --update-no-dev --no-interaction "topthink/think-captcha:^1.0"
22+
- composer require --update-no-dev --no-interaction "topthink/think-mongo:^1.0"
23+
- composer require --update-no-dev --no-interaction "topthink/think-worker:^1.0"
24+
- composer require --update-no-dev --no-interaction "topthink/think-helper:^1.0"
25+
- composer require --update-no-dev --no-interaction "topthink/think-queue:^1.0"
26+
- composer require --update-no-dev --no-interaction "topthink/think-angular:^1.0"
27+
- composer require --dev --update-no-dev --no-interaction "topthink/think-testing:^1.0"
28+
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Full.zip .
29+
30+
script:
31+
- php think unit
32+
33+
deploy:
34+
provider: releases
35+
api_key:
36+
secure: TSF6bnl2JYN72UQOORAJYL+CqIryP2gHVKt6grfveQ7d9rleAEoxlq6PWxbvTI4jZ5nrPpUcBUpWIJHNgVcs+bzLFtyh5THaLqm39uCgBbrW7M8rI26L8sBh/6nsdtGgdeQrO/cLu31QoTzbwuz1WfAVoCdCkOSZeXyT/CclH99qV6RYyQYqaD2wpRjrhA5O4fSsEkiPVuk0GaOogFlrQHx+C+lHnf6pa1KxEoN1A0UxxVfGX6K4y5g4WQDO5zT4bLeubkWOXK0G51XSvACDOZVIyLdjApaOFTwamPcD3S1tfvuxRWWvsCD5ljFvb2kSmx5BIBNwN80MzuBmrGIC27XLGOxyMerwKxB6DskNUO9PflKHDPI61DRq0FTy1fv70SFMSiAtUv9aJRT41NQh9iJJ0vC8dl+xcxrWIjU1GG6+l/ZcRqVx9V1VuGQsLKndGhja7SQ+X1slHl76fRq223sMOql7MFCd0vvvxVQ2V39CcFKao/LB1aPH3VhODDEyxwx6aXoTznvC/QPepgWsHOWQzKj9ftsgDbsNiyFlXL4cu8DWUty6rQy8zT2b4O8b1xjcwSUCsy+auEjBamzQkMJFNlZAIUrukL/NbUhQU37TAbwsFyz7X0E/u/VMle/nBCNAzgkMwAUjiHM6FqrKKBRWFbPrSIixjfjkCnrMEPw=
37+
file:
38+
- ThinkPHP_Core.zip
39+
- ThinkPHP_Full.zip
40+
skip_cleanup: true
41+
on:
42+
tags: true

application/command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
// | Author: yunwuxin <448901948@qq.com>
1010
// +----------------------------------------------------------------------
1111

12-
return [];
12+
return [];

application/config.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
'url_param_type' => 0,
9191
// 是否开启路由
9292
'url_route_on' => true,
93+
// 路由使用完整匹配
94+
'route_complete_match' => false,
9395
// 路由配置文件(支持配置多个)
9496
'route_config_file' => ['route'],
9597
// 是否强制使用路由
@@ -104,6 +106,14 @@
104106
'url_controller_layer' => 'controller',
105107
// 表单请求类型伪装变量
106108
'var_method' => '_method',
109+
// 表单ajax伪装变量
110+
'var_ajax' => '_ajax',
111+
// 表单pjax伪装变量
112+
'var_pjax' => '_pjax',
113+
// 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
114+
'request_cache' => false,
115+
// 请求缓存有效期
116+
'request_cache_expire' => null,
107117

108118
// +----------------------------------------------------------------------
109119
// | 模板设置

application/database.php

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,43 @@
1111

1212
return [
1313
// 数据库类型
14-
'type' => 'mysql',
14+
'type' => 'mysql',
1515
// 服务器地址
16-
'hostname' => '127.0.0.1',
16+
'hostname' => '127.0.0.1',
1717
// 数据库名
18-
'database' => '',
18+
'database' => '',
1919
// 用户名
20-
'username' => 'root',
20+
'username' => 'root',
2121
// 密码
22-
'password' => '',
22+
'password' => '',
2323
// 端口
24-
'hostport' => '',
24+
'hostport' => '',
2525
// 连接dsn
26-
'dsn' => '',
26+
'dsn' => '',
2727
// 数据库连接参数
28-
'params' => [],
28+
'params' => [],
2929
// 数据库编码默认采用utf8
30-
'charset' => 'utf8',
30+
'charset' => 'utf8',
3131
// 数据库表前缀
32-
'prefix' => '',
32+
'prefix' => '',
3333
// 数据库调试模式
34-
'debug' => true,
34+
'debug' => true,
3535
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
36-
'deploy' => 0,
36+
'deploy' => 0,
3737
// 数据库读写是否分离 主从式有效
38-
'rw_separate' => false,
38+
'rw_separate' => false,
3939
// 读写分离后 主服务器数量
40-
'master_num' => 1,
40+
'master_num' => 1,
4141
// 指定从服务器序号
42-
'slave_no' => '',
42+
'slave_no' => '',
4343
// 是否严格检查字段是否存在
44-
'fields_strict' => true,
45-
// 数据集返回类型 array 数组 collection Collection对象
46-
'resultset_type' => 'array',
47-
// 是否自动写入时间戳字段
48-
'auto_timestamp' => false,
44+
'fields_strict' => true,
45+
// 数据集返回类型
46+
'resultset_type' => 'array',
47+
// 自动写入时间戳字段
48+
'auto_timestamp' => false,
49+
// 时间字段取出后的默认时间格式
50+
'datetime_format' => 'Y-m-d H:i:s',
4951
// 是否需要进行SQL性能分析
50-
'sql_explain' => false,
52+
'sql_explain' => false,
5153
];

0 commit comments

Comments
 (0)