From f913d5e0315a5a31cc0fd58b7ffa998089f01113 Mon Sep 17 00:00:00 2001 From: anyv <anyu@bronet.cn> Date: Thu, 30 May 2019 15:31:07 +0800 Subject: [PATCH] 分类 --- app/portal/controller/ClassifyController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/portal/controller/ClassifyController.php b/app/portal/controller/ClassifyController.php index a270296..cf70c41 100644 --- a/app/portal/controller/ClassifyController.php +++ b/app/portal/controller/ClassifyController.php @@ -25,8 +25,7 @@ class ClassifyController extends WeChatBaseController{ //获取默认分类商品 $data_goods = Db::name('goods') -> alias('a') -> join('classification b','a.classify_id = b.id','LEFT') -> where("a.type = 1 and a.classify_id =".$data_classify[0]['id']) -> select() -> toArray(); foreach($data_goods as $key => $val){ - $price = explode(',',$data_goods[$key]['price']); - dump($price);die; + $price = explode('.',$data_goods[$key]['price']); $data_goods[$key]['price0'] = $price[0]; $data_goods[$key]['price01'] = $price[1]; } -- libgit2 0.24.0