Browse Source

商户退单扣钱

master
weigang 5 years ago
parent
commit
7008a6a5bf
  1. 2
      app/Service/v3/Implementations/FinancialRecordService.php

2
app/Service/v3/Implementations/FinancialRecordService.php

@ -352,7 +352,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface
'user_type' => $user_type, 'user_type' => $user_type,
'source_id' => $user_id 'source_id' => $user_id
]); ]);
$balance->balance = bcadd($balance->balance, $money, 2);
$balance->balance = bcsub($balance->balance, $money, 2);
$balance->save(); $balance->save();
} }

Loading…
Cancel
Save