提交订单的一些问题
$consignee = get_consignee($_SESSION['user_id']);
获取用户的收货地址(如果$_SESSION['flow_consignee']有就读取session中的选择)
if (!check_consignee_info($consignee, $flow_type)) /* 如果不完整则转向到收货人信息填写界面 */
{
ecs_header("Location: dz.php?step=consignee&u=qpay&id=$id&num=$num");
exit;
}
$_SESSION['flow_consignee'] = $consignee; //设置session
include_once('includes/lib_order.php');
$region['country'] = $consignee['country'];
$region['province'] = $consignee['province'];
$region['city'] = $consignee['city'];
$region['district'] = $consignee['district'];
$shipping_info=shipping_area_info(21,$region);//获取该配送方式的参数
$psf=shipping_fee($shipping_info['shipping_code'],$shipping_info['configure'],订单千克数, 订单价格, 物品数量); //获取配送费用