shish hace 2 años
padre
commit
a8d7c732e2
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      app-ghs/controllers/ProductController.php

+ 6 - 0
app-ghs/controllers/ProductController.php

@@ -278,6 +278,12 @@ class ProductController extends BaseController
                     $shortCover = $val['cover'] ?? '';
                     $itemInfoData[$key]['cover'] = imgUtil::groupImg($shortCover) . "?x-oss-process=image/resize,m_fill,h_100,w_100";
                     $itemInfoData[$key]['shortCover'] = $shortCover;
+                    $price = floatval($val['$price']);
+                    $itemInfoData[$key]['price'] = $price;
+                    $skPrice = floatval($val['skPrice']);
+                    $itemInfoData[$key]['skPrice'] = $skPrice;
+                    $hjPrice = floatval($val['hjPrice']);
+                    $itemInfoData[$key]['hjPrice'] = $hjPrice;
                 }
             }
         } elseif ($requestType == 'changePrice') {