This commit is contained in:
parent
47b6322ca1
commit
0aa1147c1a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user