$resText = $objShop->dispose_order($orderId, 'confirm_complete'); unset($objShop); if (true === $resText) { $objSerOrderM = new Keke_witkey_service_order_class(); $objSerOrderM->setWhere('order_id =' . $orderId); $objSerOrderM->setWorkfile(strval(trim(kekezu::escape($workfile)))); $objSerOrderM->edit_keke_witkey_service_order(); kekezu::show_msg('订单处理完成,已确认完工', $strUrl . "&step=step5&orderId=" . $orderId, 3, null, 'ok'); } else { kekezu::show_msg($resText, $strUrl, 3, null, 'fail'); } break; default: kekezu::show_msg('访问页面不存在', 'index.php', 3, null, 'warning'); break; } } break; case 'step6': $objId = $orderId; $arrMark = keke_user_mark_class::get_mark_info(array('model_code' => 'service', 'obj_id' => $objId, 'by_uid' => $gUid, 'uid' => $arrServiceOrderInfo['uid'])); $markInfo = $arrMark['mark_info']['0']; $aidList = keke_user_mark_class::get_mark_aid(1); $aidInfo = keke_user_mark_class::get_user_aid($markInfo['by_uid'], $markInfo['mark_type'], $markInfo['mark_status'], 2, $markInfo['model_code'], $objId); $strJumpUrl = "index.php?do=goods&id={$sid}&view=mark#pageT"; if ($markInfo['mark_status'] == '1') { header('location:' . $strJumpUrl); kekezu::show_msg('操作提示', $strJumpUrl, 3, '评价完成,服务结束', 'success'); } break; }
<?php if (isset($formhash) && kekezu::submitcheck($formhash)) { if (strtoupper(CHARSET) == 'GBK') { $tar_content = kekezu::utftogbk($tar_content); } $tar_content = kekezu::escape($tar_content); $aid = implode(",", array_keys($star)); $aid_star = implode(",", array_values($star)); $res = keke_user_mark_class::exec_mark($markId, $tar_content, $mark_status, $aid, $aid_star); if ($markType == 'gz') { $strJumpUrl = 'index.php?do=user&view=gz&op=mark'; } elseif ($markType == 'wk') { $strJumpUrl = 'index.php?do=user&view=wk&op=mark'; } if ($res === true) { kekezu::show_msg('操作成功', $strJumpUrl, 3, NULL, 'ok'); } else { kekezu::show_msg($res, $strJumpUrl, 3, NULL, 'fail'); } } else { $arrMark = keke_user_mark_class::get_mark_info(array('model_code' => $code, 'obj_id' => $objId, 'by_uid' => $uid, 'uid' => $to_uid)); $markInfo = $arrMark['mark_info']['0']; $markInfo or kekezu::show_msg($_lang['operate_notice'], "", "", $_lang['mark_sya_busy_try_later'], "error"); $aidList = keke_user_mark_class::get_mark_aid($roleType); $aidInfo = keke_user_mark_class::get_user_aid($markInfo['by_uid'], $markInfo['mark_type'], $markInfo['mark_status'], 2, $markInfo['model_code'], $objId); } require keke_tpl_class::template("tpl/default/ajax/mark"); die;
case "accept": $resText = $objAgreement->accept_confirm($strUrl); if (true === $resText) { kekezu::show_msg('源文件确认完成,任务交付成功', $strUrl, 3, NULL, 'ok'); } else { kekezu::show_msg($resText, null, 3, NULL, 'fail'); } break; } break; case "step4": $modelCode = $objAgreement->_model_code; $objId = $arrAgreeInfo['work_id']; if ($arrAgreeInfo['seller_uid'] == $gUid) { $toUid = $arrAgreeInfo['buyer_uid']; } else { $toUid = $arrAgreeInfo['seller_uid']; } $arrMark = keke_user_mark_class::get_mark_info(array('model_code' => $modelCode, 'obj_id' => $objId, 'by_uid' => $gUid, 'uid' => $toUid)); $markInfo = $arrMark['mark_info']['0']; $markInfo or kekezu::show_msg('操作提示', $strUrl, "3", '互评系统繁忙,请稍后再试', "error"); $aidList = keke_user_mark_class::get_mark_aid($intUserType); $aidInfo = keke_user_mark_class::get_user_aid($markInfo['by_uid'], $markInfo['mark_type'], $markInfo['mark_status'], 2, $markInfo['model_code'], $objId); $strJumpUrl = "index.php?do=task&id=" . $arrAgreeInfo['task_id'] . "&view=mark#detail"; if ($markInfo['mark_status'] == '1') { kekezu::show_msg('操作提示', $strJumpUrl, 3, '评价完成,任务已结束', 'success'); } break; } require keke_tpl_class::template("task/" . $arrModelInfo['model_dir'] . "/tpl/" . $_K['template'] . "/agreement/index"); die;