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
8212126c
Commit
8212126c
authored
Jul 23, 2018
by
zhufx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
错误代码更新
parent
7aaf2ac4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/Order/Enum/OrderError.php
+3
-6
No files found.
src/Order/Enum/OrderError.php
View file @
8212126c
...
...
@@ -34,6 +34,9 @@ class OrderError
//order
const
O_PRICE_ABNORMAL
=
[
"msg"
=>
"价格异常,请重新购买"
,
"code"
=>
400
,
"errorCode"
=>
22108
];
const
O_TYPE_ERR
=
[
"msg"
=>
"订单类型不正确"
,
"code"
=>
400
,
"errorCode"
=>
22109
];
const
O_CREATE_ERR
=
[
"msg"
=>
"创建订单失败"
,
"code"
=>
500
,
"errorCode"
=>
22110
];
const
O_GOODS_SAVE_ERR
=
[
"msg"
=>
"商品订单存入失败"
,
"code"
=>
500
,
"errorCode"
=>
22111
];
const
O_CUT_PRICE_SAVE_ERR
=
[
"msg"
=>
"砍价订单存入失败"
,
"code"
=>
500
,
"errorCode"
=>
22115
];
...
...
@@ -48,9 +51,4 @@ class OrderError
return
sprintf
(
...
$param
);
}
public
function
getError
(
$code
)
{
$reflect
=
new
\ReflectionClass
(
self
::
class
);
return
$reflect
->
getConstant
(
$code
);
}
}
\ No newline at end of file
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