Exemplo n.º 1
0
 /**
  * 工单简单对话ajax
  */
 public function actionOrderDialog()
 {
     if ($this->_isAjax()) {
         $this->_modelWorkOrderQa = $this->_getGlobalData('Model_WorkOrderQa', 'object');
         $dialogList = $this->_modelWorkOrderQa->findByWorkOrderId($_GET['Id']);
         if ($dialogList) {
             $users = $this->_getGlobalData('user_all');
             foreach ($dialogList as &$list) {
                 $list['word_reply_name'] = $users[$list['user_id']]['full_name'];
                 $list['create_time'] = date('Y-m-d H:i:s', $list['create_time']);
                 $list['content'] = Tools::convertHtml($list['content']);
             }
             $this->_returnAjaxJson(array('status' => 1, 'msg' => Tools::getLang('REQUEST_SUCCESS', __CLASS__), 'data' => $dialogList));
         }
         $this->_returnAjaxJson(array('status' => 0, 'msg' => Tools::getLang('REQUEST_ERROR', __CLASS__)));
     }
 }
Exemplo n.º 2
0
 /**
  * 工单简单对话ajax
  */
 public function actionOrderDialog()
 {
     if ($this->_isAjax()) {
         $this->_modelWorkOrderQa = $this->_getGlobalData('Model_WorkOrderQa', 'object');
         $dialogList = $this->_modelWorkOrderQa->findByWorkOrderId($_GET['Id']);
         if ($dialogList) {
             $users = $this->_getGlobalData('user');
             $users = Model::getTtwoArrConvertOneArr($users, 'user_name', 'full_name');
             foreach ($dialogList as &$list) {
                 $list['word_reply_name'] = $users[$list['reply_name']];
                 $list['create_time'] = date('Y-m-d H:i:s', $list['create_time']);
                 $list['content'] = Tools::convertHtml($list['content']);
             }
             $this->_returnAjaxJson(array('status' => 1, 'msg' => '请求成功', 'data' => $dialogList));
         }
         $this->_returnAjaxJson(array('status' => 0, 'msg' => '请求错误'));
     }
 }
