Commit d8dfbdbe by 王洁

Merge branch 'xmy' of http://git.dev.2b3.cn/tencent/services into xmy

parents 10c9a702 8aeb3dd3
......@@ -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");
......
......@@ -83,7 +83,7 @@ interface LimitTimeBuyInterface
int $status,
int $orderId);
/**
/**
* 获取限时购活动总个数 和正在进行的个数
*
* @return mixed
......
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment