...
|
...
|
@@ -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']); ;
|
...
|
...
|
|