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
d8dfbdbe
Commit
d8dfbdbe
authored
May 10, 2019
by
王洁
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xmy' of
http://git.dev.2b3.cn/tencent/services
into xmy
parents
10c9a702
8aeb3dd3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
4 deletions
+29
-4
src/Cmq/Topic.php
+7
-2
src/LimitTimeBuy/Lib/LimitTimeBuyInterface.php
+1
-1
src/Order/Lib/OrderInterface.php
+13
-0
src/SellerDistribution/Lib/SellerDistributionInterface.php
+8
-1
No files found.
src/Cmq/Topic.php
View file @
d8dfbdbe
...
...
@@ -259,9 +259,14 @@ class Topic
$tryTimes
=
0
;
do
{
$res
=
$this
->
publish_message
(
$cryptMessage
,
$vTagList
,
$routingKey
);
try
{
$res
=
$this
->
publish_message
(
$cryptMessage
,
$vTagList
,
$routingKey
);
if
(
$res
[
'code'
]
==
0
)
break
;
}
catch
(
\Throwable
$e
)
{
App
::
error
(
"[消息队列异常]:"
.
var_export
(
$e
,
true
));
}
$tryTimes
++
;
}
while
(
$
res
[
'code'
]
!=
0
&&
$
tryTimes
<
3
);
}
while
(
$tryTimes
<
3
);
if
(
$tryTimes
>=
3
)
{
App
::
error
(
"[消息队列失败]:
$message
"
);
...
...
src/LimitTimeBuy/Lib/LimitTimeBuyInterface.php
View file @
d8dfbdbe
...
...
@@ -83,7 +83,7 @@ interface LimitTimeBuyInterface
int
$status
,
int
$orderId
);
/**
/**
* 获取限时购活动总个数 和正在进行的个数
*
* @return mixed
...
...
src/Order/Lib/OrderInterface.php
View file @
d8dfbdbe
...
...
@@ -28,6 +28,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferOrderCount(int $storeId,int $orderType,array $itemIds)
* @method ResultInterface deferAddShopsDailyStatistic(int $storeId,int $pId)
* @method ResultInterface deferGetShopStatistic(int $storeId)
* @method ResultInterface deferGetShopDailyStatistic(int $storeId,int $startDate,int $endDate)
*/
interface
OrderInterface
{
...
...
@@ -184,4 +185,15 @@ interface OrderInterface
* @return array
*/
public
function
getShopStatistic
(
int
$storeId
);
/**
* 指定时间(段)查询店铺交易统计
*
*
* @param integer $storeId
* @param integer $startDate
* @param integer $endDate
* @return array
*/
public
function
getShopDailyStatistic
(
int
$storeId
,
int
$startDate
,
int
$endDate
);
}
\ No newline at end of file
src/SellerDistribution/Lib/SellerDistributionInterface.php
View file @
d8dfbdbe
...
...
@@ -20,6 +20,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferRefundAddBalance($sellerId, $money, $orderSn = '')
* @method ResultInterface deferCountVip($storeId, $sellerId)
* @method ResultInterface deferSumViewMoneyByStoreIds(array $storeIds)
* @method ResultInterface deferSumBillMoney()
* Interface SellerDistributionInterface
* @package App\Lib
*/
...
...
@@ -126,5 +127,10 @@ interface SellerDistributionInterface
*/
public
function
sumViewMoneyByStoreIds
(
array
$storeIds
);
/**
* vip分销佣金总金额
* @return mixed
* @author work
*/
public
function
sumBillMoney
();
}
\ 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