فهرست منبع

原有商品信息

shish 4 سال پیش
والد
کامیت
296abf7795
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      app-hd/controllers/ProductController.php

+ 2 - 0
app-hd/controllers/ProductController.php

@@ -200,6 +200,8 @@ class ProductController extends BaseController
         if (isset($product['shopId']) == false || $product['shopId'] != $shopId) {
             util::fail('没有权限访问');
         }
+        $original = ProductClass::getById($id, true);
+        $product['originalInfo'] = $original;
         util::success($product);
     }