Browse Source

支持attr

kphcdr 1 year ago
parent
commit
ed184bd4b8
1 changed files with 1 additions and 5 deletions
  1. 1 5
      app/Modules/Mini/Services/OrderService.php

+ 1 - 5
app/Modules/Mini/Services/OrderService.php

@@ -75,13 +75,9 @@ class OrderService extends BaseService
         });
 
         OrderCreateEvent::dispatch($order);
-        $gid = $order->goods->first()->goods_id;
-        $goods = Goods::find($gid);
+
         return [
             "id" => $order->id,
-            "thumb" => $goods->thumb,
-            "name" => $goods->name,
-            "url" => "http://baidu.com/xxxx",
         ];
     }