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
32f3b022
Commit
32f3b022
authored
Aug 06, 2018
by
zhufx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
买家服务修改
parent
943abd12
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/Buyer/Enum/BuyerError.php
+7
-7
src/Buyer/Lib/BuyerInterface.php
+1
-1
src/Buyer/Lib/CommissionInterface.php
+1
-1
No files found.
src/Buyer/Enum/BuyerError.php
View file @
32f3b022
...
...
@@ -9,13 +9,13 @@ namespace Hdll\Services\Buyer\Enum;
class
BuyerError
{
const
PARAMETER_ERR
=
[
"msg"
=>
"参数错误"
,
"code"
=>
400
,
"errorCode"
=>
24001
];
const
REGISTERED
=
[
"msg"
=>
"用户已存在,无需创建"
,
"code"
=>
400
,
"errorCode"
=>
24101
];
const
DB_ERROR
=
[
"msg"
=>
"数据库操作错误"
,
"code"
=>
500
,
"errorCode"
=>
24102
];
const
SCORE_ERR
=
[
"msg"
=>
"你无权创建该用户"
,
"code"
=>
403
,
"errorCode"
=>
24103
];
const
NOT_FOUND_COMMISSION
=
[
"msg"
=>
"获取佣金信息失败"
,
"code"
=>
404
,
"errorCode"
=>
24104
];
const
INSUFFICIENT_COMMISSION
=
[
"msg"
=>
"可提现金额不足,无法提现"
,
"code"
=>
400
,
"errorCode"
=>
24105
];
const
PARAMETER_ERR
=
[
"msg"
=>
"参数错误"
,
"code"
=>
400
,
"errorCode"
=>
24001
,
'rpcCode'
=>
"PARAMETER_ERR"
];
const
REGISTERED
=
[
"msg"
=>
"用户已存在,无需创建"
,
"code"
=>
400
,
"errorCode"
=>
24101
,
"rpcCode"
=>
"REGISTERED"
];
const
DB_ERROR
=
[
"msg"
=>
"数据库操作错误"
,
"code"
=>
500
,
"errorCode"
=>
24102
,
"rpcCode"
=>
"DB_ERROR"
];
const
SCORE_ERR
=
[
"msg"
=>
"你无权创建该用户"
,
"code"
=>
403
,
"errorCode"
=>
24103
,
"rpcCode"
=>
"SCORE_ERR"
];
const
NOT_FOUND_COMMISSION
=
[
"msg"
=>
"获取佣金信息失败"
,
"code"
=>
404
,
"errorCode"
=>
24104
,
"rpcCode"
=>
"NOT_FOUND_COMMISSION"
];
const
INSUFFICIENT_COMMISSION
=
[
"msg"
=>
"可提现金额不足,无法提现"
,
"code"
=>
400
,
"errorCode"
=>
24105
,
"rpcCode"
=>
"INSUFFICIENT_COMMISSION"
];
const
NOT_FOUND_BUYER
=
[
"msg"
=>
"获取买家信息失败"
,
"code"
=>
400
,
"errorCode"
=>
24106
,
"rpcCode"
=>
"NOT_FOUND_BUYER"
];
public
static
function
atranslate
(
$message
,
$param
)
...
...
src/Buyer/Lib/BuyerInterface.php
View file @
32f3b022
...
...
@@ -17,7 +17,7 @@ use Swoft\Core\ResultInterface;
*/
interface
BuyerInterface
{
public
function
getUser
(
string
$token
);
public
function
getUser
(
int
$stroeId
,
int
$BuyerId
);
public
function
updateProfile
(
string
$token
,
array
$data
);
...
...
src/Buyer/Lib/CommissionInterface.php
View file @
32f3b022
...
...
@@ -19,7 +19,7 @@ interface CommissionInterface
* @param $storeId
* @param $buyerId
* @param $money
* @return bool
* @return
mixed|
bool
*/
public
function
reduceBalanceCommission
(
$storeId
,
$buyerId
,
$money
);
...
...
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