Exemplo n.º 1
0
 public function caseDescChip($request, $response)
 {/*{{{*/
     try{
         $conditionDesc = XString::convertToGbk($request->casedesc);
         $pageType = $request->id;
         if($pageType == 'notTreatedHospital')
         {
             $diseaseDto = BingLiDto::createDiseaseDto($conditionDesc);
             AskSessionInfo::modifyDiseaseNotTreated($diseaseDto);
             $response->disease = $diseaseDto;
         }
         else
         {
             $conditionDesc = BingLiDto::createConditionDescDto($conditionDesc);
             AskSessionInfo::modifyConditionDesc($conditionDesc);
             $response->caseDesc = $conditionDesc;
         }
         $response->treated = AskSessionInfo::getTreatedHospital();
     } catch(IllegalWordsException $ex){
         echo '非法词汇';
         return parent::DIRECT_OUTPUT; 
     }
 }/*}}}*/