afa 9 сар өмнө
parent
commit
d749a3023c

+ 1 - 1
application/api/controller/Order.php

@@ -113,7 +113,7 @@ class Order extends Api
             if($order_info->popular_price > config('min_rwa_price')) $userModel::updateForRwaNum($order_info->user_id, $userModel::getByParentId($order_info->user_id), 1, '-');
 
             //扣除运费
-            $ledgerWalletModel->changeWalletAccount($this->auth->id, Asset::TOKEN, $freight, $ledgerWalletModel::Freight, $this->auth->id);
+            $ledgerWalletModel->changeWalletAccount($this->auth->id, Asset::TOKEN, -$freight, $ledgerWalletModel::Freight, $this->auth->id);
 
             $order_info->status= $productOrder::Shipped; 
             $order_info->save();