diff --git a/hyhproject/common/model/Settlements.php b/hyhproject/common/model/Settlements.php index a81e6c6..52d3597 100755 --- a/hyhproject/common/model/Settlements.php +++ b/hyhproject/common/model/Settlements.php @@ -111,7 +111,7 @@ class Settlements extends Base $childes = DB::table("hyh_user_trees")->where(["pid"=>$order['userId']])->field("uid")->select(); foreach ($childes as $child){ Model('common/UserVouchers')->insertVouchersNotice($child['uid'], $orderId, - $calBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100)*((float)dataConf("helpSaleChildrenGet")/100)/sizeof($childes), 0, + $toCalBaseNum*((float)dataConf("helpSaleChildrenGet")/100)/sizeof($childes), 0, '交易订单【'.$order['orderNo'].'】被推荐所得',1); }