|
@@ -182,7 +182,7 @@ class ShopHotelCanteen extends Api
|
|
|
// 发放商家收益
|
|
|
$money = bcsub($order['total_amount'],$order['back_amount'],2);// 除去让利后的金额
|
|
|
$wallet = new ShopWalletBusiness('hotel_canteen_order');
|
|
|
- if (!$wallet->change($info['id'],$money,'money',ShopWalletBusiness::log_type[40],'订单核销','bill',$order['id'])){
|
|
|
+ if (!$wallet->change($info['id'],$money,'balance',ShopWalletBusiness::log_type[40],'订单核销','bill',$order['id'])){
|
|
|
Db::rollback();
|
|
|
return $this->error($wallet->getMessage(),$wallet->getData());
|
|
|
}
|