feat: 修改PayNotifyLogic类以正确计算用户利润

This commit is contained in:
mkm 2024-06-18 10:46:18 +08:00
parent ac9eb17056
commit b5b364a3d1

View File

@ -311,7 +311,7 @@ class PayNotifyLogic extends BaseLogic
//商户应该获得的钱 每个商品的price-ot_price 利润
// if (isset($order->profit) && $order->profit > 0) {
if($order['uid']>0){
$user_number=bcmul($order['pay_price'], '0.01', 2);
$user_number=bcmul($order['pay_price'], '0.10', 2);
$sing = [
'uid' => $order['uid'],
'order_id' => $order['order_id'],