From 3625b71d921a1e885235ab872debf20ec584b347 Mon Sep 17 00:00:00 2001
From: anyv <anyu@bronet.cn>
Date: Tue, 4 Jun 2019 18:49:49 +0800
Subject: [PATCH] 5

---
 app/portal/controller/ShopcartController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/portal/controller/ShopcartController.php b/app/portal/controller/ShopcartController.php
index bdc2e5c..29894e0 100644
--- a/app/portal/controller/ShopcartController.php
+++ b/app/portal/controller/ShopcartController.php
@@ -22,7 +22,7 @@ class ShopcartController extends WeChatBaseController{
         $goods_id = Db::name('shopping_cart') -> where("uid",$uid) -> select() -> toArray();
         if(!empty($goods_id)){
             foreach ($goods_id as $key => $val){
-                $goods_data[] = Db::name('goods') -> where("goods_id",$val['goods_id']) -> find();
+                $goods_data[] = Db::name('goods') -> where("id",$val['goods_id']) -> find();
             }
             foreach ($goods_data as $key => $val){
                 $price = explode('.',$goods_data[$key]['price']); ;
--
libgit2 0.24.0