Exemplo n.º 3
0
 /**
  * 查看工单详细
  */
 public function actionDetail()
 {
     $dataList = $this->_modelWorkOrder->findByIdToDetail($_GET['Id']);
     $dialogList = $this->_modelWorkOrderQa->findByWorkOrderId($_GET['Id']);
     #------载入缓存------#
     $gameTypeArr = Model::getTtwoArrConvertOneArr($this->_modelSysconfig->getValueToCache('game_type'), 'Id', 'name');
     //游戏类型
     $workOrderSourceArr = $this->_modelSysconfig->getValueToCache('workorder_source');
     //工单来源
     $workOrderStatusArr = $this->_modelSysconfig->getValueToCache('workorder_status');
     //工单状态
     $gameServerList = $this->_getGlobalData('gameser_list');
     $gameServerList = Model::getTtwoArrConvertOneArr($gameServerList, 'Id', 'server_name');
     $operatorList = $this->_getGlobalData('operator_list');
     $operatorList = Model::getTtwoArrConvertOneArr($operatorList, 'Id', 'operator_name');
     $user = $this->_getGlobalData('user');
     $departmentList = $this->_getGlobalData('department');
     $departmentList = Model::getTtwoArrConvertOneArr($departmentList, 'Id', 'name');
     #------载入缓存------#
     #------跟椐ID转换文字显示------#
     $dataList['word_status'] = $workOrderStatusArr[$dataList['status']];
     $dataList['word_game_type'] = $gameTypeArr[$dataList['game_type']];
     $dataList['word_source'] = $workOrderSourceArr[$dataList['source']];
     $dataList['word_game_server_id'] = $gameServerList[$dataList['game_server_id']];
     $dataList['word_operator_id'] = $operatorList[$dataList['operator_id']];
     $dataList['create_time'] = date('Y-m-d H:i', $dataList['create_time']);
     $dataList['word_quality_id'] = $dataList['quality_id'] < 0 ? $user[$dataList['quality_id']]['nick_name'] . "[{$departmentList[$user[$dataList['quality_id']]['department_id']]}]" : '未质检';
     #------跟椐ID转换文字显示------#
     $user = Model::getTtwoArrConvertOneArr($user, 'user_name', 'full_name');
     foreach ($dialogList as &$list) {
         $list['create_time'] = date('Y-m-d H:i:s', $list['create_time']);
         $list['word_reply_name'] = $user[$list['reply_name']];
     }
     $workOrderDetailArr = unserialize($dataList['content']);
     //获取工单的详细信息
     $userData = $workOrderDetailArr['user_data'];
     //获取提交工单用户的详细信息
     $userData['register_date'] = $userData['register_date'] ? date('Y-m-d H:i:s', $userData['register_date']) : '';
     if ($dataList['evaluation_status'] != 0) {
         //如果已经评价
         $playerEvaluation = $this->_getGlobalData('player_evaluation');
         $evaluation = $playerEvaluation[$dataList['evaluation_status']];
         $evaluation = $evaluation['title'];
         if ($dataList['evaluation_status'] == 3) {
             $evaluation .= ':&nbsp;' . $workOrderDetailArr['other']['ev'];
         }
         $this->_view->assign('evaluation', $evaluation);
     }
     if ($dataList['source'] != 2) {
         //如果工单不是从游戏里面来的话
         $userQuestionDetail = $workOrderDetailArr['form_detail'];
         //获取提问类型工单的值
         $questionDetail = $this->_modelQuestionType->findById($dataList['question_type']);
         //查找问题类型
         $dataList['word_question_type'] = $questionDetail['title'];
         //获取问题类型的中文名称以方便显示
         $questionDetail = $questionDetail['form_table'];
         //获取问题类型的表单配置值
         $userQuestionDetailArr = array();
         //初始化显示提交问题类型数组
         if ($questionDetail) {
             foreach ($questionDetail as $value) {
                 //将表单转换为key/value方式,方便显示
                 if ($value['type'] == 'game_server_list') {
                     continue;
                 }
                 //如果为服务器列表将跳过,因为已经在工单上面有了.
                 switch ($value['type']) {
                     case 'select':
                         $userQuestionDetailArr[$value['title']] = $value['options'][$userQuestionDetail[$value['name']]];
                         break;
                     default:
                         $userQuestionDetailArr[$value['title']] = $userQuestionDetail[$value['name']];
                         break;
                 }
             }
         }
     }
     unset($workOrderStatusArr[1]);
     //删除待处理状态
     unset($workOrderStatusArr[4]);
     //删除被玩家删除状态
     $this->_view->assign('workOrderStatusArr', $workOrderStatusArr);
     $this->_view->assign('userData', $userData);
     $this->_view->assign('userQuestionDetailArr', $userQuestionDetailArr);
     //问题类型显示
     $this->_view->assign('dialogArr', $dialogList);
     //对话详细
     $this->_view->assign('data', $dataList);
     //表单详细信息
     $this->_view->assign('js', $this->_view->get_curJs());
     $this->_url['Verify_OrderVerify'] = Tools::url('Verify', 'OrderVerify', array('work_order_id' => $_GET['Id'], 'game_type_id' => $dataList['game_type'], 'operator_id' => $dataList['operator_id'], 'game_server_id' => $dataList['game_server_id'], 'game_user_id' => $userData['user_id'], 'user_account' => urlencode($userData['user_account']), 'user_nickname' => urlencode($userData['user_nickname'])));
     $this->_view->assign('url', $this->_url);
     $this->_utilMsg->createNavBar();
     $this->_view->display();
     /*
     		#----------第一种方式----------#
     		$dataList = $this->_modelWorkOrder->findByIdDetail ( $_GET ['Id'] ); //获取工单整个数组,包括关联表
     		$dialogArr = $dataList; //列表详细
     		$dataList = $dataList [0]; //客服与用户的对话数组
     		#------载入缓存------#
     		$gameTypeArr = Model::getTtwoArrConvertOneArr ( $this->_modelSysconfig->getValueToCache ( 'game_type' ), 'Id', 'name' ); //游戏类型
     		$workOrderSourceArr = $this->_modelSysconfig->getValueToCache ( 'workorder_source' ); //工单来源
     		$workOrderStatusArr = $this->_modelSysconfig->getValueToCache ( 'workorder_status' ); //工单状态
     		$gameSerList = $this->_modelGameSerList->findById ( $dataList ['game_server_id'] );
     		$operatorList = $this->_modelOperatorList->findById ( $dataList ['operator_id'] );
     		#------载入缓存------#
     
     
     		foreach ( $dialogArr as &$list ) {
     			$list ['qa_time'] = date ( 'Y-m-d H:i:s', $list ['qa_time'] );
     		}
     
     		$workOrderDetailArr = unserialize ( $dataList ['detail'] ); //获取工单的详细信息
     		$userData = $workOrderDetailArr ['user_data']; //获取提交工单用户的详细信息
     		$userQuestionDetail = $workOrderDetailArr ['form_detail']; //获取提问类型工单的值
     		$questionDetail = $this->_modelQuestionType->findById ( $dataList ['question_type'] ); //查找问题类型
     		$user=$this->_getGlobalData('user');
     		$departmentList=$this->_getGlobalData('department');
     		$departmentList=Model::getTtwoArrConvertOneArr($departmentList,'Id','name');
     
     
     
     		#------跟椐ID转换文字显示------#
     		$dataList ['word_question_type'] = $questionDetail ['title']; //获取问题类型的中文名称以方便显示
     		$dataList ['word_game_type'] = $gameTypeArr [$dataList ['game_type']];
     		$dataList ['word_source'] = $workOrderSourceArr [$dataList ['source']];
     		$dataList ['word_status'] = $workOrderStatusArr [$dataList ['status']];
     		$dataList ['word_game_server_id'] = $gameSerList ['server_name'];
     		$dataList ['word_operator_id'] = $operatorList ['operator_name'];
     		$dataList ['create_time'] = date ( 'Y-m-d H:i', $dataList ['create_time'] );
     		$dataList['word_quality_id']=($dataList['quality_id']<0)?$user[$dataList['quality_id']]['nick_name']."[{$departmentList[$user[$dataList['quality_id']]['department_id']]}]":'未质检';
     		#------跟椐ID转换文字显示------#
     
     		$questionDetail = $questionDetail ['form_table']; //获取问题类型的表单配置值
     		$userQuestionDetailArr = array (); //初始化显示提交问题类型数组
     		if ($questionDetail) {
     			foreach ( $questionDetail as $value ) { //将表单转换为key/value方式,方便显示
     				if ($value ['type'] == 'game_server_list')
     					continue; //如果为服务器列表将跳过,因为已经在工单上面有了.
     				switch ($value ['type']) {
     					case 'select' :
     						{
     							$userQuestionDetailArr [$value ['title']] = $value ['options'] [$userQuestionDetail [$value ['name']]];
     							break;
     						}
     					default :
     						{
     							$userQuestionDetailArr [$value ['title']] = $userQuestionDetail [$value ['name']];
     							break;
     						}
     				}
     			}
     		}
     
     		$this->_view->assign ( 'workOrderStatusArr', $workOrderStatusArr );
     		$this->_view->assign ( 'userData', $userData );
     		$this->_view->assign ( 'userQuestionDetailArr', $userQuestionDetailArr ); //问题类型显示
     		$this->_view->assign ( 'dialogArr', $dialogArr ); //对话详细
     		$this->_view->assign ( 'data', $dataList ); //表单详细信息
     		$this->_view->assign ( 'js', $this->_view->get_curJs () );
     		$this->_url ['Verify_OrderVerify']=Tools::url('Verify','OrderVerify',array('work_order_id'=>$_GET ['Id']));
     		$this->_view->assign('url',$this->_url);
     		$this->_view->display ();*/
     #----------第一种方式----------#
 }
