Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
a813110b
Commit
a813110b
authored
Jul 16, 2018
by
zhufx
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
6621d51c
14e057d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
src/Common/Controller/CommonController.php
+2
-18
No files found.
src/Common/Controller/CommonController.php
View file @
a813110b
...
...
@@ -10,29 +10,13 @@ class CommonController
{
/**
* 业务层-错误时响应
*
* @param integer $errorCode
* @param string $msg
* @param mixed $data
* @return array
*/
public
static
function
error
(
int
$errorCode
,
string
$msg
,
$data
=
null
)
{
return
[
'errorCode'
=>
$errorCode
,
'msg'
=>
$msg
,
'data'
=>
$data
,
];
}
/**
* 业务层-正确时响应
*
* @param mixed $data
* @param string $msg
* @return
void
* @return
array
*/
public
static
function
success
(
$data
,
string
$msg
=
''
)
{
public
function
success
(
$data
,
string
$msg
=
''
)
{
return
[
'data'
=>
$data
,
'msg'
=>
$msg
,
...
...
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