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
aca71260
Commit
aca71260
authored
May 15, 2019
by
dzhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xmy' of
http://git.dev.2b3.cn/tencent/services
into xmy
parents
171f33f9
f9b7d491
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
src/Goods/Lib/GoodsInterface.php
+10
-0
src/LimitTimeBuy/Enum/LimitTimeOrderEnum.php
+13
-4
No files found.
src/Goods/Lib/GoodsInterface.php
View file @
aca71260
...
...
@@ -23,6 +23,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetSpecAttributeByGoodsId($goodsId, $storeId)
* @method ResultInterface deferAfterServiceTmp($storeId)
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferGetTopThreeSales($storeId)
* Interface GoodsInterface
* @package Hdll\Services\Goods\Lib
*/
...
...
@@ -155,4 +156,13 @@ interface GoodsInterface
* @author work
*/
public
function
adminCountGoods
(
$storeId
);
/**
* 销量前3的商品
* @param $storeId
* @return mixed
* @author work
*/
public
function
getTopThreeSales
(
$storeId
);
}
src/LimitTimeBuy/Enum/LimitTimeOrderEnum.php
View file @
aca71260
...
...
@@ -7,9 +7,17 @@ class LimitTimeOrderEnum
//订单状态
const
STATUS_NORMAL
=
1
;
//待支付 1未支付2已经支付3异常
const
STATUS_HAVE_PAY
=
2
;
// 已经支付
const
STATUS_PAY_EXCEPTION
=
3
;
// 支付异常或过期未付
const
STATUS_PAY_REFUND
=
4
;
// 退款
const
STATUS_NORMAL
=
1
;
//待支付 1未支付2已经支付3异常 //=未付款
const
STATUS_HAVE_PAY
=
2
;
// 已经支付 //=已下单
const
STATUS_PAY_EXCEPTION
=
3
;
// 支付异常或过期未付 //=关闭订单
const
STATUS_PAY_REFUND
=
4
;
// 退款 //=已过期
//------------状态转换-----------------------
const
NOT_PAY
=
3
;
//未付款
const
HAVE_PAID_ORDER
=
4
;
//已下单
const
CLOSED
=
7
;
//关闭订单
const
OVERDUE
=
8
;
//已过期
}
\ 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