<?php kekezu::check_login(); if ($gUid != $arrServiceInfo['uid']) { $arrOrderProgress = array(1 => array('step' => 'step1', 'state' => '确认订单'), 2 => array('step' => 'step2', 'state' => '提交订单并支付'), 3 => array('step' => 'step3', 'state' => '文件交付'), 4 => array('step' => 'step4', 'state' => '双方互评')); } switch ($step) { case 'step1': if ($arrServiceInfo['pic']) { $arrPics = explode(',', $arrServiceInfo['pic']); } if (isset($formhash) && kekezu::submitcheck($formhash)) { $arrOrderInfo = keke_shop_class::check_has_buy($sid, $uid); if (strtoupper(CHARSET) == 'GBK') { $tar_content = kekezu::utftogbk($tar_content); } $tar_content and $arrServiceInfo['leave_message'] = kekezu::escape($tar_content) or $arrServiceInfo['leave_message'] = '0'; $resText = keke_shop_class::create_service_order($arrServiceInfo, false, null, $step); if (0 < intval($resText)) { kekezu::show_msg('订单创建成功', $strUrl . "&step=step2&orderId=" . $resText, 3, null, 'ok'); } else { kekezu::show_msg($resText, $strUrl, 3, null, 'fail'); } } break; case 'step2': if (isset($action)) { switch ($action) { case 'confirm_pay': if ($_SESSION['UserBalance']) { $arrUserBalance = explode('|', $_SESSION['UserBalance']);