//获取总价格 @(list($_, $order_id, $city_id, $_) = explode('-', $out_trade_no, 4)); if ($_ == 'charge') { if ($verify_result) { if ($_GET['trade_status'] == 'TRADE_FINISHED' || $_GET['trade_status'] == 'TRADE_SUCCESS') { @(list($_, $user_id, $create_time, $_) = explode('-', $out_trade_no, 4)); if (ZFlow::CreateFromCharge($total_fee, $user_id, $create_time, 'alipay')) { Session::Set('notice', "支付宝充值{$total_fee}元成功!"); } } } redirect(WEB_ROOT . '/credit/index.php'); } if ($verify_result) { if ($_GET['trade_status'] == 'TRADE_FINISHED' || $_GET['trade_status'] == 'TRADE_SUCCESS') { $currency = 'CNY'; $service = 'alipay'; $bank = '支付宝'; ZOrder::OnlineIt($order_id, $out_trade_no, $total_fee, $currency, $service, $bank); redirect(WEB_ROOT . "/order/pay.php?id={$order_id}"); } else { if ($_GET['trade_status'] == 'WAIT_SELLER_SEND_GOODS') { $currency = 'CNY'; $service = 'alipay'; $bank = '支付宝'; ZOrder::AlipayOnlineItState($order_id, $out_trade_no, $total_fee, $currency, 'waitgood'); redirect(WEB_ROOT . "/order/pay.php?id={$order_id}"); } } } redirect(WEB_ROOT . "/order/pay.php?id={$order_id}");