wesmiler 2 月之前
父節點
當前提交
ae7df40639
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/Api/GoodsService.php

+ 1 - 1
app/Services/Api/GoodsService.php

@@ -274,7 +274,7 @@ class GoodsService extends BaseService
                     $item['num'] = $num;
                     $total = round($price * $num,2);
                     $item['total'] = $total;
-                    $item['thumb'] = get_image_path($item['thumb']);
+                    $item['thumb'] = $orderNo?get_image_path($item['thumb']):$item['thumb'];
                     $result['goods'][] = $item;
                     $result['total'] += $total;
                     $result['count']++;