Exemplo n.º 4
0
 /**
  * 显示某一个工单的对话
  */
 public function actionDialog()
 {
     $this->_modelWorkOrderQa = $this->_getGlobalData('Model_WorkOrderQa', 'object');
     if ($this->_isPost()) {
         $this->_modelQuality = $this->_getGlobalData('Model_Quality', 'object');
         $this->_utilRbac = $this->_getGlobalData('Util_Rbac', 'object');
         $userClass = $this->_utilRbac->getUserClass();
         $addArr = array('game_type_id' => $_POST['game_type_id'], 'operator_id' => $_POST['operator_id'], 'work_order_id' => $_POST['work_order_id'], 'quality_user_id' => $userClass['_id'], 'qa_id' => $_POST['qa_id'], 'option_id' => $_POST['option_id'], 'quality_content' => $_POST['quality_content'], 'quality_time' => CURRENT_TIME, 'scores' => $_POST['scores']);
         if ($_POST['option_id'] > 0 && $_POST['scores'] >= 0) {
             $addArr['status'] = 5;
         }
         //如果质检都是好的话并且所扣分数是大于零,将会变成同意质检,不需要申诉
         if ($this->_modelQuality->add($addArr)) {
             $this->_modelWorkOrderQa->update(array('is_quality' => $userClass['_id']), "Id={$_POST['qa_id']}");
             //更新回复,表示已质检
             $this->_modelWorkOrder = $this->_getGlobalData('Model_WorkOrder', 'object');
             $this->_modelWorkOrder->update(array('quality_id' => $userClass['_id']), "Id={$_POST['work_order_id']}");
             $this->_utilMsg->showMsg(false);
         } else {
             $this->_utilMsg->showMsg('质检失败', -2);
         }
     } else {
         $this->_modelWorkOrder = $this->_getGlobalData('Model_WorkOrder', 'object');
         $data = $this->_modelWorkOrder->findByIdToDetail($_GET['Id']);
         #------载入缓存------#
         $gameTypeArr = Model::getTtwoArrConvertOneArr($this->_getGlobalData('game_type'), 'Id', 'name');
         //游戏类型
         $workOrderSourceArr = $this->_getGlobalData('workorder_source');
         //工单来源
         $workOrderStatusArr = $this->_getGlobalData('workorder_status');
         //工单状态
         $gameServerList = $this->_getGlobalData('gameser_list');
         $gameServerList = Model::getTtwoArrConvertOneArr($gameServerList, 'Id', 'server_name');
         $operatorList = $this->_getGlobalData('operator_list');
         $operatorList = Model::getTtwoArrConvertOneArr($operatorList, 'Id', 'operator_name');
         $user = $this->_getGlobalData('user');
         $departmentList = $this->_getGlobalData('department');
         $departmentList = Model::getTtwoArrConvertOneArr($departmentList, 'Id', 'name');
         #------载入缓存------#
         #------跟椐ID转换文字显示------#
         $data['word_game_type'] = $gameTypeArr[$data['game_type']];
         $data['word_source'] = $workOrderSourceArr[$data['source']];
         $data['word_game_server_id'] = $gameServerList[$data['game_server_id']];
         $data['word_operator_id'] = $operatorList[$data['operator_id']];
         $data['create_time'] = date('Y-m-d H:i', $data['create_time']);
         $data['word_quality_id'] = $data['quality_id'] < 0 ? $user[$data['quality_id']]['nick_name'] . "[{$departmentList[$user[$data['quality_id']]['department_id']]}]" : '未质检';
         $data['word_quality_id'] = $user[$data['quality_id']]['full_name'];
         #------跟椐ID转换文字显示------#
         $workOrderDetailArr = unserialize($data['content']);
         //获取工单的详细信息
         $userData = $workOrderDetailArr['user_data'];
         //获取提交工单用户的详细信息
         $userData['register_date'] = $userData['register_date'] ? date('Y-m-d H:i:s', $userData['register_date']) : '';
         if ($data['evaluation_status'] != 0) {
             //如果已经评价
             $playerEvaluation = $this->_getGlobalData('player_evaluation');
             $evaluation = $playerEvaluation[$data['evaluation_status']];
             $evaluation = $evaluation['title'];
             if ($data['evaluation_status'] == 3) {
                 $evaluation .= ':&nbsp;' . $workOrderDetailArr['other']['ev'];
             }
             $this->_view->assign('evaluation', $evaluation);
         }
         $users = $this->_getGlobalData('user');
         $users = Model::getTtwoArrConvertOneArr($users, 'user_name', 'full_name');
         $dataList = $this->_modelWorkOrderQa->findByWorkOrderId($_GET['Id']);
         foreach ($dataList as &$value) {
             $value['create_time'] = date('Y-m-d H:i:s', $value['create_time']);
             $value['word_reply_name'] = $users[$value['reply_name']];
         }
         $this->_view->assign('userData', $userData);
         $this->_view->assign('data', $data);
         //表单详细信息
         $qualityList = $this->_getGlobalData('quality_options');
         $this->_view->assign('workOrderId', $_GET['Id']);
         $this->_view->assign('qualityOptions', $qualityList);
         $this->_view->assign('dataList', $dataList);
         $this->_view->assign('gameTypeId', $_GET['game_type_id']);
         $this->_view->assign('operatorId', $_GET['operator_id']);
         $this->_view->assign('js', $this->_view->get_curJs());
         $this->_utilMsg->createNavBar();
         $this->_view->display();
     }
 }
