afa 5 сар өмнө
parent
commit
384babd942

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

@@ -247,8 +247,8 @@ class Order extends Api
             $marketLogic::cancelTransferOrder($params['order_id'],  $order_info['user_id'], $order_info);
 
             //修改:类型状态
-            $order_info->type_id= $productOrder::Transfer; 
-            $order_info->status = $productOrder::Cancelled;
+            //$order_info->type_id= $productOrder::Transfer; 
+            $order_info->status = $productOrder::Paid;
             $order_info->save();
             // 提交事务
             Db::commit();

+ 1 - 2
application/api/logic/MarketLogic.php

@@ -36,8 +36,7 @@ class MarketLogic
             //转让列表取消
             $rows->status = ProductTransfer::Stop;
             return $rows->save();
-            //新增记录
-            //  ProductOrder::setCreateOrder($orderInfo['order_id'], $orderInfo, ProductOrder::Popular, $userId, $orderInfo['from_user'], getOrderSN('R'.$orderInfo['order_id']), 0, $orderInfo->popular_price);
+         
       }