Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
0e9bc727
Commit
0e9bc727
authored
Jul 26, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:cli 配置调整
parent
9369864e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
application.ini
conf/application.ini
+2
-2
cli.php
public/cli.php
+5
-0
No files found.
conf/application.ini
View file @
0e9bc727
...
@@ -19,9 +19,9 @@ idgen.key = "5cfdb867e96374c7883b31d6928cc4cb"
...
@@ -19,9 +19,9 @@ idgen.key = "5cfdb867e96374c7883b31d6928cc4cb"
[exception]
[exception]
debug
=
false
debug
=
false
exception.user.code
=
-1
exception.user.code
=
-1
exception.user.msg
=
"
error
"
exception.user.msg
=
"
用户未定义异常,研发正在赶来的路上...
"
exception.sys.code
=
-1
exception.sys.code
=
-1
exception.sys.msg
=
"
system error
"
exception.sys.msg
=
"
系统未定义异常,研发正在赶来的路上...
"
[prod : common : exception]
[prod : common : exception]
...
...
public/cli.php
View file @
0e9bc727
...
@@ -16,6 +16,8 @@ if (!substr(php_sapi_name(), 0, 3) == 'cli') {
...
@@ -16,6 +16,8 @@ if (!substr(php_sapi_name(), 0, 3) == 'cli') {
}
}
define
(
'ROOT_PATH'
,
realpath
(
__DIR__
.
'/../'
));
define
(
'ROOT_PATH'
,
realpath
(
__DIR__
.
'/../'
));
define
(
'APPLICATION_PATH'
,
realpath
(
__DIR__
.
'/../'
));
define
(
'APPLICATION_PATH'
,
realpath
(
__DIR__
.
'/../'
));
define
(
'APP_START'
,
microtime
(
true
));
require
APPLICATION_PATH
.
'/vendor/autoload.php'
;
require
APPLICATION_PATH
.
'/vendor/autoload.php'
;
require
APPLICATION_PATH
.
'/application/library/helper.php'
;
require
APPLICATION_PATH
.
'/application/library/helper.php'
;
$application
=
new
Yaf\Application
(
APPLICATION_PATH
.
"/conf/cli.ini"
);
$application
=
new
Yaf\Application
(
APPLICATION_PATH
.
"/conf/cli.ini"
);
...
@@ -31,6 +33,9 @@ if ($param) {
...
@@ -31,6 +33,9 @@ if ($param) {
$param
=
convertUrlQuery
(
$param
);
$param
=
convertUrlQuery
(
$param
);
}
}
$_SERVER
[
'SERVER_NAME'
]
=
'daemon.goods'
;
$_SERVER
[
'REMOTE_ADDR'
]
=
'127.0.0.1'
;
$application
->
bootstrap
()
->
getDispatcher
()
->
dispatch
(
new
Yaf\Request\Simple
(
""
,
$module
,
$controller
,
$method
,
$param
));
$application
->
bootstrap
()
->
getDispatcher
()
->
dispatch
(
new
Yaf\Request\Simple
(
""
,
$module
,
$controller
,
$method
,
$param
));
function
convertUrlQuery
(
$query
)
function
convertUrlQuery
(
$query
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment