作者 macbook

海报

@@ -639,8 +639,7 @@ class User extends Base @@ -639,8 +639,7 @@ class User extends Base
639 ->save($filename); 639 ->save($filename);
640 $url = request()->domain().'/'.$filename.'?v='.time(); 640 $url = request()->domain().'/'.$filename.'?v='.time();
641 // 免费领取推广海报商品 641 // 免费领取推广海报商品
642 - $goods = \addons\shopro\model\Goods::withTrashed()->find();  
643 - $goods = $goods->append(['service', 'sku', 'coupons']); 642 + $goods = \addons\shopro\model\Goods::getGoodsDetail(1);
644 $this->success('成功',compact('url','goods')); 643 $this->success('成功',compact('url','goods'));
645 } 644 }
646 645