소스 검색

提货订单

afa 9 달 전
부모
커밋
d749a3023c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/api/controller/Order.php

+ 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();