Commit ad074115 by feixiang

佣金操作:增加唯一标识做幂等

parent bd752f8c
...@@ -19,29 +19,31 @@ interface CommissionInterface ...@@ -19,29 +19,31 @@ interface CommissionInterface
* @param $storeId * @param $storeId
* @param $buyerId * @param $buyerId
* @param $money * @param $money
* @param string $uniqueId
* @return bool * @return bool
*/ */
public function reduceBalanceCommission($storeId, $buyerId, $money); public function reduceBalanceCommission($storeId, $buyerId, $money, $uniqueId='');
/** /**
* 增加可提现金额 * 增加可提现金额
*
* @param $storeId * @param $storeId
* @param $buyerId * @param $buyerId
* @param $money * @param $money
* @param string $uniqueId
* @return bool * @return bool
*/ */
public function addBalanceCommission($storeId, $buyerId, $money); public function addBalanceCommission($storeId, $buyerId, $money, $uniqueId='');
/** /**
* 增加可提现金额(仅限于对账服务使用,切记!!!) * 增加可提现金额(仅限于对账服务使用,切记!!!)
*
* @param $storeId * @param $storeId
* @param $buyerId * @param $buyerId
* @param $money * @param $money
* @param string $orderSn * @param string $orderSn
* @param string $uniqueId
* @return bool * @return bool
*/ */
public function addBalanceCommissionCompare($storeId, $buyerId, $money, $orderSn=''); public function addBalanceCommissionCompare($storeId, $buyerId, $money, $orderSn='', $uniqueId='');
/** /**
* 增加累计现金额 * 增加累计现金额
...@@ -49,9 +51,10 @@ interface CommissionInterface ...@@ -49,9 +51,10 @@ interface CommissionInterface
* @param $storeId * @param $storeId
* @param $buyerId * @param $buyerId
* @param $money * @param $money
* @param string $uniqueId
* @return bool * @return bool
*/ */
public function addTotalCommission($storeId, $buyerId, $money); public function addTotalCommission($storeId, $buyerId, $money, $uniqueId='');
/** /**
* 增加冻结金额 * 增加冻结金额
...@@ -59,8 +62,9 @@ interface CommissionInterface ...@@ -59,8 +62,9 @@ interface CommissionInterface
* @param int $storeId * @param int $storeId
* @param int $orderId * @param int $orderId
* @param string $orderSn * @param string $orderSn
* @param string $uniqueId
* @return mixed * @return mixed
*/ */
public function addExpectCommission(int $storeId, int $orderId, $orderSn = ''); public function addExpectCommission(int $storeId, int $orderId, $orderSn = '', $uniqueId='');
} }
\ 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