model('delivery'); $customMark_lists = $deliveryObj->db->select('select custom_mark,'.$this->__pkey.' from sdb_ome_orders orders join sdb_ome_delivery_order on orders.order_id=sdb_ome_delivery_order.order_id and sdb_ome_delivery_order.delivery_id in ('.implode(',',$ids).')'); $tmp_array= array(); foreach($customMark_lists as $k=>$row){ $custom_mark = '';#买家留言 $custom = kernel::single('ome_func')->format_memo($row['custom_mark']); if($custom){ // 取最后一条 $custom = array_pop($custom); $custom_mark = $custom['op_content'].';'."     "; } if(isset($tmp_array[$row[$this->__pkey]])){ $tmp_array[$row[$this->__pkey]] .= $custom_mark; }else{ $tmp_array[$row[$this->__pkey]] = $custom_mark; } } return $tmp_array; } }