@@ -99,7 +99,7 @@ class CommissionConfigEnum
/**
* 商品结算方式
*/
- const REWARD_TYPE_PRICE = 'price'; // 商品价
+ const REWARD_TYPE_PRICE = 'goods_price'; // 商品价
const REWARD_TYPE_PAY_PRICE = 'pay_price'; // 实际支付价
public static $rewardTypeList = [
@@ -79,10 +79,8 @@ class Order
if (!$this->buyer->getParentUserId() && !$this->selfBuy) {
return false;
}
-
// 获取商品结算价格(四舍五入精确到分)
$this->amount = $this->getGoodsCommissionAmount();
// 没有分佣的必要了
if (bccomp($this->amount, '0', 2) <= 0) {
@@ -56,9 +56,7 @@ class Commission
{
// 订单支付成功
$order = $params['order'];
- //
+ //用户信息
$user = $params['user'];
$agent = new AgentService($user);