瀏覽代碼

支持attr

kphcdr 1 年之前
父節點
當前提交
ed184bd4b8
共有 1 個文件被更改,包括 1 次插入5 次删除
  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",
         ];
     }