2024619123 2 years ago
parent
commit
6294acf3ce
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/data/controller/shop/Goods.php

+ 2 - 1
app/data/controller/shop/Goods.php

@@ -197,7 +197,8 @@ class Goods extends Controller
                 'price_market'    => $item['market'],
                 'price_selling'   => $item['selling'],
                 'status'          => $item['status'] ? 1 : 0,
-                'admin_id'        => $data['admin_id']
+                'admin_id'        => $data['admin_id'],
+                'show_image'      => $data['cover']
             ], 'goods_spec', [
                 'goods_code' => $data['code'],
             ]);