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
2ef66174
Commit
2ef66174
authored
Jul 31, 2018
by
xmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务
parent
070e5090
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
107 additions
and
3 deletions
+107
-3
src/BuyerDistribution/Enum/BuyerDistributionError.php
+1
-1
src/Common/Vip/Enum/VipEnum.php
+20
-0
src/Seller/Enum/SellerError.php
+2
-2
src/SellerDistribution/Enum/SellerDistributionError.php
+37
-0
src/SellerDistribution/Lib/SellerDistributionInterface.php
+27
-0
src/Vip/Enum/VipEnum.php
+20
-0
No files found.
src/BuyerDistribution/Enum/BuyerDistributionE
num
.php
→
src/BuyerDistribution/Enum/BuyerDistributionE
rror
.php
View file @
2ef66174
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
namespace
Hdll\Services\Order\Enum
;
namespace
Hdll\Services\Order\Enum
;
class
BuyerDistributionE
num
class
BuyerDistributionE
rror
{
{
const
E101
=
[
'101'
,
'金额不能小于0'
];
const
E101
=
[
'101'
,
'金额不能小于0'
];
...
...
src/Common/Vip/Enum/VipEnum.php
0 → 100644
View file @
2ef66174
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/7/30
* Time: 10:32
*/
namespace
Hdll\Services\Vip\Enum
;
class
VipEnum
{
const
VIP_TOTAL_FEE
=
10
;
//价格
const
PAY_NOTIFY
=
'http://www.baidu.com'
;
const
STATUS_UNPAID
=
10
;
//未支付
const
STATUS_PAID
=
20
;
//已支付
}
\ No newline at end of file
src/Seller/Enum/Seller
DistributionEnum
.php
→
src/Seller/Enum/Seller
Error
.php
View file @
2ef66174
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
namespace
Hdll\Services\Order\Enum
;
namespace
Hdll\Services\Order\Enum
;
class
Seller
DistributionEnum
class
Seller
Error
{
{
const
E101
=
[
'101'
,
'金额不能小于0'
];
const
E101
=
[
101
,
'金额不能小于0'
];
const
E102
=
[
102
,
'该数据不属于您'
,
403
];
const
E102
=
[
102
,
'该数据不属于您'
,
403
];
const
E103
=
[
103
,
'请勿重复创建'
,
403
];
const
E103
=
[
103
,
'请勿重复创建'
,
403
];
const
E104
=
[
104
,
'该用户不存在或属于您的团队'
,
403
];
const
E104
=
[
104
,
'该用户不存在或属于您的团队'
,
403
];
...
...
src/SellerDistribution/Enum/SellerDistributionError.php
0 → 100644
View file @
2ef66174
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/7/17
* Time: 14:19
*/
namespace
App\Exception
;
class
SellerDistributionError
{
const
E001
=
[
001
,
'参数非法'
,
400
];
const
E002
=
[
002
,
'无效的Token'
,
403
];
const
E003
=
[
003
,
'无权限操作'
,
403
];
const
E004
=
[
004
,
'数据不存在'
,
404
];
const
E101
=
[
101
,
'微信支付错误'
,
500
];
const
E102
=
[
102
,
'订单不存在或状态异常'
,
404
];
const
E103
=
[
103
,
'升级VIP失败,没有找到对应的店铺'
,
404
];
public
function
getError
(
$code
)
{
$reflect
=
new
\ReflectionClass
(
self
::
class
);
$arr
=
$reflect
->
getConstant
(
'E'
.
substr
(
$code
,
-
3
));
if
(
!
is_array
(
$arr
))
{
return
false
;
}
return
[
'code'
=>
$arr
[
0
],
'msg'
=>
$arr
[
1
],
'errorCode'
=>
$arr
[
2
],
];
}
}
\ No newline at end of file
src/SellerDistribution/Lib/SellerDistributionInterface.php
0 → 100644
View file @
2ef66174
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/7/25
* Time: 14:00
*/
namespace
App\Lib
;
interface
SellerDistributionInterface
{
/**
* 保存账单
* @param $orderId
* @param $sellerId
* @param $money
* @param $level
* @param string $memo
* @return mixed
* @author Administrator
*/
public
function
saveBill
(
$orderId
,
$sellerId
,
$money
,
$level
,
$memo
=
''
);
public
function
saveCommission
();
}
\ No newline at end of file
src/Vip/Enum/VipEnum.php
0 → 100644
View file @
2ef66174
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/7/30
* Time: 10:32
*/
namespace
Hdll\Services\Vip\Enum
;
class
VipEnum
{
const
VIP_TOTAL_FEE
=
10
;
//价格
const
PAY_NOTIFY
=
'http://www.baidu.com'
;
const
STATUS_UNPAID
=
10
;
//未支付
const
STATUS_PAID
=
20
;
//已支付
}
\ 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