feat: 修改PayNotifyLogic类以正确计算用户利润
This commit is contained in:
parent
ac9eb17056
commit
b5b364a3d1
@ -311,7 +311,7 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
//商户应该获得的钱 每个商品的price-ot_price 利润
|
//商户应该获得的钱 每个商品的price-ot_price 利润
|
||||||
// if (isset($order->profit) && $order->profit > 0) {
|
// if (isset($order->profit) && $order->profit > 0) {
|
||||||
if($order['uid']>0){
|
if($order['uid']>0){
|
||||||
$user_number=bcmul($order['pay_price'], '0.01', 2);
|
$user_number=bcmul($order['pay_price'], '0.10', 2);
|
||||||
$sing = [
|
$sing = [
|
||||||
'uid' => $order['uid'],
|
'uid' => $order['uid'],
|
||||||
'order_id' => $order['order_id'],
|
'order_id' => $order['order_id'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user