From 0aa1147c1aaf39787bac60a19fd5d54736c075ef Mon Sep 17 00:00:00 2001 From: meng Date: Thu, 16 Feb 2023 04:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0api=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/web/order/detail.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/core/web/order/detail.php b/core/web/order/detail.php index edfabe3..255efba 100644 --- a/core/web/order/detail.php +++ b/core/web/order/detail.php @@ -393,22 +393,13 @@ class Detail_EweiShopV2Page extends WebPage { public function option_title($spec){ global $_W; $specs = ($spec); -// //查出spec_item的标题 -// $sql = "select o.specs from " . tablename('ewei_shop_order_goods') -// . " g join " . tablename('ewei_shop_goods_option') -// . " o on o.id = g.optionid where g.orderid = :orderid"; -// //规格项id -// $specs = pdo_fetchcolumn($sql, array(':orderid'=>$orderid)); + $specs_arr = explode('_',$specs); $specs = implode(',',$specs_arr); $table = tablename('ewei_shop_goods_spec_item'); $sql = "select title from ". $table . " where id in (".$specs.")"; -// $sql = array(); -// foreach ($specs_arr as $s){ -// $sql[] = 'select title from ' . $table . ' where id = ' . (int)$s; -// } -// $sql = implode(' UNION ALL ',$sql); + $title_arr = pdo_fetchall($sql);