moonsflyer 5 months ago
parent
commit
d787df0164
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app/shopapi/lists/OrderLists.php

+ 7 - 0
app/shopapi/lists/OrderLists.php

@@ -24,6 +24,7 @@ use app\common\enum\OrderEnum;
 use app\common\enum\TeamEnum;
 use app\common\logic\CommonPresellLogic;
 use app\common\model\Order;
+use app\common\model\AfterSale;
 
 
 class OrderLists extends BaseShopDataLists
@@ -81,6 +82,12 @@ class OrderLists extends BaseShopDataLists
             if ($list['order_type'] == OrderEnum::PRESELL_ORDER) {
                 $list['presell'] = CommonPresellLogic::orderInfo($list);
             }
+
+            if($this->params['type'] == 'return'){
+                $afterOrder = AfterSale::where(['order_id'=>$list['id']])->find();
+                $list['afterOrder'] = $afterOrder;
+                
+            }
         }
 
         return $lists;