Exemplo n.º 5
0
 /**
  * 显示某一个工单的对话
  */
 public function actionDialog()
 {
     $this->_modelWorkOrderQa = $this->_getGlobalData('Model_WorkOrderQa', 'object');
     /*if ($this->_isPost()) {
     			$this->_modelQuality = $this->_getGlobalData ( 'Model_Quality', 'object' );
     			$this->_utilRbac = $this->_getGlobalData ( 'Util_Rbac', 'object' );
     			$userClass = $this->_utilRbac->getUserClass ();
     			$addArr = array (
     						'reply_user_id'=>$_POST['user_id'],
     						'game_type_id'=>$_POST['game_type_id'],
     						'operator_id'=>$_POST['operator_id'],
     						'work_order_id' => $_POST ['work_order_id'],
     						'quality_user_id' => $userClass ['_id'],
     						'qa_id' => $_POST ['qa_id'],
     						'option_id' => $_POST ['option_id'],
     						'quality_content' => $_POST ['quality_content'],
     						'quality_time' => CURRENT_TIME,
     						'scores' => $_POST ['scores'] );
     			if ($_POST['option_id']>0 && $_POST['scores']>=0)$addArr['status']=5;		//如果质检都是好的话并且所扣分数是大于零,将会变成同意质检,不需要申诉
     			if ($this->_modelQuality->add ( $addArr )) {
     				$this->_modelWorkOrderQa->update ( array ('is_quality' => $userClass ['_id'] ), "Id={$_POST['qa_id']}" ); //更新回复,表示已质检
     				$this->_modelWorkOrder = $this->_getGlobalData ( 'Model_WorkOrder', 'object' );
     				$this->_modelWorkOrder->update ( array ('quality_id' => $userClass ['_id'] ), "Id={$_POST['work_order_id']}" );
     				$this->_utilMsg->showMsg(false);
     			} else {
     				$this->_utilMsg->showMsg(Tools::getLang('QUALITY_ERROR',__CLASS__),-2);
     			}
     		} else {*/
     $this->_modelWorkOrder = $this->_getGlobalData('Model_WorkOrder', 'object');
     $data = $this->_modelWorkOrder->findByIdToDetail($_GET['Id']);
     #------载入缓存------#
     $gameTypeArr = Model::getTtwoArrConvertOneArr($this->_getGlobalData('game_type'), 'Id', 'name');
     //游戏类型
     $workOrderSourceArr = $this->_getGlobalData('workorder_source');
     //工单来源
     $workOrderStatusArr = $this->_getGlobalData('workorder_status');
     //工单状态
     $gameServerList = $this->_getGlobalData('gameser_list');
     $gameServerList = Model::getTtwoArrConvertOneArr($gameServerList, 'Id', 'server_name');
     $operatorList = $this->_getGlobalData('operator_list');
     $operatorList = Model::getTtwoArrConvertOneArr($operatorList, 'Id', 'operator_name');
     $user = $this->_getGlobalData('user');
     $departmentList = $this->_getGlobalData('department');
     $departmentList = Model::getTtwoArrConvertOneArr($departmentList, 'Id', 'name');
     #------载入缓存------#
     #------跟椐ID转换文字显示------#
     $data['word_game_type'] = $gameTypeArr[$data['game_type']];
     $data['word_source'] = $workOrderSourceArr[$data['source']];
     $data['word_game_server_id'] = $gameServerList[$data['game_server_id']];
     $data['word_operator_id'] = $operatorList[$data['operator_id']];
     $data['create_time'] = date('Y-m-d H:i', $data['create_time']);
     $data['word_quality_id'] = $data['quality_id'] < 0 ? $user[$data['quality_id']]['nick_name'] . "[{$departmentList[$user[$data['quality_id']]['department_id']]}]" : '未质检';
     $data['word_quality_id'] = $user[$data['quality_id']]['full_name'];
     #------跟椐ID转换文字显示------#
     $workOrderDetailArr = unserialize($data['content']);
     //获取工单的详细信息
     $userData = $workOrderDetailArr['user_data'];
     //获取提交工单用户的详细信息
     $userData['register_date'] = $userData['register_date'] ? date('Y-m-d H:i:s', $userData['register_date']) : '';
     if ($data['evaluation_status'] != 0) {
         //如果已经评价
         $playerEvaluation = $this->_getGlobalData('player_evaluation');
         $evaluation = $playerEvaluation[$data['evaluation_status']];
         $evaluation = $evaluation['title'];
         if ($data['evaluation_status'] == 3) {
             $evaluation .= ':&nbsp;' . $workOrderDetailArr['other']['ev'];
         }
         $this->_view->assign('evaluation', $evaluation);
     }
     $userQuestionDetail = $workOrderDetailArr['form_detail'];
     //获取提问类型工单的值
     $this->_modelQuestionType = $this->_getGlobalData('Model_QuestionType', 'object');
     $questionDetail = $this->_modelQuestionType->findById($data['question_type']);
     //查找问题类型
     $dataList['word_question_type'] = $questionDetail['title'];
     //获取问题类型的中文名称以方便显示
     if ($dataList['source'] != 2) {
         //如果工单不是从游戏里面来的话
         $questionDetail = $questionDetail['form_table'];
         //获取问题类型的表单配置值
         $userQuestionDetailArr = array();
         //初始化显示提交问题类型数组
         if ($questionDetail) {
             foreach ($questionDetail as $value) {
                 //将表单转换为key/value方式,方便显示
                 if ($value['type'] == 'game_server_list') {
                     continue;
                 }
                 //如果为服务器列表将跳过,因为已经在工单上面有了.
                 switch ($value['type']) {
                     case 'select':
                         $userQuestionDetailArr[$value['title']] = $value['options'][$userQuestionDetail[$value['name']]];
                         break;
                     default:
                         $userQuestionDetailArr[$value['title']] = $userQuestionDetail[$value['name']];
                         break;
                 }
             }
         }
     }
     $badEvArr = $this->_getGlobalData('player_evaluation');
     $badEvArr = $badEvArr[3]['Description'];
     //差评数组
     if ($data['evaluation_status'] == 3) {
         $data['word_ev_desc'] = $badEvArr[$data['evaluation_desc']];
     }
     $dataList = $this->_modelWorkOrderQa->findByWorkOrderId($_GET['Id']);
     foreach ($dataList as &$value) {
         $value['create_time'] = date('Y-m-d H:i:s', $value['create_time']);
         $value['word_reply_name'] = $user[$value['user_id']]['full_name'];
         $value["image"] = json_decode($value["image"], true);
     }
     #------日志------#
     $this->_modelOrderLog = $this->_getGlobalData('Model_OrderLog', 'object');
     $this->_view->assign('log', $this->_modelOrderLog->getLog($_GET['Id']));
     #------日志------#
     $this->_view->assign('userData', $userData);
     $this->_view->assign('data', $data);
     //表单详细信息
     $qualityList = $this->_getGlobalData('quality_options');
     $this->_view->assign('workOrderId', $_GET['Id']);
     $this->_view->assign('qualityOptions', $qualityList);
     $this->_view->assign('dataList', $dataList);
     $this->_view->assign('gameTypeId', $_GET['game_type_id']);
     $this->_view->assign('operatorId', $_GET['operator_id']);
     $this->_view->assign('js', $this->_view->get_curJs());
     $this->_utilMsg->createNavBar();
     $this->_view->display();
     //		}
 }
