Explorar o código

Merge branch 'master' into dev

gorden hai 5 meses
pai
achega
63ec4a1b7d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/event/order/NewCustomerEvent.php

+ 1 - 1
app/event/order/NewCustomerEvent.php

@@ -29,7 +29,7 @@ class NewCustomerEvent
             }
             }
 
 
             //发放优惠券
             //发放优惠券
-            $goods = Goods::where('goods_id', $params['join_sheet_goods_id'])->select('goods_attribute_json')->first();
+            $goods = Goods::where('goods_id', $params['join_sheet_goods_id'])->select('goods_id','goods_name','goods_attribute_json')->first();
             if (!empty($goods) && !empty($goods->goods_attribute_json)) {
             if (!empty($goods) && !empty($goods->goods_attribute_json)) {
                 $goodsAttributeJson = json_decode($goods->goods_attribute_json, true);
                 $goodsAttributeJson = json_decode($goods->goods_attribute_json, true);
                 if (isset($goodsAttributeJson['account'])) {
                 if (isset($goodsAttributeJson['account'])) {