From 538e3c2f781ea094e53bfa40e4e330e1f36fda71 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 27 Feb 2019 12:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=8A=B6=E6=80=81=E9=99=90?= =?UTF-8?q?=E5=88=B6=E8=B4=AD=E7=89=A9=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/BuyService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/service/BuyService.php b/application/service/BuyService.php index 99ff5744c..d1ccd7f1d 100755 --- a/application/service/BuyService.php +++ b/application/service/BuyService.php @@ -197,7 +197,7 @@ class BuyService if($goods_base['code'] == 0) { $v['inventory'] = $goods_base['data']['inventory']; - $v['price'] = (float) $goods_base['data']['price']; + $v['price'] = (float) $goods_base['data']['price']; $v['original_price'] = (float) $goods_base['data']['original_price']; $v['spec_weight'] = $goods_base['data']['weight']; $v['spec_coding'] = $goods_base['data']['coding']; @@ -210,7 +210,7 @@ class BuyService $v['goods_url'] = MyUrl('index/goods/index', ['id'=>$v['goods_id']]); $v['images_old'] = $v['images']; $v['images'] = ResourcesService::AttachmentPathViewHandle($v['images']); - $v['total_price'] = $v['stock']* ((float) $v['price']); + $v['total_price'] = $v['stock']* ((float) $v['price']); $v['buy_max_number'] = ($v['buy_max_number'] <= 0) ? $v['inventory']: $v['buy_max_number']; } } -- GitLab