Exemplo n.º 6
0
 /**
  * 查看工单详细
  */
 public function actionDetail()
 {
     $dataList = $this->_modelWorkOrder->findByIdToDetail($_GET['Id']);
     $_REQUEST['operator_id'] = $dataList['operator_id'];
     $this->_checkOperatorAct(true);
     $dialogList = $this->_modelWorkOrderQa->findByWorkOrderId($_GET['Id']);
     #------载入缓存------#
     $gameTypeArr = Model::getTtwoArrConvertOneArr($this->_modelSysconfig->getValueToCache('game_type'), 'Id', 'name');
     //游戏类型
     $workOrderSourceArr = $this->_modelSysconfig->getValueToCache('workorder_source');
     //工单来源
     $workOrderStatusArr = $this->_modelSysconfig->getValueToCache('workorder_status');
     //工单状态
     $gameServerList = $this->_getGlobalData('gameser_list');
     $TimeDifference = intval($gameServerList[$dataList['game_server_id']]['time_zone']) * 3600;
     //时差
     $gameServerList = Model::getTtwoArrConvertOneArr($gameServerList, 'Id', 'server_name');
     $operatorList = $this->_getGlobalData('operator_list');
     $operatorList = Model::getTtwoArrConvertOneArr($operatorList, 'Id', 'operator_name');
     $user = $this->_getGlobalData('user_all');
     $departmentList = $this->_getGlobalData('department');
     $departmentList = Model::getTtwoArrConvertOneArr($departmentList, 'Id', 'name');
     #------载入缓存------#
     #------跟椐ID转换文字显示------#
     $dataList['word_status'] = $workOrderStatusArr[$dataList['status']];
     $dataList['word_game_type'] = $gameTypeArr[$dataList['game_type']];
     $dataList['word_source'] = $workOrderSourceArr[$dataList['source']];
     $dataList['word_game_server_id'] = $gameServerList[$dataList['game_server_id']];
     $dataList['word_operator_id'] = $operatorList[$dataList['operator_id']];
     $dataList['create_time'] = date('Y-m-d H:i:s', $dataList['create_time'] + $TimeDifference);
     if ($TimeDifference) {
         $dataList['create_time'] .= '(' . Tools::getLang('GAME_SERVER_TIME', 'Common') . ')';
     }
     $dataList['word_quality_id'] = $dataList['quality_id'] < 0 ? $user[$dataList['quality_id']]['nick_name'] . "[{$departmentList[$user[$dataList['quality_id']]['department_id']]}]" : '未质检';
     $dataList['url_nick_name_detail_list'] = Tools::url('MyTask', 'Index', array('view_type' => 2, 'user_nickname' => $dataList['user_nickname']));
     $dataList['url_change_verify'] = Tools::url(CONTROL, 'ChangeVerify', array('Id' => $dataList['Id'], 'verify' => $dataList['is_verify'] ? 0 : 1));
     #------跟椐ID转换文字显示------#
     foreach ($dialogList as &$list) {
         $list['create_time'] = date('Y-m-d H:i:s', $list['create_time'] + $TimeDifference);
         if ($TimeDifference) {
             $list['create_time'] .= '(' . Tools::getLang('GAME_SERVER_TIME', 'Common') . ')';
         }
         $list["image"] = json_decode($list["image"], true);
         $list['word_reply_name'] = $user[$list['user_id']]['full_name'];
     }
     $workOrderDetailArr = unserialize($dataList['content']);
     //获取工单的详细信息
     $userData = $workOrderDetailArr['user_data'];
     //获取提交工单用户的详细信息
     //		$userData ['register_date'] =$userData ['register_date']? date ( 'Y-m-d H:i:s', $userData ['register_date'] ):'';
     if ($userData['register_date']) {
         $userData['register_date'] = date('Y-m-d H:i:s', $userData['register_date'] + $TimeDifference);
         if ($TimeDifference) {
             $userData['register_date'] .= '(' . Tools::getLang('GAME_SERVER_TIME', 'Common') . ')';
         }
     } else {
         $userData['register_date'] = '';
     }
     if ($dataList['evaluation_status'] != 0) {
         //如果已经评价
         $playerEvaluation = $this->_getGlobalData('player_evaluation');
         $evaluation = $playerEvaluation[$dataList['evaluation_status']];
         $evaluation = $evaluation['title'];
         if ($dataList['evaluation_status'] == 3) {
             $evaluation .= ':&nbsp;' . $playerEvaluation[3]['Description'][$dataList['evaluation_desc']];
         }
         $this->_view->assign('evaluation', $evaluation);
     }
     $userQuestionDetail = $workOrderDetailArr['form_detail'];
     //获取提问类型工单的值
     $questionDetail = $this->_modelQuestionType->findById($dataList['question_type']);
     //查找问题类型
     $dataList['word_question_type'] = $questionDetail['title'];
     //获取问题类型的中文名称以方便显示
     if ($dataList['source'] != 2) {
         //如果工单不是从游戏里面来的话
         $questionDetail = $questionDetail['form_table'];
         //获取问题类型的表单配置值
         $userQuestionDetailArr = array();
         //初始化显示提交问题类型数组
         if ($questionDetail) {
             foreach ($questionDetail as $value) {
                 //将表单转换为key/value方式,方便显示
                 if ($value['type'] == 'game_server_list') {
                     continue;
                 }
                 //如果为服务器列表将跳过,因为已经在工单上面有了.
                 switch ($value['type']) {
                     case 'select':
                         $userQuestionDetailArr[$value['title']] = $value['options'][$userQuestionDetail[$value['name']]];
                         break;
                     default:
                         $userQuestionDetailArr[$value['title']] = $userQuestionDetail[$value['name']];
                         break;
                 }
             }
         }
     }
     #------发送短消息URL------#
     $sendMsgUrl = array(1 => '', 2 => Tools::url('MasterFRG', 'SendMail', array('UserId[1]' => $userData['user_id'], 'server_id' => $dataList['game_server_id'], 'lock' => 1)), 3 => Tools::url('GmSftx', 'SendMsg', array('users[1]' => $userData['user_id'], 'server_id' => $dataList['game_server_id'], 'lock' => 1)));
     $this->_view->assign('sendMsgUrl', $sendMsgUrl[$dataList['game_type']]);
     //url
     #------发送短消息URL------#
     #------日志------#
     $this->_modelOrderLog = $this->_getGlobalData('Model_OrderLog', 'object');
     $this->_view->assign('log', $this->_modelOrderLog->getLog($_GET['Id']));
     #------日志------#
     unset($workOrderStatusArr[1]);
     //删除待处理状态
     unset($workOrderStatusArr[4]);
     //删除被玩家删除状态
     //玩家附加的信息(腾讯数据)
     if (isset($workOrderDetailArr['ext'])) {
         $this->_view->assign('userExt', $workOrderDetailArr['ext']);
     }
     $this->_view->assign('workOrderStatusArr', $workOrderStatusArr);
     $this->_view->assign('userData', $userData);
     $this->_view->assign('userQuestionDetailArr', $userQuestionDetailArr);
     //问题类型显示
     $this->_view->assign('dialogArr', $dialogList);
     //对话详细
     $this->_view->assign('data', $dataList);
     //表单详细信息
     $this->_view->assign('js', $this->_view->get_curJs());
     $this->_url['Verify_OrderVerify'] = Tools::url('Verify', 'OrderVerify', array('work_order_id' => $_GET['Id'], 'game_type_id' => $dataList['game_type'], 'operator_id' => $dataList['operator_id'], 'game_server_id' => $dataList['game_server_id'], 'game_user_id' => $userData['user_id'], 'user_account' => urlencode($userData['user_account']), 'user_nickname' => urlencode($userData['user_nickname'])));
     $this->_view->assign('url', $this->_url);
     //加载游戏配置
     $gameClass = $this->_getGlobalData($dataList['game_type'], 'game');
     $isSendOrderReplay = true;
     $isSendImage = false;
     if ($gameClass) {
         $isSendOrderReplay = $gameClass->_isSendOrderReplay;
         $isSendImage = $gameClass->_sendImage;
     }
     $this->_view->assign('isSendOrderReplay', $isSendOrderReplay);
     $this->_view->assign('isSendImage', $isSendImage);
     $this->_utilMsg->createNavBar();
     $this->_view->display();
 }