public function medicineChip($request, $response) {/*{{{*/ try{ $medicineAndNum = $request->id; $medicineAndNumList = explode('_', $medicineAndNum); $medicineKey = $medicineAndNumList[0]; $response->num = $medicineAndNumList[1]; $medicineName = XString::convertToGbk($request->medicineName); $medicineDesc = XString::convertToGbk($request->medicineDesc); $medicine = BingLiDto::createMedicineDto($medicineName, $medicineDesc); $newMedicineKey = AskSessionInfo::modifyPatientInfo(NodeObj::NODE_DEFINE_MEDICINE, $medicineKey, $medicine); $medicineInfo = AskSessionInfo::getSinglePatientInfos(NodeObj::NODE_DEFINE_MEDICINE, $newMedicineKey); $response->medicineInfo = $medicineInfo; $response->newMedicineKey = $newMedicineKey; } catch(IllegalWordsException $ex){ echo '非法词汇'; return parent::DIRECT_OUTPUT; } }/*}}}*/