浏览代码

扣除手续费

afa 5 月之前
父节点
当前提交
091ab318cb
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 1
      application/api/controller/Order.php
  2. 1 1
      application/common/model/LedgerWalletModel.php

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

@@ -211,7 +211,6 @@ class Order extends Api
             
             
             //扣除手续费
             //扣除手续费
             if($fees > 0) {
             if($fees > 0) {
-
                 list($token, $frozen) = $ledgerWalletModel->setChangeFrozen($this->auth->id, $fees, LedgerFrozenChangeModel::Giveaway, '-');
                 list($token, $frozen) = $ledgerWalletModel->setChangeFrozen($this->auth->id, $fees, LedgerFrozenChangeModel::Giveaway, '-');
                 //等级分佣
                 //等级分佣
                 if($this->auth->team_level_id > 0){
                 if($this->auth->team_level_id > 0){

+ 1 - 1
application/common/model/LedgerWalletModel.php

@@ -206,7 +206,7 @@ class LedgerWalletModel extends Model
                 'action'         => $action
                 'action'         => $action
             ]);
             ]);
 
 
-            return ['token' => $token, 'frozen' => $frozen];
+            return [$token, $frozen];
         }
         }
     }
     }