afa 7 сар өмнө
parent
commit
f06b91ff4e

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

@@ -164,7 +164,7 @@ class Market extends Api
             $ledgerWalletModel->changeWalletOnly($buying->user_id, Asset::BUYING, -$buying->min_price); //解冻金额
 
             //添加订单
-            $productOrder::setCreateOrder($params['order_id'], ['product_id' => $buying->product_id, 'area_id' => 0,'price' => $buying->min_price], ProductOrder::Buying, $this->auth->id, $buying->user_id, getOrderSN('R'), 0, $buying->min_price);
+            $productOrder::setCreateOrder($params['order_id'], ['product_id' => $buying->product_id, 'area_id' => 0,'price' => $buying->min_price], ProductOrder::Buying, $buying->user_id,  $this->auth->id, getOrderSN('R'), 0, $buying->min_price);
 
             //关闭订单
             $productOrder::where('id', $params['order_id'])->where('user_id', $this->auth->id)->setField(['status' => ProductOrder::Closure]);