修复分销时二级推广人无法获得奖励金问题

源代码中获取二级返佣比例时字段名与数据库字段名不符合( store_brokerage_ratio_two),致使取出的比例为0,二级分销函数直接返回,进而导致了二级分销人无法得到佣金,修改字段为(store_brokerage_two),与数据库对应即可
This commit is contained in:
samoye 2018-12-07 10:37:02 +08:00
parent c8fd9c676c
commit a4e9e58a14

View File

@ -131,7 +131,7 @@ class User extends ModelBasic
if($storeBrokerageStatu == 1){
if(!User::be(['uid'=>$userInfoTwo['spread_uid'],'is_promoter'=>1])) return true;
}
$brokerageRatio = (SystemConfigService::get('store_brokerage_ratio_two') ?: 0)/100;
$brokerageRatio = (SystemConfigService::get('store_brokerage_two') ?: 0)/100;
if($brokerageRatio <= 0) return true;
$cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0;//成本价
if($cost > $orderInfo['pay_price']) return true;//成本价大于支付价格时直接返回