Best JavaScript code snippet using apimocker
data.js
Source:data.js
1var data = {2 weapon_dates: [3 ["é«å¡å¤ç", "å¤äºå¯æ"],4 ["åé£å¥ç¼", "é¾æµ·äºé´"],5 ["ç®çæ士", "æ¼é»é¨é"],6 ["é«å¡å¤ç", "å¤äºå¯æ"],7 ["åé£å¥ç¼", "é¾æµ·äºé´"],8 ["ç®çæ士", "æ¼é»é¨é"],9 ],10 char_dates: [11 ["èªç±", "ç¹è£"],12 ["æäº", "å¤å³"],13 ["è¯æ", "é»é"],14 ["èªç±", "ç¹è£"],15 ["æäº", "å¤å³"],16 ["è¯æ", "é»é"],17 ],18 weapons: {19 é«å¡å¤ç: [20 {21 name: "é£é¹°å",22 req: "é«å¡å¤ç",23 region: "èå¾·",24 star: "5",25 req1: "å·è§",26 req2: "ç®ç°",27 type: "weapon",28 },29 {30 name: "西é£å",31 req: "é«å¡å¤ç",32 region: "èå¾·",33 star: "4",34 req1: "å·è§",35 req2: "ç®ç°",36 type: "weapon",37 },38 {39 name: "éå",40 req: "é«å¡å¤ç",41 region: "èå¾·",42 star: "4",43 req1: "å·è§",44 req2: "è±è",45 type: "weapon",46 },47 {48 name: "å®å®¤é¿å",49 req: "é«å¡å¤ç",50 region: "èå¾·",51 star: "4",52 req1: "å·è§",53 req2: "é¢å
·",54 type: "weapon",55 },56 {57 name: "éªè¬çæé¶",58 req: "é«å¡å¤ç",59 region: "èå¾·",60 star: "4",61 req1: "å·è§",62 req2: "å²è±å§",63 type: "weapon",64 },65 {66 name: "ç»å¼¦",67 req: "é«å¡å¤ç",68 region: "èå¾·",69 star: "4",70 req1: "å·è§",71 req2: "ç®ç°",72 type: "weapon",73 },74 {75 name: "èç¿ çå¼",76 req: "é«å¡å¤ç",77 region: "èå¾·",78 star: "4",79 req1: "å·è§",80 req2: "ç®ç°",81 type: "weapon",82 },83 {84 name: "å®å®¤ç§æ³å½",85 req: "é«å¡å¤ç",86 region: "èå¾·",87 star: "4",88 req1: "å·è§",89 req2: "徽记",90 type: "weapon",91 },92 {93 name: "西é£ç§å
¸",94 req: "é«å¡å¤ç",95 region: "èå¾·",96 star: "4",97 req1: "å·è§",98 req2: "ç»å·",99 type: "weapon",100 },101 ],102 åé£å¥ç¼: [103 {104 name: "天空ä¹å",105 req: "åé£å¥ç¼",106 region: "èå¾·",107 star: "5",108 req1: "å°è",109 req2: "å²è±å§",110 type: "weapon",111 },112 {113 name: "天空ä¹å²",114 req: "åé£å¥ç¼",115 region: "èå¾·",116 star: "5",117 req1: "å°è",118 req2: "å²è±å§",119 type: "weapon",120 },121 {122 name: "天空ä¹ç¿¼",123 req: "åé£å¥ç¼",124 region: "èå¾·",125 star: "5",126 req1: "å°è",127 req2: "ç®ç°",128 type: "weapon",129 },130 {131 name: "天空ä¹å·",132 req: "åé£å¥ç¼",133 region: "èå¾·",134 star: "5",135 req1: "å°è",136 req2: "ç®ç°",137 type: "weapon",138 },139 {140 name: "é»å",141 req: "åé£å¥ç¼",142 region: "èå¾·",143 star: "4",144 req1: "å°è",145 req2: "å²è±å§",146 type: "weapon",147 },148 {149 name: "ç¬å",150 req: "åé£å¥ç¼",151 region: "èå¾·",152 star: "4",153 req1: "å°è",154 req2: "å²è±å§",155 type: "weapon",156 },157 {158 name: "é临ä¹å",159 req: "åé£å¥ç¼",160 region: "èå¾·",161 star: "4",162 req1: "å°è",163 req2: "鸦å°",164 type: "weapon",165 },166 {167 name: "ç¥ç¤¼å¤§å",168 req: "åé£å¥ç¼",169 region: "èå¾·",170 star: "4",171 req1: "å°è",172 req2: "ç®ç°",173 type: "weapon",174 },175 {176 name: "ç¥ç¤¼å¼",177 req: "åé£å¥ç¼",178 region: "èå¾·",179 star: "4",180 req1: "å°è",181 req2: "å²è±å§",182 type: "weapon",183 },184 {185 name: "æµæµªä¹ç« ",186 req: "åé£å¥ç¼",187 region: "èå¾·",188 star: "4",189 req1: "å°è",190 req2: "é¢å
·",191 type: "weapon",192 },193 {194 name: "å³æä¹æª",195 req: "åé£å¥ç¼",196 region: "èå¾·",197 star: "4",198 req1: "å°è",199 req2: "è±è",200 type: "weapon",201 },202 {203 name: "é¾èé¿æª",204 req: "åé£å¥ç¼",205 region: "èå¾·",206 star: "4",207 req1: "é¾è",208 req2: "徽记",209 type: "weapon",210 },211 ],212 ç®çæ士: [213 {214 name: "ç¼çæ«è·¯",215 req: "ç®çæ士",216 region: "èå¾·",217 star: "5",218 req1: "æ··æ²",219 req2: "ç»å·",220 type: "weapon",221 },222 {223 name: "天空ä¹è",224 req: "ç®çæ士",225 region: "èå¾·",226 star: "5",227 req1: "æ··æ²",228 req2: "ç»å·",229 type: "weapon",230 },231 {232 name: "é¿è«æ¯ä¹å¼",233 req: "ç®çæ士",234 region: "èå¾·",235 star: "5",236 req1: "æ··æ²",237 req2: "å²è±å§",238 type: "weapon",239 },240 {241 name: "åé£åå
¸",242 req: "ç®çæ士",243 region: "èå¾·",244 star: "5",245 req1: "æ··æ²",246 req2: "å²è±å§",247 type: "weapon",248 },249 {250 name: "ç¥ç¤¼å",251 req: "ç®çæ士",252 region: "èå¾·",253 star: "4",254 req1: "æ··æ²",255 req2: "ç»å·",256 type: "weapon",257 },258 {259 name: "å®å®¤å¤§å",260 req: "ç®çæ士",261 region: "èå¾·",262 star: "4",263 req1: "æ··æ²",264 req2: "å²è±å§",265 type: "weapon",266 },267 {268 name: "西é£å¤§å",269 req: "ç®çæ士",270 region: "èå¾·",271 star: "4",272 req1: "æ··æ²",273 req2: "徽记",274 type: "weapon",275 },276 {277 name: "西é£çå¼",278 req: "ç®çæ士",279 region: "èå¾·",280 star: "4",281 req1: "æ··æ²",282 req2: "è±è",283 type: "weapon",284 },285 {286 name: "ç¥ç¤¼æ®ç« ",287 req: "ç®çæ士",288 region: "èå¾·",289 star: "4",290 req1: "æ··æ²",291 req2: "鸦å°",292 type: "weapon",293 },294 {295 name: "å¿å¬ä¹æ",296 req: "ç®çæ士",297 region: "èå¾·",298 star: "4",299 req1: "æ··æ²",300 req2: "è±è",301 type: "weapon",302 },303 {304 name: "西é£é¿æª",305 req: "ç®çæ士",306 region: "èå¾·",307 star: "4",308 req1: "æ··æ²",309 req2: "徽记",310 type: "weapon",311 },312 {313 name: "è
æ®ä¹å",314 req: "ç®çæ士",315 region: "èå¾·",316 star: "4",317 req1: "å·è§",318 req2: "徽记",319 type: "weapon",320 },321 ],322 æ¼é»é¨é: [323 {324 name: "å°ä¸ä¹é",325 req: "æ¼é»é¨é",326 region: "çæ",327 star: "5",328 req1: "骨ç",329 req2: "é¢å
·",330 type: "weapon",331 },332 {333 name: "è´¯è¹ä¹æ§",334 req: "æ¼é»é¨é",335 region: "çæ",336 star: "5",337 req1: "骨ç",338 req2: "鸦å°",339 type: "weapon",340 },341 {342 name: "éèåº",343 req: "æ¼é»é¨é",344 region: "çæ",345 star: "4",346 req1: "骨ç",347 req2: "è±è",348 type: "weapon",349 },350 {351 name: "è¯ä½å¤å",352 req: "æ¼é»é¨é",353 region: "çæ",354 star: "4",355 req1: "骨ç",356 req2: "é¢å
·",357 type: "weapon",358 },359 {360 name: "è骨å",361 req: "æ¼é»é¨é",362 region: "çæ",363 star: "4",364 req1: "骨ç",365 req2: "è±è",366 type: "weapon",367 },368 {369 name: "é¢è½®å¼",370 req: "æ¼é»é¨é",371 region: "çæ",372 star: "4",373 req1: "骨ç",374 req2: "徽记",375 type: "weapon",376 },377 {378 name: "ä¸å½è¯¸æµ·å¾è°±",379 req: "æ¼é»é¨é",380 region: "çæ",381 star: "4",382 req1: "骨ç",383 req2: "å²è±å§",384 type: "weapon",385 },386 {387 name: "è¯ä½æé°",388 req: "æ¼é»é¨é",389 region: "çæ",390 star: "4",391 req1: "骨ç",392 req2: "é¢å
·",393 type: "weapon",394 },395 ],396 å¤äºå¯æ: [397 {398 name: "åç鸢",399 req: "å¤äºå¯æ",400 region: "çæ",401 star: "5",402 req1: "ç¥å",403 req2: "徽记",404 type: "weapon",405 },406 {407 name: "æ«å³°ä¹å",408 req: "å¤äºå¯æ",409 region: "çæ",410 star: "5",411 req1: "ç¥å",412 req2: "é¢å
·",413 type: "weapon",414 },415 {416 name: "é»å²©é¿å",417 req: "å¤äºå¯æ",418 region: "çæ",419 star: "4",420 req1: "ç¥å",421 req2: "ç®ç°",422 type: "weapon",423 },424 {425 name: "å£éé¾å",426 req: "å¤äºå¯æ",427 region: "çæ",428 star: "4",429 req1: "ç¥å",430 req2: "鸦å°",431 type: "weapon",432 },433 {434 name: "ç½å½±å",435 req: "å¤äºå¯æ",436 region: "çæ",437 star: "4",438 req1: "ç¥å",439 req2: "鸦å°",440 type: "weapon",441 },442 {443 name: "å¼è",444 req: "å¤äºå¯æ",445 region: "çæ",446 star: "4",447 req1: "ç¥å",448 req2: "é¢å
·",449 type: "weapon",450 },451 {452 name: "é»å²©æå¼",453 req: "å¤äºå¯æ",454 region: "çæ",455 star: "4",456 req1: "ç¥å",457 req2: "è±è",458 type: "weapon",459 },460 {461 name: "å£éæ¥æ",462 req: "å¤äºå¯æ",463 region: "çæ",464 star: "4",465 req1: "ç¥å",466 req2: "è±è",467 type: "weapon",468 },469 {470 name: "é»å²©ç»¯ç",471 req: "å¤äºå¯æ",472 region: "çæ",473 star: "4",474 req1: "ç¥å",475 req2: "ç»å·",476 type: "weapon",477 },478 {479 name: "æµæé",480 req: "å¤äºå¯æ",481 region: "çæ",482 star: "4",483 req1: "ç¥å",484 req2: "鸦å°",485 type: "weapon",486 },487 ],488 é¾æµ·äºé´: [489 {490 name: "æ å·¥ä¹å",491 req: "é¾æµ·äºé´",492 region: "çæ",493 star: "5",494 req1: "é¾è",495 req2: "鸦å°",496 type: "weapon",497 },498 {499 name: "è¯ä½æ©å²©",500 req: "é¾æµ·äºé´",501 region: "çæ",502 star: "4",503 req1: "é¾è",504 req2: "徽记",505 type: "weapon",506 },507 {508 name: "é»å²©æ©å",509 req: "é¾æµ·äºé´",510 region: "çæ",511 star: "4",512 req1: "é¾è",513 req2: "徽记",514 type: "weapon",515 },516 {517 name: "é¨è£",518 req: "é¾æµ·äºé´",519 region: "çæ",520 star: "4",521 req1: "é¾è",522 req2: "ç»å·",523 type: "weapon",524 },525 {526 name: "å®å®¤é¿å¼",527 req: "é¾æµ·äºé´",528 region: "çæ",529 star: "4",530 req1: "é¾è",531 req2: "鸦å°",532 type: "weapon",533 },534 {535 name: "è¯ä½æ¾¹æ",536 req: "é¾æµ·äºé´",537 region: "çæ",538 star: "4",539 req1: "é¾è",540 req2: "鸦å°",541 type: "weapon",542 },543 {544 name: "æå¿",545 req: "é¾æµ·äºé´",546 region: "çæ",547 star: "4",548 req1: "é¾è",549 req2: "é¢å
·",550 type: "weapon",551 },552 {553 name: "è¯ä½éç",554 req: "é¾æµ·äºé´",555 region: "çæ",556 star: "4",557 req1: "é¾è",558 req2: "ç®ç°",559 type: "weapon",560 },561 {562 name: "å£éçè¾°",563 req: "é¾æµ·äºé´",564 region: "çæ",565 star: "4",566 req1: "é¾è",567 req2: "ç»å·",568 type: "weapon",569 },570 {571 name: "é»å²©åºæª",572 req: "é¾æµ·äºé´",573 region: "çæ",574 star: "4",575 req1: "é¾è",576 req2: "徽记",577 type: "weapon",578 },579 {580 name: "å®å®¤çæª",581 req: "é¾æµ·äºé´",582 region: "çæ",583 star: "4",584 req1: "é¾è",585 req2: "徽记",586 type: "weapon",587 },588 ],589 },590 chars: {591 ç¹è£: [592 {593 name: "ä¸ä¸",594 req: "ç¹è£",595 region: "çæ",596 star: "5",597 req1: "ç»å·",598 req2: "åé£ä¹å°¾",599 type: "char",600 },601 {602 name: "å»æ´",603 req: "ç¹è£",604 region: "çæ",605 star: "5",606 req1: "è±è",607 req2: "åé£ä¹ç¯",608 type: "char",609 },610 {611 name: "åå
",612 req: "ç¹è£",613 region: "çæ",614 star: "4",615 req1: "徽记",616 req2: "åé£çéå£",617 type: "char",618 },619 ],620 é»é: [621 {622 name: "é离",623 req: "é»é",624 region: "çæ",625 star: "5",626 req1: "å²è±å§",627 req2: "å天ä¹é²¸Â·åªè§",628 type: "char",629 },630 {631 name: "è¾ç±",632 req: "é»é",633 region: "çæ",634 star: "4",635 req1: "鸦å°",636 req2: "å天ä¹é²¸Â·åªè§",637 type: "char",638 },639 {640 name: "åæ",641 req: "é»é",642 region: "çæ",643 star: "4",644 req1: "鸦å°",645 req2: "ä¸é£çåæ¯",646 type: "char",647 },648 {649 name: "è¡ç§",650 req: "é»é",651 region: "çæ",652 star: "4",653 req1: "é¢å
·",654 req2: "åé£ä¹å°¾",655 type: "char",656 },657 ],658 èªç±: [659 {660 name: "达达å©äº",661 req: "èªç±",662 region: "èå¾·",663 star: "5",664 req1: "徽记",665 req2: "éçä¹å·æ®ç",666 type: "char",667 },668 {669 name: "å¯è",670 req: "èªç±",671 region: "èå¾·",672 star: "5",673 req1: "ç»å·",674 req2: "åé£ä¹ç¯",675 type: "char",676 },677 {678 name: "å®æ",679 req: "èªç±",680 region: "èå¾·",681 star: "4",682 req1: "ç®ç°",683 req2: "ä¸é£çåæ¯",684 type: "char",685 },686 {687 name: "ç ç³",688 req: "èªç±",689 region: "èå¾·",690 star: "4",691 req1: "è±è",692 req2: "åé£çéå£",693 type: "char",694 },695 {696 name: "èèæ",697 req: "èªç±",698 region: "èå¾·",699 star: "4",700 req1: "ç»å·",701 req2: "åé£ä¹ç¯",702 type: "char",703 },704 {705 name: "迪奥å¨",706 req: "èªç±",707 region: "èå¾·",708 star: "4",709 req1: "ç®ç°",710 req2: "éçä¹å·æ®ç",711 type: "char",712 },713 ],714 è¯æ: [715 {716 name: "温迪",717 req: "è¯æ",718 region: "èå¾·",719 star: "5",720 req1: "å²è±å§",721 req2: "åé£ä¹å°¾",722 type: "char",723 },724 {725 name: "é¿è´å¤",726 req: "è¯æ",727 region: "èå¾·",728 star: "5",729 req1: "ç»å·",730 req2: "å天ä¹é²¸Â·åªè§",731 type: "char",732 },733 {734 name: "丽è",735 req: "è¯æ",736 region: "èå¾·",737 star: "4",738 req1: "å²è±å§",739 req2: "ä¸é£ä¹çª",740 type: "char",741 },742 {743 name: "å¯äº",744 req: "è¯æ",745 region: "èå¾·",746 star: "4",747 req1: "鸦å°",748 req2: "åé£çéå£",749 type: "char",750 },751 {752 name: "è²è°¢å°",753 req: "è¯æ",754 region: "èå¾·",755 star: "4",756 req1: "ç®ç°",757 req2: "åé£çéå£",758 type: "char",759 },760 ],761 æäº: [762 {763 name: "ç´",764 req: "æäº",765 region: "èå¾·",766 star: "5",767 req1: "é¢å
·",768 req2: "ä¸é£ä¹ç¿",769 type: "char",770 },771 {772 name: "è«å¨",773 req: "æäº",774 region: "èå¾·",775 star: "5",776 req1: "è±è",777 req2: "åé£ä¹ç¯",778 type: "char",779 },780 {781 name: "迪å¢å
",782 req: "æäº",783 region: "èå¾·",784 star: "5",785 req1: "徽记",786 req2: "ä¸é£ä¹ç¿",787 type: "char",788 },789 {790 name: "çå°¼ç¹",791 req: "æäº",792 region: "èå¾·",793 star: "4",794 req1: "鸦å°",795 req2: "ä¸é£ä¹ç¿",796 type: "char",797 },798 {799 name: "诺è¾å°",800 req: "æäº",801 region: "èå¾·",802 star: "4",803 req1: "é¢å
·",804 req2: "ä¸é£ä¹çª",805 type: "char",806 },807 {808 name: "é·æ³½",809 req: "æäº",810 region: "èå¾·",811 star: "4",812 req1: "é¢å
·",813 req2: "ä¸é£ä¹çª",814 type: "char",815 },816 ],817 å¤å³: [818 {819 name: "éäº",820 req: "å¤å³",821 region: "çæ",822 star: "4",823 req1: "é¢å
·",824 req2: "ä¸é£çåæ¯",825 type: "char",826 },827 {828 name: "é¦è±",829 req: "å¤å³",830 region: "çæ",831 star: "4",832 req1: "å²è±å§",833 req2: "ä¸é£ä¹çª",834 type: "char",835 },836 {837 name: "çé¨",838 req: "å¤å³",839 region: "çæ",840 star: "5",841 req1: "é¢å
·",842 req2: "æ¦ç¼ä¹é·å¤å½±",843 type: "char",844 },845 ],846 },847 char_breakthrough_stats: {848 20: {849 attrib_req_level: 1,850 attrib_req_count: 1,851 champ_req_count: 0,852 world_req_count: 3,853 world_mon_req_level: 1,854 world_mon_req_count: 3,855 mora: 20000,856 },857 40: {858 attrib_req_level: 2,859 attrib_req_count: 3,860 champ_req_count: 2,861 world_req_count: 10,862 world_mon_req_level: 1,863 world_mon_req_count: 15,864 mora: 40000,865 },866 50: {867 attrib_req_level: 2,868 attrib_req_count: 6,869 champ_req_count: 4,870 world_req_count: 20,871 world_mon_req_level: 2,872 world_mon_req_count: 12,873 mora: 60000,874 },875 60: {876 attrib_req_level: 3,877 attrib_req_count: 3,878 champ_req_count: 8,879 world_req_count: 30,880 world_mon_req_level: 2,881 world_mon_req_count: 18,882 mora: 80000,883 },884 70: {885 attrib_req_level: 3,886 attrib_req_count: 6,887 champ_req_count: 12,888 world_req_count: 45,889 world_mon_req_level: 3,890 world_mon_req_count: 12,891 mora: 100000,892 },893 80: {894 attrib_req_level: 4,895 attrib_req_count: 6,896 champ_req_count: 20,897 world_req_count: 60,898 world_mon_req_level: 3,899 world_mon_req_count: 24,900 mora: 120000,901 },902 },903 char_level_stats: [904 0,905 1000,906 1325,907 1700,908 2150,909 2625,910 3150,911 3725,912 4350,913 5000,914 5700,915 6450,916 7225,917 8050,918 8925,919 9825,920 10750,921 11725,922 12725,923 13775,924 14875,925 16800,926 18000,927 19250,928 20550,929 21875,930 23250,931 24650,932 26100,933 27575,934 29100,935 30650,936 32250,937 33875,938 35550,939 37250,940 38975,941 40750,942 42575,943 44425,944 46300,945 50625,946 52700,947 54775,948 56900,949 59075,950 61275,951 63525,952 65800,953 68125,954 70475,955 76500,956 79050,957 81650,958 84275,959 86950,960 89650,961 92400,962 95175,963 98000,964 100875,965 108950,966 112050,967 115175,968 118325,969 121525,970 124775,971 128075,972 131400,973 134775,974 138175,975 148700,976 152375,977 156075,978 159825,979 163600,980 167425,981 171300,982 175225,983 179175,984 183175,985 216225,986 243025,987 273100,988 306800,989 344600,990 386950,991 434425,992 487625,993 547200,994 ],995 char_trait_name: {996 åå
: {997 normal_attack: "æ®éæ»å»Â·åéæ·",998 elemental_skill: "ççå±",999 elemental_burst: "天æå´©ç",1000 },1001 åæ: {1002 normal_attack: "æ®éæ»å»Â·å¾æ¶",1003 elemental_skill: "æ浪",1004 elemental_burst: "æ«é·",1005 },1006 è¡ç§: {1007 normal_attack: "æ®éæ»å»Â·å¤ååæ³",1008 elemental_skill: "å¤åå·ç»é¨ç¬¼å±±",1009 elemental_burst: "å¤åå·è£é¨çè¹",1010 },1011 è¾ç±: {1012 normal_attack: "æ®éæ»å»Â·çè",1013 elemental_skill: "çæ
ææ«",1014 elemental_burst: "åéå®å¼¦",1015 },1016 éäº: {1017 normal_attack: "æ®éæ»å»Â·çéªåå¼",1018 elemental_skill: "éåå é·çµå",1019 elemental_burst: "çµå·äºå¼æè½",1020 },1021 é¦è±: {1022 normal_attack: "æ®éæ»å»Â·ç½æ¡å夫",1023 elemental_skill: "é
å·´åºå»",1024 elemental_burst: "æç«è½®",1025 },1026 ä¸ä¸: {1027 normal_attack: "æ®éæ»å»Â·äºæ¥å¤åæ³",1028 elemental_skill: "ä»æ³Â·å¯ç
鬼差",1029 elemental_burst: "ä»æ³Â·æè¦åº¦å",1030 },1031 å»æ´: {1032 normal_attack: "æ®éæ»å»Â·äºæ¥åæ³",1033 elemental_skill: "ææå½ä½",1034 elemental_burst: "天è¡å·¡æ¸¸",1035 },1036 é离: {1037 normal_attack: "æ®éæ»å»Â·å²©é¨",1038 elemental_skill: "å
ç´ ææ·å°å¿",1039 elemental_burst: "å
ç´ çå·天æ",1040 },1041 达达å©äº: {1042 normal_attack: "æ®éæ»å»Â·æé¨",1043 elemental_skill: "éçæ¦è£
·çæ¾",1044 elemental_burst: "ææ¶æ·尽çéª",1045 },1046 丽è: {1047 normal_attack: "æ®éæ»å»Â·æå°é·æ´",1048 elemental_skill: "èé·",1049 elemental_burst: "è·èçé·å
",1050 },1051 å¯äº: {1052 normal_attack: "æ®éæ»å»Â·ä»ªå
¸åæ¯",1053 elemental_skill: "éè¢",1054 elemental_burst: "åå½è½®è",1055 },1056 å®æ: {1057 normal_attack: "æ®éæ»å»Â·ç¥å°æ",1058 elemental_skill: "çå¼¹ç©å¶",1059 elemental_burst: "ç®é¨",1060 },1061 çå°¼ç¹: {1062 normal_attack: "æ®éæ»å»Â·å¥½è¿å",1063 elemental_skill: "çæ
è¿è½½",1064 elemental_burst: "ç¾å¦æ
ç¨",1065 },1066 ç ç³: {1067 normal_attack: "æ®éæ»å»Â·ç®å¼é£çµä½æ",1068 elemental_skill: "é£çµä½æ·éåé¶æ",1069 elemental_burst: "ç¦Â·é£çµä½æ·æä¼åæè´°å",1070 },1071 èèæ: {1072 normal_attack: "æ®éæ»å»Â·æ°´ä¹æµ
å±",1073 elemental_skill: "æ¼å±ï¼å¼å§âª",1074 elemental_burst: "éªèå¥è¿¹âª",1075 },1076 è²è°¢å°: {1077 normal_attack: "æ®éæ»å»Â·ç½ªçä¹ç¢",1078 elemental_skill: "å¤å·¡å½±ç¿¼",1079 elemental_burst: "è³å¤å¹»ç°",1080 },1081 诺è¾å°: {1082 normal_attack: "æ®éæ»å»Â·è¥¿é£åæ¯Â·å¥³ä»",1083 elemental_skill: "æ¤å¿é ",1084 elemental_burst: "大æ«é¤",1085 },1086 迪奥å¨: {1087 normal_attack: "æ®éæ»å»Â·ç人å°æ¯",1088 elemental_skill: "ç«çªå»å»",1089 elemental_burst: "æçç¹è°",1090 },1091 é·æ³½: {1092 normal_attack: "æ®éæ»å»Â·é¢è",1093 elemental_skill: "å©çªä¸èé·",1094 elemental_burst: "é·ç",1095 },1096 å¯è: {1097 normal_attack: "æ®éæ»å»Â·ç °ç °",1098 elemental_skill: "蹦蹦ç¸å¼¹",1099 elemental_burst: "è½°è½°ç«è±",1100 },1101 温迪: {1102 normal_attack: "æ®éæ»å»Â·ç¥ä»£å°æ¯",1103 elemental_skill: "é«å¤©ä¹æ",1104 elemental_burst: "é£ç¥ä¹è¯",1105 },1106 ç´: {1107 normal_attack: "æ®éæ»å»Â·è¥¿é£åæ¯",1108 elemental_skill: "é£åå",1109 elemental_burst: "è²å
¬è±ä¹é£",1110 },1111 è«å¨: {1112 normal_attack: "æ®éæ»å»Â·å æç¹ç ´",1113 elemental_skill: "æ°´ä¸å¹»æ¿",1114 elemental_burst: "æå½å®è½¨",1115 },1116 迪å¢å
: {1117 normal_attack: "æ®éæ»å»Â·æ·¬ç¼ä¹å",1118 elemental_skill: "éç°ä¹å",1119 elemental_burst: "é»æ",1120 },1121 é¿è´å¤: {1122 normal_attack: "æ®éæ»å»Â·è¥¿é£åæ¯Â·ç½",1123 elemental_skill: "åçæ³Â·æé é³å",1124 elemental_burst: "è¯çå¼Â·å¤§å°ä¹æ½®",1125 },1126 },1127 char_reqs: {1128 åå
: {1129 star: "4",1130 element: "岩",1131 attrib_req: "åç¢é»ç",1132 champ_attrib_req: "ç岩ä¹å¡",1133 world_req: "ççç¾å",1134 world_mon_req: "徽记",1135 trait_req: "åé£çéå£",1136 trait_daily: "ç¹è£",1137 },1138 åæ: {1139 star: "4",1140 element: "é·",1141 attrib_req: "æèç´«æ¶",1142 champ_attrib_req: "é·å
棱é",1143 world_req: "å¤æ³ç³",1144 world_mon_req: "鸦å°",1145 trait_req: "ä¸é£çåæ¯",1146 trait_daily: "é»é",1147 },1148 è¡ç§: {1149 star: "4",1150 element: "æ°´",1151 attrib_req: "涤åéé",1152 champ_attrib_req: "åæ°´ä¹å¿",1153 world_req: "é裳è±",1154 world_mon_req: "é¢å
·",1155 trait_req: "åé£ä¹å°¾",1156 trait_daily: "é»é",1157 },1158 è¾ç±: {1159 star: "4",1160 element: "ç«",1161 attrib_req: "çæ¿çç",1162 champ_attrib_req: "常çç«ç§",1163 world_req: "ççè¢",1164 world_mon_req: "鸦å°",1165 trait_req: "å天ä¹é²¸Â·åªè§",1166 trait_daily: "é»é",1167 },1168 éäº: {1169 star: "4",1170 element: "å°",1171 attrib_req: "ååå°ç",1172 champ_attrib_req: "æå¯ä¹æ ¸",1173 world_req: "ç³ç",1174 world_mon_req: "é¢å
·",1175 trait_req: "ä¸é£çåæ¯",1176 trait_daily: "å¤å³",1177 },1178 é¦è±: {1179 star: "4",1180 element: "ç«",1181 attrib_req: "çæ¿çç",1182 champ_attrib_req: "常çç«ç§",1183 world_req: "ç»äºæ¤æ¤",1184 world_mon_req: "å²è±å§",1185 trait_req: "ä¸é£ä¹çª",1186 trait_daily: "å¤å³",1187 },1188 ä¸ä¸: {1189 star: "5",1190 element: "å°",1191 attrib_req: "ååå°ç",1192 champ_attrib_req: "æå¯ä¹æ ¸",1193 world_req: "ççè¢",1194 world_mon_req: "ç»å·",1195 trait_req: "åé£ä¹å°¾",1196 trait_daily: "ç¹è£",1197 },1198 å»æ´: {1199 star: "5",1200 element: "é·",1201 attrib_req: "æèç´«æ¶",1202 champ_attrib_req: "é·å
棱é",1203 world_req: "ç³ç",1204 world_mon_req: "è±è",1205 trait_req: "åé£ä¹ç¯",1206 trait_daily: "ç¹è£",1207 },1208 é离: {1209 star: "5",1210 element: "岩",1211 attrib_req: "åç¢é»ç",1212 champ_attrib_req: "ç岩ä¹å¡",1213 world_req: "ç³ç",1214 world_mon_req: "å²è±å§",1215 trait_req: "å天ä¹é²¸Â·åªè§",1216 trait_daily: "é»é",1217 },1218 达达å©äº: {1219 star: "5",1220 element: "æ°´",1221 attrib_req: "涤åéé",1222 champ_attrib_req: "åæ°´ä¹å¿",1223 world_req: "æèº",1224 world_mon_req: "徽记",1225 trait_req: "éçä¹å·æ®ç",1226 trait_daily: "èªç±",1227 },1228 丽è: {1229 star: "4",1230 element: "é·",1231 attrib_req: "æèç´«æ¶",1232 champ_attrib_req: "é·å
棱é",1233 world_req: "è½è½è",1234 world_mon_req: "å²è±å§",1235 trait_req: "ä¸é£ä¹çª",1236 trait_daily: "è¯æ",1237 },1238 å¯äº: {1239 star: "4",1240 element: "å°",1241 attrib_req: "ååå°ç",1242 champ_attrib_req: "æå¯ä¹æ ¸",1243 world_req: "ååè²",1244 world_mon_req: "鸦å°",1245 trait_req: "åé£çéå£",1246 trait_daily: "è¯æ",1247 },1248 å®æ: {1249 star: "4",1250 element: "ç«",1251 attrib_req: "çæ¿çç",1252 champ_attrib_req: "常çç«ç§",1253 world_req: "å°ç¯è",1254 world_mon_req: "ç®ç°",1255 trait_req: "ä¸é£çåæ¯",1256 trait_daily: "èªç±",1257 },1258 çå°¼ç¹: {1259 star: "4",1260 element: "ç«",1261 attrib_req: "çæ¿çç",1262 champ_attrib_req: "常çç«ç§",1263 world_req: "é£è½¦è",1264 world_mon_req: "鸦å°",1265 trait_req: "ä¸é£ä¹ç¿",1266 trait_daily: "æäº",1267 },1268 ç ç³: {1269 star: "4",1270 element: "é£",1271 attrib_req: "èªå¨æ¾ç³",1272 champ_attrib_req: "é£é£ä¹ç§",1273 world_req: "é£è½¦è",1274 world_mon_req: "è±è",1275 trait_req: "åé£çéå£",1276 trait_daily: "èªç±",1277 },1278 èèæ: {1279 star: "4",1280 element: "æ°´",1281 attrib_req: "涤åéé",1282 champ_attrib_req: "åæ°´ä¹å¿",1283 world_req: "æ
é£èè",1284 world_mon_req: "ç»å·",1285 trait_req: "åé£ä¹ç¯",1286 trait_daily: "èªç±",1287 },1288 è²è°¢å°: {1289 star: "4",1290 element: "é·",1291 attrib_req: "æèç´«æ¶",1292 champ_attrib_req: "é·å
棱é",1293 world_req: "å°ç¯è",1294 world_mon_req: "ç®ç°",1295 trait_req: "åé£çéå£",1296 trait_daily: "è¯æ",1297 },1298 诺è¾å°: {1299 star: "4",1300 element: "岩",1301 attrib_req: "åç¢é»ç",1302 champ_attrib_req: "ç岩ä¹å¡",1303 world_req: "è½è½è",1304 world_mon_req: "é¢å
·",1305 trait_req: "ä¸é£ä¹çª",1306 trait_daily: "æäº",1307 },1308 迪奥å¨: {1309 star: "4",1310 element: "å°",1311 attrib_req: "ååå°ç",1312 champ_attrib_req: "æå¯ä¹æ ¸",1313 world_req: "ååè²",1314 world_mon_req: "ç®ç°",1315 trait_req: "éçä¹å·æ®ç",1316 trait_daily: "èªç±",1317 },1318 é·æ³½: {1319 star: "4",1320 element: "é·",1321 attrib_req: "æèç´«æ¶",1322 champ_attrib_req: "é·å
棱é",1323 world_req: "é©é©æ",1324 world_mon_req: "é¢å
·",1325 trait_req: "ä¸é£ä¹çª",1326 trait_daily: "æäº",1327 },1328 å¯è: {1329 star: "5",1330 element: "ç«",1331 attrib_req: "çæ¿çç",1332 champ_attrib_req: "常çç«ç§",1333 world_req: "æ
é£èè",1334 world_mon_req: "ç»å·",1335 trait_req: "åé£ä¹ç¯",1336 trait_daily: "èªç±",1337 },1338 温迪: {1339 star: "5",1340 element: "é£",1341 attrib_req: "èªå¨æ¾ç³",1342 champ_attrib_req: "é£é£ä¹ç§",1343 world_req: "å¡è¥¿èäºè±",1344 world_mon_req: "å²è±å§",1345 trait_req: "åé£ä¹å°¾",1346 trait_daily: "è¯æ",1347 },1348 ç´: {1349 star: "5",1350 element: "é£",1351 attrib_req: "èªå¨æ¾ç³",1352 champ_attrib_req: "é£é£ä¹ç§",1353 world_req: "è²å
¬è±ç±½",1354 world_mon_req: "é¢å
·",1355 trait_req: "ä¸é£ä¹ç¿",1356 trait_daily: "æäº",1357 },1358 è«å¨: {1359 star: "5",1360 element: "æ°´",1361 attrib_req: "涤åéé",1362 champ_attrib_req: "åæ°´ä¹å¿",1363 world_req: "æ
é£èè",1364 world_mon_req: "è±è",1365 trait_req: "åé£ä¹ç¯",1366 trait_daily: "æäº",1367 },1368 迪å¢å
: {1369 star: "5",1370 element: "ç«",1371 attrib_req: "çæ¿çç",1372 champ_attrib_req: "常çç«ç§",1373 world_req: "å°ç¯è",1374 world_mon_req: "徽记",1375 trait_req: "ä¸é£ä¹ç¿",1376 trait_daily: "æäº",1377 },1378 é¿è´å¤: {1379 star: "5",1380 element: "岩",1381 attrib_req: "åç¢é»ç",1382 champ_attrib_req: "ç岩ä¹å¡",1383 world_req: "å¡è¥¿èäºè±",1384 world_mon_req: "é¢å
·",1385 trait_req: "ä¸é£ä¹çª",1386 trait_daily: "è¯æ",1387 },1388 çé¨: {1389 star: "5",1390 element: "å°",1391 attrib_req: "ååå°ç",1392 champ_attrib_req: "æå¯ä¹æ ¸",1393 world_req: "æ¸
å¿",1394 world_mon_req: "è±è",1395 trait_req: "æ¦ç¼ä¹é·å¤å½±",1396 trait_daily: "å¤å³",1397 },1398 },1399 name_transform: {1400 åç¢é»ç1: "åç¢é»çç¢å±",1401 åç¢é»ç2: "åç¢é»çæç",1402 åç¢é»ç3: "åç¢é»çå",1403 åç¢é»ç4: "åç¢é»ç",1404 çç¨åé»1: "çç¨åé»ç¢å±",1405 çç¨åé»2: "çç¨åé»æç",1406 çç¨åé»3: "çç¨åé»å",1407 çç¨åé»4: "çç¨åé»",1408 çæ¿çç1: "çæ¿ççç¢å±",1409 çæ¿çç2: "çæ¿ççæç",1410 çæ¿çç3: "çæ¿ççå",1411 çæ¿çç4: "çæ¿çç",1412 ååå°ç1: "ååå°çç¢å±",1413 ååå°ç2: "ååå°çæç",1414 ååå°ç3: "ååå°çå",1415 ååå°ç4: "ååå°ç",1416 涤åéé1: "涤åééç¢å±",1417 涤åéé2: "涤åééæç",1418 涤åéé3: "涤åééå",1419 涤åéé4: "涤åéé",1420 æèç´«æ¶1: "æèç´«æ¶ç¢å±",1421 æèç´«æ¶2: "æèç´«æ¶æç",1422 æèç´«æ¶3: "æèç´«æ¶å",1423 æèç´«æ¶4: "æèç´«æ¶",1424 èªå¨æ¾ç³1: "èªå¨æ¾ç³ç¢å±",1425 èªå¨æ¾ç³2: "èªå¨æ¾ç³æç",1426 èªå¨æ¾ç³3: "èªå¨æ¾ç³å",1427 èªå¨æ¾ç³4: "èªå¨æ¾ç³",1428 é¢å
·1: "ç ´æçé¢å
·",1429 é¢å
·2: "污秽çé¢å
·",1430 é¢å
·3: "ä¸ç¥¥çé¢å
·",1431 徽记1: "æ°å
µç徽记",1432 徽记2: "士å®ç徽记",1433 徽记3: "å°å®ç徽记",1434 鸦å°1: "寻å®é¸¦å°",1435 鸦å°2: "èé¶é¸¦å°",1436 鸦å°3: "æ«é鸦å°",1437 å²è±å§1: "å²è±å§å液",1438 å²è±å§2: "å²è±å§æ¸
",1439 å²è±å§3: "å²è±å§åæµ",1440 ç»å·1: "导è½ç»å·",1441 ç»å·2: "å°éç»å·",1442 ç»å·3: "ç¦åç»å·",1443 è±è1: "éªéªè±è",1444 è±è2: "å¾®å
è±è",1445 è±è3: "åç´ è±è",1446 ç®ç°1: "ç¢åºçç®ç°",1447 ç®ç°2: "éå©çç®ç°",1448 ç®ç°3: "åæçç®ç°",1449 å°è1: "å°èçæ§æ",1450 å°è2: "å°èçæ¯å¶",1451 å°è3: "å°èçæ°è½",1452 骨ç1: "èå¼±ç骨ç",1453 骨ç2: "ç»å®ç骨ç",1454 骨ç3: "ç³åç骨ç",1455 å·è§1: "æ²éå·è§",1456 å·è§2: "é»éå·è§",1457 å·è§3: "é»æ¶å·è§",1458 æ··æ²1: "æ··æ²è£
ç½®",1459 æ··æ²2: "æ··æ²åè·¯",1460 æ··æ²3: "æ··æ²çå¿",1461 ç¥å1: "çå
µç¥å",1462 ç¥å2: "ç¹å·¥ç¥å",1463 ç¥å3: "ç£å¯é¿ç¥å",1464 é¾è1: "é¾èè±ç²",1465 é¾è2: "é¾èèå",1466 é¾è3: "é¾èç¯è¯",1467 åé£å¥ç¼1: "åé£å¥ç¼çå§é¾",1468 åé£å¥ç¼2: "åé£å¥ç¼çè£é½¿",1469 åé£å¥ç¼3: "åé£å¥ç¼çæç",1470 åé£å¥ç¼4: "åé£å¥ç¼çæ乡",1471 é«å¡å¤ç1: "é«å¡å¤ççç ´ç¦",1472 é«å¡å¤ç2: "é«å¡å¤ççæ®å£",1473 é«å¡å¤ç3: "é«å¡å¤ççæç",1474 é«å¡å¤ç4: "é«å¡å¤ççç¢æ¢¦",1475 å¤äºå¯æ1: "å¤äºå¯æçå
ç ",1476 å¤äºå¯æ2: "å¤äºå¯æçè¾å²©",1477 å¤äºå¯æ3: "å¤äºå¯æçå£éª¸",1478 å¤äºå¯æ4: "å¤äºå¯æçç¥ä½",1479 é¾æµ·äºé´1: "é¾æµ·äºé´çé
丹",1480 é¾æµ·äºé´2: "é¾æµ·äºé´çæ±ä¸¹",1481 é¾æµ·äºé´3: "é¾æµ·äºé´çé丹",1482 é¾æµ·äºé´4: "é¾æµ·äºé´ç转è¿",1483 ç®çæ士1: "ç®çæ士çæ·é",1484 ç®çæ士2: "ç®çæ士çéé¾",1485 ç®çæ士3: "ç®çæ士çé£é",1486 ç®çæ士4: "ç®çæ士ççæ³",1487 æ¼é»é¨é1: "æ¼é»é¨éçä¸ç²",1488 æ¼é»é¨é2: "æ¼é»é¨éçä¸ç",1489 æ¼é»é¨é3: "æ¼é»é¨éçä¸è§",1490 æ¼é»é¨é4: "æ¼é»é¨éçä¸å",1491 èªç±1: "èªç±çæ导",1492 èªç±2: "èªç±çæå¼",1493 èªç±3: "èªç±çå²å¦",1494 è¯æ1: "è¯æçæ导",1495 è¯æ2: "è¯æçæå¼",1496 è¯æ3: "è¯æçå²å¦",1497 æäº1: "æäºçæ导",1498 æäº2: "æäºçæå¼",1499 æäº3: "æäºçå²å¦",1500 ç¹è£1: "ç¹è£çæ导",1501 ç¹è£2: "ç¹è£çæå¼",1502 ç¹è£3: "ç¹è£çå²å¦",1503 å¤å³1: "å¤å³çæ导",1504 å¤å³2: "å¤å³çæå¼",1505 å¤å³3: "å¤å³çå²å¦",1506 é»é1: "é»éçæ导",1507 é»é2: "é»éçæå¼",1508 é»é3: "é»éçå²å¦",1509 },1510 item_rarity: {1511 åç¢é»çç¢å±: 2,1512 åç¢é»çæç: 3,1513 åç¢é»çå: 4,1514 åç¢é»ç: 5,1515 çç¨åé»ç¢å±: 2,1516 çç¨åé»æç: 3,1517 çç¨åé»å: 4,1518 çç¨åé»: 5,1519 çæ¿ççç¢å±: 2,1520 çæ¿ççæç: 3,1521 çæ¿ççå: 4,1522 çæ¿çç: 5,1523 ååå°çç¢å±: 2,1524 ååå°çæç: 3,1525 ååå°çå: 4,1526 ååå°ç: 5,1527 涤åééç¢å±: 2,1528 涤åééæç: 3,1529 涤åééå: 4,1530 涤åéé: 5,1531 æèç´«æ¶ç¢å±: 2,1532 æèç´«æ¶æç: 3,1533 æèç´«æ¶å: 4,1534 æèç´«æ¶: 5,1535 èªå¨æ¾ç³ç¢å±: 2,1536 èªå¨æ¾ç³æç: 3,1537 èªå¨æ¾ç³å: 4,1538 èªå¨æ¾ç³: 5,1539 ç ´æçé¢å
·: 1,1540 污秽çé¢å
·: 2,1541 ä¸ç¥¥çé¢å
·: 3,1542 æ°å
µç徽记: 1,1543 士å®ç徽记: 2,1544 å°å®ç徽记: 3,1545 寻å®é¸¦å°: 1,1546 èé¶é¸¦å°: 2,1547 æ«é鸦å°: 3,1548 å²è±å§å液: 1,1549 å²è±å§æ¸
: 2,1550 å²è±å§åæµ: 3,1551 导è½ç»å·: 1,1552 å°éç»å·: 2,1553 ç¦åç»å·: 3,1554 éªéªè±è: 1,1555 å¾®å
è±è: 2,1556 åç´ è±è: 3,1557 ç¢åºçç®ç°: 1,1558 éå©çç®ç°: 2,1559 åæçç®ç°: 3,1560 å°èçæ§æ: 2,1561 å°èçæ¯å¶: 3,1562 å°èçæ°è½: 4,1563 èå¼±ç骨ç: 2,1564 ç»å®ç骨ç: 3,1565 ç³åç骨ç: 4,1566 æ²éå·è§: 2,1567 é»éå·è§: 3,1568 é»æ¶å·è§: 4,1569 æ··æ²è£
ç½®: 2,1570 æ··æ²åè·¯: 3,1571 æ··æ²çå¿: 4,1572 çå
µç¥å: 2,1573 ç¹å·¥ç¥å: 3,1574 ç£å¯é¿ç¥å: 4,1575 é¾èè±ç²: 2,1576 é¾èèå: 3,1577 é¾èç¯è¯: 4,1578 ä¸é£ä¹çª: 5,1579 ä¸é£ä¹ç¿: 5,1580 ä¸é£çåæ¯: 5,1581 åé£ä¹å°¾: 5,1582 åé£ä¹ç¯: 5,1583 åé£çéå£: 5,1584 "å天ä¹é²¸Â·åªè§": 5,1585 "éçä¹å·æ®ç": 5,1586 "æ¦ç¼ä¹é·å¤å½±": 5,1587 ç岩ä¹å¡: 4,1588 é·å
棱é: 4,1589 åæ°´ä¹å¿: 4,1590 常çç«ç§: 4,1591 æå¯ä¹æ ¸: 4,1592 é£é£ä¹ç§: 4,1593 ååè²: 1,1594 è½è½è: 1,1595 å¡è¥¿èäºè±: 1,1596 å°ç¯è: 1,1597 æ
é£èè: 1,1598 è²å
¬è±ç±½: 1,1599 é©é©æ: 1,1600 é£è½¦è: 1,1601 å¤æ³ç³: 1,1602 ç»äºæ¤æ¤: 1,1603 é裳è±: 1,1604 ççç¾å: 1,1605 æ¸
å¿: 1,1606 æèº: 1,1607 ççè¢: 1,1608 ç³ç: 1,1609 åé£å¥ç¼çå§é¾: 2,1610 åé£å¥ç¼çè£é½¿: 3,1611 åé£å¥ç¼çæç: 4,1612 åé£å¥ç¼çæ乡: 5,1613 é«å¡å¤ççç ´ç¦: 2,1614 é«å¡å¤ççæ®å£: 3,1615 é«å¡å¤ççæç: 4,1616 é«å¡å¤ççç¢æ¢¦: 5,1617 å¤äºå¯æçå
ç : 2,1618 å¤äºå¯æçè¾å²©: 3,1619 å¤äºå¯æçå£éª¸: 4,1620 å¤äºå¯æçç¥ä½: 5,1621 é¾æµ·äºé´çé
丹: 2,1622 é¾æµ·äºé´çæ±ä¸¹: 3,1623 é¾æµ·äºé´çé丹: 4,1624 é¾æµ·äºé´ç转è¿: 5,1625 ç®çæ士çæ·é: 2,1626 ç®çæ士çéé¾: 3,1627 ç®çæ士çé£é: 4,1628 ç®çæ士ççæ³: 5,1629 æ¼é»é¨éçä¸ç²: 2,1630 æ¼é»é¨éçä¸ç: 3,1631 æ¼é»é¨éçä¸è§: 4,1632 æ¼é»é¨éçä¸å: 5,1633 èªç±çæ导: 2,1634 èªç±çæå¼: 3,1635 èªç±çå²å¦: 4,1636 è¯æçæ导: 2,1637 è¯æçæå¼: 3,1638 è¯æçå²å¦: 4,1639 æäºçæ导: 2,1640 æäºçæå¼: 3,1641 æäºçå²å¦: 4,1642 ç¹è£çæ导: 2,1643 ç¹è£çæå¼: 3,1644 ç¹è£çå²å¦: 4,1645 å¤å³çæ导: 2,1646 å¤å³çæå¼: 3,1647 å¤å³çå²å¦: 4,1648 é»éçæ导: 2,1649 é»éçæå¼: 3,1650 é»éçå²å¦: 4,1651 æºè¯ä¹å: 5,1652 },1653 traits_leeling_stats: {1654 2: {1655 daily_req_level: 1,1656 daily_req_count: 3,1657 world_mon_req_level: 1,1658 world_mon_req_count: 6,1659 boss_req_count: 0,1660 crown_req_count: 0,1661 mora: 12500,1662 },1663 3: {1664 daily_req_level: 2,1665 daily_req_count: 2,1666 world_mon_req_level: 2,1667 world_mon_req_count: 3,1668 boss_req_count: 0,1669 crown_req_count: 0,1670 mora: 17500,1671 },1672 4: {1673 daily_req_level: 2,1674 daily_req_count: 4,1675 world_mon_req_level: 2,1676 world_mon_req_count: 4,1677 boss_req_count: 0,1678 crown_req_count: 0,1679 mora: 25000,1680 },1681 5: {1682 daily_req_level: 2,1683 daily_req_count: 6,1684 world_mon_req_level: 2,1685 world_mon_req_count: 6,1686 boss_req_count: 0,1687 crown_req_count: 0,1688 mora: 30000,1689 },1690 6: {1691 daily_req_level: 2,1692 daily_req_count: 9,1693 world_mon_req_level: 2,1694 world_mon_req_count: 9,1695 boss_req_count: 0,1696 crown_req_count: 0,1697 mora: 37500,1698 },1699 7: {1700 daily_req_level: 3,1701 daily_req_count: 4,1702 world_mon_req_level: 3,1703 world_mon_req_count: 4,1704 boss_req_count: 1,1705 crown_req_count: 0,1706 mora: 120000,1707 },1708 8: {1709 daily_req_level: 3,1710 daily_req_count: 6,1711 world_mon_req_level: 3,1712 world_mon_req_count: 6,1713 boss_req_count: 1,1714 crown_req_count: 0,1715 mora: 260000,1716 },1717 9: {1718 daily_req_level: 3,1719 daily_req_count: 12,1720 world_mon_req_level: 3,1721 world_mon_req_count: 9,1722 boss_req_count: 2,1723 crown_req_count: 0,1724 mora: 450000,1725 },1726 10: {1727 daily_req_level: 3,1728 daily_req_count: 16,1729 world_mon_req_level: 3,1730 world_mon_req_count: 16,1731 boss_req_count: 2,1732 crown_req_count: 1,1733 mora: 700000,1734 },1735 },1736 weapon_breakthrough_stats: {1737 4: {1738 20: {1739 daily_req_level: 1,1740 daily_req_count: 3,1741 champ_attrib_req_level: 1,1742 champ_attrib_req_count: 3,1743 world_mon_req_level: 1,1744 world_mon_req_count: 2,1745 mora: 5000,1746 },1747 40: {1748 daily_req_level: 2,1749 daily_req_count: 3,1750 champ_attrib_req_level: 1,1751 champ_attrib_req_count: 12,1752 world_mon_req_level: 1,1753 world_mon_req_count: 8,1754 mora: 15000,1755 },1756 50: {1757 daily_req_level: 2,1758 daily_req_count: 6,1759 champ_attrib_req_level: 2,1760 champ_attrib_req_count: 6,1761 world_mon_req_level: 2,1762 world_mon_req_count: 6,1763 mora: 20000,1764 },1765 60: {1766 daily_req_level: 3,1767 daily_req_count: 3,1768 champ_attrib_req_level: 2,1769 champ_attrib_req_count: 12,1770 world_mon_req_level: 2,1771 world_mon_req_count: 9,1772 mora: 30000,1773 },1774 70: {1775 daily_req_level: 3,1776 daily_req_count: 6,1777 champ_attrib_req_level: 3,1778 champ_attrib_req_count: 9,1779 world_mon_req_level: 3,1780 world_mon_req_count: 6,1781 mora: 35000,1782 },1783 80: {1784 daily_req_level: 4,1785 daily_req_count: 4,1786 champ_attrib_req_level: 3,1787 champ_attrib_req_count: 18,1788 world_mon_req_level: 3,1789 world_mon_req_count: 12,1790 mora: 45000,1791 },1792 },1793 5: {1794 20: {1795 daily_req_level: 1,1796 daily_req_count: 5,1797 champ_attrib_req_level: 1,1798 champ_attrib_req_count: 5,1799 world_mon_req_level: 1,1800 world_mon_req_count: 3,1801 mora: 10000,1802 },1803 40: {1804 daily_req_level: 2,1805 daily_req_count: 5,1806 champ_attrib_req_level: 1,1807 champ_attrib_req_count: 18,1808 world_mon_req_level: 1,1809 world_mon_req_count: 12,1810 mora: 20000,1811 },1812 50: {1813 daily_req_level: 2,1814 daily_req_count: 9,1815 champ_attrib_req_level: 2,1816 champ_attrib_req_count: 9,1817 world_mon_req_level: 2,1818 world_mon_req_count: 9,1819 mora: 30000,1820 },1821 60: {1822 daily_req_level: 3,1823 daily_req_count: 5,1824 champ_attrib_req_level: 2,1825 champ_attrib_req_count: 18,1826 world_mon_req_level: 2,1827 world_mon_req_count: 3,1828 mora: 45000,1829 },1830 70: {1831 daily_req_level: 3,1832 daily_req_count: 9,1833 champ_attrib_req_level: 3,1834 champ_attrib_req_count: 14,1835 world_mon_req_level: 3,1836 world_mon_req_count: 9,1837 mora: 55000,1838 },1839 80: {1840 daily_req_level: 4,1841 daily_req_count: 6,1842 champ_attrib_req_level: 3,1843 champ_attrib_req_count: 27,1844 world_mon_req_level: 3,1845 world_mon_req_count: 18,1846 mora: 65000,1847 },1848 },1849 },1850 weapon_level_stats: {1851 4: [1852 0,1853 400,1854 625,1855 900,1856 1200,1857 1550,1858 1950,1859 2350,1860 2800,1861 3300,1862 3800,1863 4350,1864 4925,1865 5525,1866 6150,1867 6800,1868 7500,1869 8200,1870 8950,1871 9725,1872 10500,1873 11900,1874 12775,1875 13700,1876 14650,1877 15625,1878 16625,1879 17650,1880 18700,1881 19775,1882 20900,1883 22025,1884 23200,1885 24375,1886 25600,1887 26825,1888 28100,1889 29400,1890 30725,1891 32075,1892 33425,1893 36575,1894 38075,1895 39600,1896 41150,1897 42725,1898 44325,1899 45950,1900 47600,1901 49300,1902 51000,1903 55375,1904 57225,1905 59100,1906 61025,1907 62950,1908 64925,1909 66900,1910 68925,1911 70975,1912 73050,1913 78900,1914 81125,1915 83400,1916 85700,1917 88025,1918 90375,1919 92750,1920 95150,1921 97575,1922 100050,1923 107675,1924 110325,1925 113000,1926 115700,1927 118425,1928 121200,1929 124000,1930 126825,1931 129675,1932 132575,1933 156475,1934 175875,1935 197600,1936 221975,1937 249300,1938 279950,1939 314250,1940 352700,1941 395775,1942 ],1943 5: [1944 0,1945 600,1946 950,1947 1350,1948 1800,1949 2325,1950 2925,1951 3525,1952 4200,1953 4950,1954 5700,1955 6525,1956 7400,1957 8300,1958 9225,1959 10200,1960 11250,1961 12300,1962 13425,1963 14600,1964 15750,1965 17850,1966 19175,1967 20550,1968 21975,1969 23450,1970 24950,1971 26475,1972 28050,1973 29675,1974 31350,1975 33050,1976 34800,1977 36575,1978 38400,1979 40250,1980 42150,1981 44100,1982 46100,1983 48125,1984 50150,1985 54875,1986 57125,1987 59400,1988 61725,1989 64100,1990 66500,1991 68925,1992 71400,1993 73950,1994 76500,1995 83075,1996 85850,1997 88650,1998 91550,1999 94425,2000 97400,2001 100350,2002 103400,2003 106475,2004 109575,2005 118350,2006 121700,2007 125100,2008 128550,2009 132050,2010 135575,2011 139125,2012 142725,2013 146375,2014 150075,2015 161525,2016 165500,2017 169500,2018 173550,2019 177650,2020 181800,2021 186000,2022 190250,2023 194525,2024 198875,2025 234725,2026 263825,2027 296400,2028 332975,2029 373950,2030 419925,2031 471375,2032 529050,2033 593675,2034 ],2035 },2036 weapon_reqs: {2037 é£é¹°å: {2038 star: "5",2039 form: "åæå",2040 daily_req: "é«å¡å¤ç",2041 champ_attrib_req: "å·è§",2042 world_mon_req: "ç®ç°",2043 },2044 天空ä¹å: {2045 star: "5",2046 form: "åæå",2047 daily_req: "åé£å¥ç¼",2048 champ_attrib_req: "å°è",2049 world_mon_req: "å²è±å§",2050 },2051 æ«å³°ä¹å: {2052 star: "5",2053 form: "åæå",2054 daily_req: "å¤äºå¯æ",2055 champ_attrib_req: "ç¥å",2056 world_mon_req: "é¢å
·",2057 },2058 å£éé¾å: {2059 star: "4",2060 form: "åæå",2061 daily_req: "å¤äºå¯æ",2062 champ_attrib_req: "ç¥å",2063 world_mon_req: "鸦å°",2064 },2065 西é£å: {2066 star: "4",2067 form: "åæå",2068 daily_req: "é«å¡å¤ç",2069 champ_attrib_req: "å·è§",2070 world_mon_req: "ç®ç°",2071 },2072 ç¬å: {2073 star: "4",2074 form: "åæå",2075 daily_req: "åé£å¥ç¼",2076 champ_attrib_req: "å°è",2077 world_mon_req: "å²è±å§",2078 },2079 é»å: {2080 star: "4",2081 form: "åæå",2082 daily_req: "åé£å¥ç¼",2083 champ_attrib_req: "å°è",2084 world_mon_req: "å²è±å§",2085 },2086 ç¥ç¤¼å: {2087 star: "4",2088 form: "åæå",2089 daily_req: "ç®çæ士",2090 champ_attrib_req: "æ··æ²",2091 world_mon_req: "ç»å·",2092 },2093 éèåº: {2094 star: "4",2095 form: "åæå",2096 daily_req: "æ¼é»é¨é",2097 champ_attrib_req: "骨ç",2098 world_mon_req: "è±è",2099 },2100 è¯ä½æ©å²©: {2101 star: "4",2102 form: "åæå",2103 daily_req: "é¾æµ·äºé´",2104 champ_attrib_req: "é¾è",2105 world_mon_req: "徽记",2106 },2107 å®å®¤é¿å: {2108 star: "4",2109 form: "åæå",2110 daily_req: "é«å¡å¤ç",2111 champ_attrib_req: "å·è§",2112 world_mon_req: "é¢å
·",2113 },2114 é»å²©é¿å: {2115 star: "4",2116 form: "åæå",2117 daily_req: "å¤äºå¯æ",2118 champ_attrib_req: "ç¥å",2119 world_mon_req: "ç®ç°",2120 },2121 è
æ®ä¹å: {2122 star: "4",2123 form: "åæå",2124 daily_req: "ç®çæ士",2125 champ_attrib_req: "å·è§",2126 world_mon_req: "徽记",2127 },2128 åé£åå
¸: {2129 star: "5",2130 form: "æ³å¨",2131 daily_req: "ç®çæ士",2132 champ_attrib_req: "æ··æ²",2133 world_mon_req: "å²è±å§",2134 },2135 天空ä¹å·: {2136 star: "5",2137 form: "æ³å¨",2138 daily_req: "åé£å¥ç¼",2139 champ_attrib_req: "å°è",2140 world_mon_req: "ç®ç°",2141 },2142 å°ä¸ä¹é: {2143 star: "5",2144 form: "æ³å¨",2145 daily_req: "æ¼é»é¨é",2146 champ_attrib_req: "骨ç",2147 world_mon_req: "é¢å
·",2148 },2149 西é£ç§å
¸: {2150 star: "4",2151 form: "æ³å¨",2152 daily_req: "é«å¡å¤ç",2153 champ_attrib_req: "å·è§",2154 world_mon_req: "ç»å·",2155 },2156 å£éæ¥æ: {2157 star: "4",2158 form: "æ³å¨",2159 daily_req: "å¤äºå¯æ",2160 champ_attrib_req: "ç¥å",2161 world_mon_req: "è±è",2162 },2163 ç¥ç¤¼æ®ç« : {2164 star: "4",2165 form: "æ³å¨",2166 daily_req: "ç®çæ士",2167 champ_attrib_req: "æ··æ²",2168 world_mon_req: "鸦å°",2169 },2170 è¯ä½éç: {2171 star: "4",2172 form: "æ³å¨",2173 daily_req: "é¾æµ·äºé´",2174 champ_attrib_req: "é¾è",2175 world_mon_req: "ç®ç°",2176 },2177 ä¸å½è¯¸æµ·å¾è°±: {2178 star: "4",2179 form: "æ³å¨",2180 daily_req: "æ¼é»é¨é",2181 champ_attrib_req: "骨ç",2182 world_mon_req: "å²è±å§",2183 },2184 æå¿: {2185 star: "4",2186 form: "æ³å¨",2187 daily_req: "é¾æµ·äºé´",2188 champ_attrib_req: "é¾è",2189 world_mon_req: "é¢å
·",2190 },2191 æµæµªä¹ç« : {2192 star: "4",2193 form: "æ³å¨",2194 daily_req: "åé£å¥ç¼",2195 champ_attrib_req: "å°è",2196 world_mon_req: "é¢å
·",2197 },2198 å®å®¤ç§æ³å½: {2199 star: "4",2200 form: "æ³å¨",2201 daily_req: "é«å¡å¤ç",2202 champ_attrib_req: "å·è§",2203 world_mon_req: "徽记",2204 },2205 é»å²©ç»¯ç: {2206 star: "4",2207 form: "æ³å¨",2208 daily_req: "å¤äºå¯æ",2209 champ_attrib_req: "ç¥å",2210 world_mon_req: "ç»å·",2211 },2212 天空ä¹ç¿¼: {2213 star: "5",2214 form: "å¼",2215 daily_req: "åé£å¥ç¼",2216 champ_attrib_req: "å°è",2217 world_mon_req: "ç®ç°",2218 },2219 é¿è«æ¯ä¹å¼: {2220 star: "5",2221 form: "å¼",2222 daily_req: "ç®çæ士",2223 champ_attrib_req: "æ··æ²",2224 world_mon_req: "å²è±å§",2225 },2226 ç»å¼¦: {2227 star: "4",2228 form: "å¼",2229 daily_req: "é«å¡å¤ç",2230 champ_attrib_req: "å·è§",2231 world_mon_req: "ç®ç°",2232 },2233 èç¿ çå¼: {2234 star: "4",2235 form: "å¼",2236 daily_req: "é«å¡å¤ç",2237 champ_attrib_req: "å·è§",2238 world_mon_req: "ç®ç°",2239 },2240 ç¥ç¤¼å¼: {2241 star: "4",2242 form: "å¼",2243 daily_req: "åé£å¥ç¼",2244 champ_attrib_req: "å°è",2245 world_mon_req: "å²è±å§",2246 },2247 西é£çå¼: {2248 star: "4",2249 form: "å¼",2250 daily_req: "ç®çæ士",2251 champ_attrib_req: "æ··æ²",2252 world_mon_req: "è±è",2253 },2254 å®å®¤é¿å¼: {2255 star: "4",2256 form: "å¼",2257 daily_req: "ç®çæ士",2258 champ_attrib_req: "æ··æ²",2259 world_mon_req: "ç»å·",2260 },2261 é¢è½®å¼: {2262 star: "4",2263 form: "å¼",2264 daily_req: "æ¼é»é¨é",2265 champ_attrib_req: "骨ç",2266 world_mon_req: "徽记",2267 },2268 è¯ä½æ¾¹æ: {2269 star: "4",2270 form: "å¼",2271 daily_req: "é¾æµ·äºé´",2272 champ_attrib_req: "é¾è",2273 world_mon_req: "鸦å°",2274 },2275 å¼è: {2276 star: "4",2277 form: "å¼",2278 daily_req: "å¤äºå¯æ",2279 champ_attrib_req: "ç¥å",2280 world_mon_req: "é¢å
·",2281 },2282 é»å²©æå¼: {2283 star: "4",2284 form: "å¼",2285 daily_req: "å¤äºå¯æ",2286 champ_attrib_req: "ç¥å",2287 world_mon_req: "è±è",2288 },2289 ç¼çæ«è·¯: {2290 star: "5",2291 form: "åæå",2292 daily_req: "ç®çæ士",2293 champ_attrib_req: "æ··æ²",2294 world_mon_req: "ç»å·",2295 },2296 天空ä¹å²: {2297 star: "5",2298 form: "åæå",2299 daily_req: "åé£å¥ç¼",2300 champ_attrib_req: "å°è",2301 world_mon_req: "å²è±å§",2302 },2303 è¯ä½å¤å: {2304 star: "4",2305 form: "åæå",2306 daily_req: "æ¼é»é¨é",2307 champ_attrib_req: "骨ç",2308 world_mon_req: "é¢å
·",2309 },2310 å®å®¤å¤§å: {2311 star: "4",2312 form: "åæå",2313 daily_req: "ç®çæ士",2314 champ_attrib_req: "æ··æ²",2315 world_mon_req: "å²è±å§",2316 },2317 è骨å: {2318 star: "4",2319 form: "åæå",2320 daily_req: "æ¼é»é¨é",2321 champ_attrib_req: "骨ç",2322 world_mon_req: "è±è",2323 },2324 ç½å½±å: {2325 star: "4",2326 form: "åæå",2327 daily_req: "å¤äºå¯æ",2328 champ_attrib_req: "ç¥å",2329 world_mon_req: "鸦å°",2330 },2331 西é£å¤§å: {2332 star: "4",2333 form: "åæå",2334 daily_req: "ç®çæ士",2335 champ_attrib_req: "æ··æ²",2336 world_mon_req: "徽记",2337 },2338 é¨è£: {2339 star: "4",2340 form: "åæå",2341 daily_req: "é¾æµ·äºé´",2342 champ_attrib_req: "é¾è",2343 world_mon_req: "ç»å·",2344 },2345 ç¥ç¤¼å¤§å: {2346 star: "4",2347 form: "åæå",2348 daily_req: "åé£å¥ç¼",2349 champ_attrib_req: "å°è",2350 world_mon_req: "ç®ç°",2351 },2352 éå: {2353 star: "4",2354 form: "åæå",2355 daily_req: "é«å¡å¤ç",2356 champ_attrib_req: "å·è§",2357 world_mon_req: "è±è",2358 },2359 é»å²©æ©å: {2360 star: "4",2361 form: "åæå",2362 daily_req: "é¾æµ·äºé´",2363 champ_attrib_req: "é¾è",2364 world_mon_req: "徽记",2365 },2366 æ å·¥ä¹å: {2367 star: "5",2368 form: "åæå",2369 daily_req: "é¾æµ·äºé´",2370 champ_attrib_req: "é¾è",2371 world_mon_req: "鸦å°",2372 },2373 åç鸢: {2374 star: "5",2375 form: "é¿ææ¦å¨",2376 daily_req: "å¤äºå¯æ",2377 champ_attrib_req: "ç¥å",2378 world_mon_req: "徽记",2379 },2380 天空ä¹è: {2381 star: "5",2382 form: "é¿ææ¦å¨",2383 daily_req: "ç®çæ士",2384 champ_attrib_req: "æ··æ²",2385 world_mon_req: "ç»å·",2386 },2387 æµæé: {2388 star: "4",2389 form: "é¿ææ¦å¨",2390 daily_req: "å¤äºå¯æ",2391 champ_attrib_req: "ç¥å",2392 world_mon_req: "鸦å°",2393 },2394 è¯ä½æé°: {2395 star: "4",2396 form: "é¿ææ¦å¨",2397 daily_req: "æ¼é»é¨é",2398 champ_attrib_req: "骨ç",2399 world_mon_req: "é¢å
·",2400 },2401 西é£é¿æª: {2402 star: "4",2403 form: "é¿ææ¦å¨",2404 daily_req: "ç®çæ士",2405 champ_attrib_req: "æ··æ²",2406 world_mon_req: "å²è±å§",2407 },2408 å£éçè¾°: {2409 star: "4",2410 form: "é¿ææ¦å¨",2411 daily_req: "é¾æµ·äºé´",2412 champ_attrib_req: "é¾è",2413 world_mon_req: "ç»å·",2414 },2415 å³æä¹æª: {2416 star: "4",2417 form: "é¿ææ¦å¨",2418 daily_req: "åé£å¥ç¼",2419 champ_attrib_req: "å°è",2420 world_mon_req: "è±è",2421 },2422 é»å²©åºæª: {2423 star: "4",2424 form: "é¿ææ¦å¨",2425 daily_req: "é¾æµ·äºé´",2426 champ_attrib_req: "é¾è",2427 world_mon_req: "徽记",2428 },2429 è´¯è¹ä¹æ§: {2430 star: "5",2431 form: "é¿ææ¦å¨",2432 daily_req: "æ¼é»é¨é",2433 champ_attrib_req: "骨ç",2434 world_mon_req: "鸦å°",2435 },2436 éªè¬çæé¶: {2437 star: "4",2438 form: "åæå",2439 daily_req: "é«å¡å¤ç",2440 champ_attrib_req: "å·è§",2441 world_mon_req: "å²è±å§",2442 },2443 é¾èé¿æª: {2444 star: "4",2445 form: "é¿ææ¦å¨",2446 daily_req: "åé£å¥ç¼",2447 champ_attrib_req: "é¾è",2448 world_mon_req: "徽记",2449 },2450 å¿å¬ä¹æ: {2451 star: "4",2452 form: "æ³å¨",2453 daily_req: "ç®çæ士",2454 champ_attrib_req: "æ··æ²",2455 world_mon_req: "è±è",2456 },2457 },...
Common.js
Source:Common.js
1function Posts(host) {2 this.host = host || "http://www.boostme.cn:80";3 this.host = "";4}5Posts.prototype = {6 server : function() {7 return this.host;8 },9 fetch_list : function(req_data_dict, callback_func) {10 var req_url = this.server() + "/posts/ajax_fetch_list";11 async_request(req_url, "get", req_data_dict, function(response) {12 callback_func(response);13 });14 },15 fetch_info : function(req_data_dict, callback_func) {16 var req_url = this.server() + "/posts/ajax_fetch_info";17 async_request(req_url, "get", req_data_dict, function(response) {18 callback_func(response);19 });20 },21 add : function(req_data_dict, callback_func) {22 var req_url = this.server() + "/posts/ajax_add";23 async_request(req_url, "post", req_data_dict, function(response) {24 callback_func(response);25 });26 },27 answer : function(req_data_dict, callback_func) {28 var req_url = this.server() + "/posts/ajax_answer";29 async_request(req_url, "post", req_data_dict, function(response) {30 callback_func(response);31 });32 },33 comment : function(req_data_dict, callback_func) {34 var req_url = this.server() + "/posts/ajax_comment";35 async_request(req_url, "post", req_data_dict, function(response) {36 callback_func(response);37 });38 },39 fetch_comment_list : function(req_data_dict, callback_func) {40 var req_url = this.server() + "/posts/ajax_fetch_comment_list";41 async_request(req_url, "get", req_data_dict, function(response) {42 callback_func(response);43 });44 },45}46Posts.prototype.constructor = Posts;47function Answer(host) {48 this.host = host || "http://www.boostme.cn:80";49 this.host = "";50}51Answer.prototype = {52 server : function() {53 return this.host;54 },55 fetch_list : function(req_data_dict, callback_func) {56 var req_url = this.server() + "/anwser/ajax_fetch_list";57 async_request(req_url, "get", req_data_dict, function(response) {58 callback_func(response);59 });60 },61 fetch_info : function(req_data_dict, callback_func) {62 var req_url = this.server() + "/answer/ajax_fetch_info";63 async_request(req_url, "get", req_data_dict, function(response) {64 callback_func(response);65 });66 },67 has_support : function(req_data_dict, callback_func) {68 var req_url = this.server() + "/answer/ajax_has_support";69 async_request(req_url, "get", req_data_dict, function(response) {70 callback_func(response);71 });72 },73 add_support : function(req_data_dict, callback_func) {74 var req_url = this.server() + "/answer/ajax_add_support";75 async_request(req_url, "post", req_data_dict, function(response) {76 callback_func(response);77 });78 },79 get_support : function(req_data_dict, callback_func) {80 var req_url = this.server() + "/answer/ajax_get_support";81 async_request(req_url, "get", req_data_dict, function(response) {82 callback_func(response);83 });84 }85}86Answer.prototype.constructor = Answer;87function Service(host) {88 this.host = host || "http://www.boostme.cn:80";89 this.host = "";90}91Service.prototype = {92 server : function() {93 return this.host;94 },95 fetch_list : function(req_data_dict, callback_func) {96 var req_url = this.server() + "/Service/ajax_fetch_list";97 async_request(req_url, "get", req_data_dict, function(response) {98 callback_func(response);99 });100 },101 fetch_info : function(req_data_dict, callback_func) {102 var req_url = this.server() + "/Service/ajax_fetch_info";103 async_request(req_url, "get", req_data_dict, function(response) {104 callback_func(response);105 });106 },107 fetch_category : function(req_data_dict, callback_func) {108 var req_url = this.server() + "/Service/ajax_fetch_category";109 async_request(req_url, "get", req_data_dict, function(response) {110 callback_func(response);111 });112 },113 fetch_comment : function(req_data_dict, callback_func) {114 var req_url = this.server() + "/Service/ajax_fetch_comment";115 async_request(req_url, "get", req_data_dict, function(response) {116 callback_func(response);117 });118 },119 fetch_user_comment : function(req_data_dict, callback_func) {120 var req_url = this.server() + "/Service/ajax_fetch_user_comment";121 async_request(req_url, "get", req_data_dict, function(response) {122 callback_func(response);123 });124 },125 add_comment : function(req_data_dict, callback_func) {126 var req_url = this.server() + "/Service/ajax_add_comment";127 async_request(req_url, "post", req_data_dict, function(response) {128 callback_func(response);129 });130 },131 add_service : function(req_data_dict, callback_func) {132 var req_url = this.server() + "/Service/ajax_add";133 async_request(req_url, "post", req_data_dict, function(response) {134 callback_func(response);135 });136 },137 close_service : function(req_data_dict, callback_func) {138 var req_url = this.server() + "/Service/ajax_close";139 async_request(req_url, "post", req_data_dict, function(response) {140 callback_func(response);141 });142 }143}144Service.prototype.constructor = Service;145function Material(host) {146 this.host = host || "http://www.boostme.cn:80";147 this.host = "";148}149Material.prototype = {150 server : function() {151 return this.host;152 },153 fetch_list : function(req_data_dict, callback_func) {154 var req_url = this.server() + "/material/ajax_fetch_list";155 async_request(req_url, "get", req_data_dict, function(response) {156 callback_func(response);157 });158 },159 fetch_info : function(req_data_dict, callback_func) {160 var req_url = this.server() + "/material/ajax_fetch_info";161 async_request(req_url, "get", req_data_dict, function(response) {162 callback_func(response);163 });164 },165 fetch_category : function(req_data_dict, callback_func) {166 var req_url = this.server() + "/material/ajax_fetch_category";167 async_request(req_url, "get", req_data_dict, function(response) {168 callback_func(response);169 });170 },171 search : function(req_data_dict, callback_func) {172 var req_url = this.server() + "/material/ajax_search";173 async_request(req_url, "get", req_data_dict, function(response) {174 callback_func(response);175 });176 },177 fetch_comment : function(req_data_dict, callback_func) {178 var req_url = this.server() + "/material/ajax_fetch_comment";179 async_request(req_url, "get", req_data_dict, function(response) {180 callback_func(response);181 });182 },183 fetch_user_comment : function(req_data_dict, callback_func) {184 var req_url = this.server() + "/material/ajax_fetch_user_comment";185 async_request(req_url, "get", req_data_dict, function(response) {186 callback_func(response);187 });188 },189 add_comment : function(req_data_dict, callback_func) {190 var req_url = this.server() + "/material/ajax_add_comment";191 async_request(req_url, "post", req_data_dict, function(response) {192 callback_func(response);193 });194 },195 add : function(req_data_dict, callback_func) {196 var req_url = this.server() + "/material/ajax_add";197 async_request(req_url, "post", req_data_dict, function(response) {198 callback_func(response);199 });200 },201 edit : function(req_data_dict, callback_func) {202 var req_url = this.server() + "/material/ajax_edit";203 async_request(req_url, "post", req_data_dict, function(response) {204 callback_func(response);205 });206 }207}208Material.prototype.constructor = Service;209function Trade(host) {210 this.host = host || "http://www.boostme.cn:80";211 this.host = "";212}213Trade.prototype = {214 server : function() {215 return this.host;216 },217 fetch_list : function(req_data_dict, callback_func) {218 var req_url = this.server() + "/trade/ajax_fetch_list";219 async_request(req_url, "get", req_data_dict, function(response) {220 callback_func(response);221 });222 },223 add_item : function(req_data_dict, callback_func) {224 var req_url = this.server() + "/Trade/ajax_add_item";225 async_request(req_url, "post", req_data_dict, function(response) {226 callback_func(response);227 });228 },229 remove_item : function(req_data_dict, callback_func) {230 var req_url = this.server() + "/Trade/ajax_remove_item";231 async_request(req_url, "post", req_data_dict, function(response) {232 callback_func(response);233 });234 },235 fetch_tradeno : function(req_data_dict, callback_func) {236 var req_url = this.server() + "/trade/ajax_fetch_tradeno";237 async_request(req_url, "get", req_data_dict, function(response) {238 callback_func(response);239 });240 },241 update_quantity : function(req_data_dict, callback_func) {242 var req_url = this.server() + "/Trade/ajax_update_quantity";243 async_request(req_url, "get", req_data_dict, function(response) {244 callback_func(response);245 });246 }247}248Trade.prototype.constructor = Trade;249function Alipay(host) {250 this.host = host || "http://www.boostme.cn:80";251 this.host = "";252}253Alipay.prototype = {254 server : function() {255 return this.host;256 },257 transfer : function(req_data_dict, callback_func) {258 var req_url = this.server() + "/Alipay/ajax_transfer";259 async_request(req_url, "get", req_data_dict, function(response) {260 callback_func(response);261 });262 },263}264Alipay.prototype.constructor = Alipay;265function EBank(host) {266 this.host = host || "http://www.boostme.cn:80";267 this.host = "";268}269EBank.prototype = {270 server : function() {271 return this.host;272 },273 alipay_transfer : function(req_data_dict, callback_func) {274 var req_url = this.server() + "/ebank/ajax_alipay_transfer";275 async_request(req_url, "get", req_data_dict, function(response) {276 callback_func(response);277 });278 },279 fetch_account : function(req_data_dict, callback_func) {280 var req_url = this.server() + "/ebank/ajax_fetch_account";281 async_request(req_url, "get", req_data_dict, function(response) {282 callback_func(response);283 });284 },285 fetch_withdraw : function(req_data_dict, callback_func) {286 var req_url = this.server() + "/ebank/ajax_fetch_withdraw";287 async_request(req_url, "get", req_data_dict, function(response) {288 callback_func(response);289 });290 },291 withdraw : function(req_data_dict, callback_func) {292 var req_url = this.server() + "/ebank/ajax_withdraw";293 async_request(req_url, "post", req_data_dict, function(response) {294 callback_func(response);295 });296 }297}298EBank.prototype.constructor = EBank;299function User(host) {300 this.host = host || "http://www.boostme.cn:80";301 this.host = "";302}303User.prototype = {304 server : function() {305 return this.host;306 },307 login : function(req_data_dict, callback_func) {308 var req_url = this.server() + "/User/ajax_login";309 async_request(req_url, "post", req_data_dict, function(response) {310 callback_func(response);311 });312 },313 register : function(req_data_dict, callback_func) {314 var req_url = this.server() + "/User/ajax_register";315 async_request(req_url, "post", req_data_dict, function(response) {316 callback_func(response);317 });318 },319 check_username : function(req_data_dict, callback_func) {320 var req_url = this.server() + "/user/ajax_username";321 async_request(req_url, "get", req_data_dict, function(response) {322 callback_func(response);323 });324 },325 check_email : function(req_data_dict, callback_func) {326 var req_url = this.server() + "/user/ajax_email";327 async_request(req_url, "get", req_data_dict, function(response) {328 callback_func(response);329 });330 },331 check_code : function(req_data_dict, callback_func) {332 var req_url = this.server() + "/user/ajax_check_code";333 async_request(req_url, "get", req_data_dict, function(response) {334 callback_func(response);335 });336 },337 add_easy_access : function(req_data_dict, callback_func) {338 var req_url = this.server() + "/user/ajax_add_easy_access";339 async_request(req_url, "post", req_data_dict, function(response) {340 callback_func(response);341 });342 },343 remove_easy_access : function(req_data_dict, callback_func) {344 var req_url = this.server() + "/user/ajax_remove_easy_access";345 async_request(req_url, "post", req_data_dict, function(response) {346 callback_func(response);347 });348 },349 fetch_easy_access : function(req_data_dict, callback_func) {350 var req_url = this.server() + "/user/ajax_fetch_easy_access";351 async_request(req_url, "get", req_data_dict, function(response) {352 callback_func(response);353 });354 },355 update_passwd : function(req_data_dict, callback_func) {356 var req_url = this.server() + "/user/ajax_uppass";357 async_request(req_url, "post", req_data_dict, function(response) {358 callback_func(response);359 });360 },361 update_profile : function(req_data_dict, callback_func) {362 var req_url = this.server() + "/User/ajax_update_profile";363 async_request(req_url, "post", req_data_dict, function(response) {364 callback_func(response);365 });366 },367 update_resume : function(req_data_dict, callback_func) {368 var req_url = this.server() + "/user/ajax_update_resume";369 async_request(req_url, "post", req_data_dict, function(response) {370 callback_func(response);371 });372 },373 fetch_edu : function(req_data_dict, callback_func) {374 var req_url = this.server() + "/User/ajax_fetch_edu";375 async_request(req_url, "get", req_data_dict, function(response) {376 callback_func(response);377 });378 }379}380User.prototype.constructor = User;381function Message(host) {382 this.host = host || "http://www.boostme.cn:80";383 this.host = "";384}385Message.prototype = {386 server : function() {387 return this.host;388 },389 fetch_system : function(req_data_dict, callback_func) {390 var req_url = this.server() + "/Message/ajax_fetch_system";391 async_request(req_url, "get", req_data_dict, function(response) {392 callback_func(response);393 });394 },395 fetch_personal : function(req_data_dict, callback_func) {396 var req_url = this.server() + "/Message/ajax_fetch_personal";397 async_request(req_url, "get", req_data_dict, function(response) {398 callback_func(response);399 });400 },401 userlist : function(req_data_dict, callback_func) {402 var req_url = this.server() + "/Message/ajax_userlist";403 async_request(req_url, "get", req_data_dict, function(response) {404 callback_func(response);405 });406 },407 usernum : function(req_data_dict, callback_func) {408 var req_url = this.server() + "/Message/ajax_usernum";409 async_request(req_url, "get", req_data_dict, function(response) {410 callback_func(response);411 });412 },413 read_msg : function(req_data_dict, callback_func) {414 var req_url = this.server() + "/Message/ajax_read_msg";415 async_request(req_url, "get", req_data_dict, function(response) {416 callback_func(response);417 });418 },419 send : function(req_data_dict, callback_func) {420 var req_url = this.server() + "/Message/ajax_send";421 async_request(req_url, "post", req_data_dict, function(response) {422 callback_func(response);423 });424 },425 remove : function(req_data_dict, callback_func) {426 var req_url = this.server() + "/Message/ajax_remove";427 async_request(req_url, "post", req_data_dict, function(response) {428 callback_func(response);429 });430 },431 remove_dialog : function(req_data_dict, callback_func) {432 var req_url = this.server() + "/Message/ajax_remove_dialog";433 async_request(req_url, "post", req_data_dict, function(response) {434 callback_func(response);435 });436 }437}438Message.prototype.constructor = Message;439function Main(host) {440 this.host = host || "http://www.boostme.cn:80";441 this.host = "";442}443Main.prototype = {444 server : function() {445 return this.host;446 },447 image_size : function(req_data_dict, callback_func) {448 var req_url = this.server() + "/main/ajax_image_size";449 async_request(req_url, "get", req_data_dict, function(response) {450 callback_func(response);451 });452 },453}...
----ajaxRequest.js
Source:----ajaxRequest.js
1// ===================================================================2// Author: Matt Kruse <matt@ajaxtoolbox.com>3// WWW: http://www.AjaxToolbox.com/4//5// NOTICE: You may use this code for any purpose, commercial or6// private, without any further permission from the author. You may7// remove this notice from your final code if you wish, however it is8// appreciated by the author if at least my web site address is kept.9//10// You may *NOT* re-distribute this code in any way except through its11// use. That means, you can include it in your product, or your web12// site, or any other form where the code is actually being used. You13// may not put the plain javascript up on your site for download or14// include it in your javascript libraries for download. 15// If you wish to share this code with others, please just point them16// to the URL instead.17// Please DO NOT link directly to my .js files from your site. Copy18// the files to your server and use them there. Thank you.19// ===================================================================2021function AjaxRequest(){var req =new Object();22req.timeout =null;23req.generateUniqueUrl =false;24req.url =window.location.href;25req.method ="GET";26req.async =true;27req.username =null;28req.password =null;29req.parameters =new Object();30req.requestIndex =AjaxRequest.numAjaxRequests++;31req.responseReceived =false;32req.groupName =null;33req.queryString ="";34req.responseText =null;35req.responseXML =null;36req.status =null;37req.statusText =null;38req.aborted =false;39req.xmlHttpRequest =null;40req.onTimeout=null;41req.onLoading=null;42req.onLoaded=null;43req.onInteractive=null;44req.onComplete=null;45req.onSuccess=null;46req.onError=null;47req.onGroupBegin=null;48req.onGroupEnd=null;49req.xmlHttpRequest =AjaxRequest.getXmlHttpRequest();50if(req.xmlHttpRequest==null){return null;}req.xmlHttpRequest.onreadystatechange =51function(){if(req==null || req.xmlHttpRequest==null){return;}if(req.xmlHttpRequest.readyState==1){req.onLoadingInternal(req);}if(req.xmlHttpRequest.readyState==2){req.onLoadedInternal(req);}if(req.xmlHttpRequest.readyState==3){req.onInteractiveInternal(req);}if(req.xmlHttpRequest.readyState==4){req.onCompleteInternal(req);}};52req.onLoadingInternalHandled=false;53req.onLoadedInternalHandled=false;54req.onInteractiveInternalHandled=false;55req.onCompleteInternalHandled=false;56req.onLoadingInternal=57function(){if(req.onLoadingInternalHandled){return;}AjaxRequest.numActiveAjaxRequests++;58if(AjaxRequest.numActiveAjaxRequests==1 && typeof(window['AjaxRequestBegin'])=="function"){AjaxRequestBegin();}if(req.groupName!=null){if(typeof(AjaxRequest.numActiveAjaxGroupRequests[req.groupName])=="undefined"){AjaxRequest.numActiveAjaxGroupRequests[req.groupName] =0;}AjaxRequest.numActiveAjaxGroupRequests[req.groupName]++;59if(AjaxRequest.numActiveAjaxGroupRequests[req.groupName]==1 && typeof(req.onGroupBegin)=="function"){req.onGroupBegin(req.groupName);}}if(typeof(req.onLoading)=="function"){req.onLoading(req);}req.onLoadingInternalHandled=true;};60req.onLoadedInternal=61function(){if(req.onLoadedInternalHandled){return;}if(typeof(req.onLoaded)=="function"){req.onLoaded(req);}req.onLoadedInternalHandled=true;};62req.onInteractiveInternal=63function(){if(req.onInteractiveInternalHandled){return;}if(typeof(req.onInteractive)=="function"){req.onInteractive(req);}req.onInteractiveInternalHandled=true;};64req.onCompleteInternal=65function(){if(req.onCompleteInternalHandled || req.aborted){return;}req.onCompleteInternalHandled=true;66AjaxRequest.numActiveAjaxRequests--;67if(AjaxRequest.numActiveAjaxRequests==0 && typeof(window['AjaxRequestEnd'])=="function"){AjaxRequestEnd(req.groupName);}if(req.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[req.groupName]--;68if(AjaxRequest.numActiveAjaxGroupRequests[req.groupName]==0 && typeof(req.onGroupEnd)=="function"){req.onGroupEnd(req.groupName);}}req.responseReceived =true;69req.status =req.xmlHttpRequest.status;70req.statusText =req.xmlHttpRequest.statusText;71req.responseText =req.xmlHttpRequest.responseText;72req.responseXML =req.xmlHttpRequest.responseXML;73if(typeof(req.onComplete)=="function"){req.onComplete(req);}if(req.xmlHttpRequest.status==200 && typeof(req.onSuccess)=="function"){req.onSuccess(req);}else if(typeof(req.onError)=="function"){req.onError(req);}delete req.xmlHttpRequest['onreadystatechange'];74req.xmlHttpRequest =null;};75req.onTimeoutInternal=76function(){if(req!=null && req.xmlHttpRequest!=null && !req.onCompleteInternalHandled){req.aborted =true;77req.xmlHttpRequest.abort();78AjaxRequest.numActiveAjaxRequests--;79if(AjaxRequest.numActiveAjaxRequests==0 && typeof(window['AjaxRequestEnd'])=="function"){AjaxRequestEnd(req.groupName);}if(req.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[req.groupName]--;80if(AjaxRequest.numActiveAjaxGroupRequests[req.groupName]==0 && typeof(req.onGroupEnd)=="function"){req.onGroupEnd(req.groupName);}}if(typeof(req.onTimeout)=="function"){req.onTimeout(req);}delete req.xmlHttpRequest['onreadystatechange'];81req.xmlHttpRequest =null;}};82req.process =83function(){if(req.xmlHttpRequest!=null){if(req.generateUniqueUrl && req.method=="GET"){req.parameters["AjaxRequestUniqueId"] =new Date().getTime() + "" + req.requestIndex;}var content =null;84for(var i in req.parameters){if(req.queryString.length>0){req.queryString +="&";}req.queryString +=encodeURIComponent(i) + "=" + encodeURIComponent(req.parameters[i]);}if(req.method=="GET"){if(req.queryString.length>0){req.url +=((req.url.indexOf("?")>-1)?"&":"?") + req.queryString;}}req.xmlHttpRequest.open(req.method,req.url,req.async,req.username,req.password);85if(req.method=="POST"){if(typeof(req.xmlHttpRequest.setRequestHeader)!="undefined"){req.xmlHttpRequest.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');}content =req.queryString;}if(req.timeout>0){setTimeout(req.onTimeoutInternal,req.timeout);}req.xmlHttpRequest.send(content);}};86req.handleArguments =87function(args){for(var i in args){if(typeof(req[i])=="undefined"){req.parameters[i] =args[i];}else{req[i] =args[i];}}};88req.getAllResponseHeaders =89function(){if(req.xmlHttpRequest!=null){if(req.responseReceived){return req.xmlHttpRequest.getAllResponseHeaders();}alert("Cannot getAllResponseHeaders because a response has not yet been received");}};90req.getResponseHeader =91function(headerName){if(req.xmlHttpRequest!=null){if(req.responseReceived){return req.xmlHttpRequest.getResponseHeader(headerName);}alert("Cannot getResponseHeader because a response has not yet been received");}};92return req;}AjaxRequest.getXmlHttpRequest =function(){if(window.XMLHttpRequest){return new XMLHttpRequest();}else if(window.ActiveXObject){/*@cc_on @*/93/*@if(@_jscript_version >=5)94try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(E){return null;}}@end @*/}else{return null;}};95AjaxRequest.isActive =function(){return(AjaxRequest.numActiveAjaxRequests>0);};96AjaxRequest.get =function(args){AjaxRequest.doRequest("GET",args);};97AjaxRequest.post =function(args){AjaxRequest.doRequest("POST",args);};98AjaxRequest.doRequest =function(method,args){if(typeof(args)!="undefined" && args!=null){var myRequest =new AjaxRequest();99myRequest.method =method;100myRequest.handleArguments(args);101myRequest.process();}};102AjaxRequest.submit =function(theform, args){var myRequest =new AjaxRequest();103if(myRequest==null){return false;}var serializedForm =AjaxRequest.serializeForm(theform);104myRequest.method =theform.method.toUpperCase();105myRequest.url =theform.action;106myRequest.handleArguments(args);107myRequest.queryString =serializedForm;108myRequest.process();109return true;};110AjaxRequest.serializeForm =function(theform){var els =theform.elements;111var len =els.length;112var queryString ="";113this.addField =114function(name,value){if(queryString.length>0){queryString +="&";}queryString +=encodeURIComponent(name) + "=" + encodeURIComponent(value);};115for(var i=0;i<len;i++){var el =els[i];116if(!el.disabled){switch(el.type){case 'text': case 'password': case 'hidden': case 'textarea':117this.addField(el.name,el.value);118break;119case 'select-one':120if(el.selectedIndex>=0){this.addField(el.name,el.options[el.selectedIndex].value);}break;121case 'select-multiple':122for(var j=0;j<el.options.length;j++){if(el.options[j].selected){this.addField(el.name,el.options[j].value);}}break;123case 'checkbox': case 'radio':124if(el.checked){this.addField(el.name,el.value);}break;}}}return queryString;};125AjaxRequest.numActiveAjaxRequests =0;126AjaxRequest.numActiveAjaxGroupRequests =new Object();
...
prophylaxie.contoller.js
Source:prophylaxie.contoller.js
1const Prophylaxie = require('../models/prophylaxie.model');2// Create and Save a new Prophylaxie3exports.create = (req, res) => {4 // Create a Prophylaxie5 const prophylaxie = new Prophylaxie({6 id:req.body.id,7 patientId:req.body.patientId,8 datesvaccinS1:req.body.datesvaccinS1,9 datesvaccinS2: req.body.datesvaccinS2, 10 datesvaccinS3: req.body.datesvaccinS3, 11 datesvaccinS4: req.body.datesvaccinS4, 12 datesvaccinS5: req.body.datesvaccinS5, 13 datesvaccinS6: req.body.datesvaccinS6, 14 pneumocoquevaccS1: req.body.pneumocoquevaccS1,15 pneumocoquevaccS2: req.body.pneumocoquevaccS2,16 pneumocoquevaccS3: req.body.pneumocoquevaccS3,17 pneumocoquevaccS4: req.body.pneumocoquevaccS4,18 pneumocoquevaccS5: req.body.pneumocoquevaccS5,19 pneumocoquevaccS6: req.body.pneumocoquevaccS6,20 meningocoquevaccS1:req.body.meningocoquevaccS1,21 meningocoquevaccS2:req.body.meningocoquevaccS2,22 meningocoquevaccS3:req.body.meningocoquevaccS3,23 meningocoquevaccS4:req.body.meningocoquevaccS4,24 meningocoquevaccS5:req.body.meningocoquevaccS5,25 meningocoquevaccS6:req.body.meningocoquevaccS6,26 hoemophilusvacc:req.body.hoemophilusvacc,27 hoemophilusvaccS1:req.body.hoemophilusvaccS1,28 hoemophilusvaccS2:req.body.hoemophilusvaccS2,29 hoemophilusvaccS3:req.body.hoemophilusvaccS3,30 hoemophilusvaccS4:req.body.hoemophilusvaccS4,31 hoemophilusvaccS5:req.body.hoemophilusvaccS5,32 hoemophilusvaccS6:req.body.hoemophilusvaccS6,33 hepatiteS1:req.body.hepatiteS1,34 hepatiteS2:req.body.hepatiteS2,35 hepatiteS3:req.body.hepatiteS3,36 hepatiteS4:req.body.hepatiteS4,37 hepatiteS5:req.body.hepatiteS5,38 hepatiteS6:req.body.hepatiteS6,39 autresvaccS1:req.body.autresvaccS1,40 autresvaccS2:req.body.autresvaccS2,41 autresvaccS3:req.body.autresvaccS3,42 autresvaccS4:req.body.autresvaccS4,43 autresvaccS5:req.body.autresvaccS5,44 autresvaccS6:req.body.autresvaccS6,45 antibioprophytaxie:req.body.antibioprophytaxie,46 date1antibioptophy:req.body.date1antibioptophy,47 date2antibioptophy:req.body.date2antibioptophy,48 date3antibioptophy:req.body.date3antibioptophy,49 date4antibioptophy:req.body.date4antibioptophy,50 date5antibioptophy:req.body.date5antibioptophy,51 date6antibioptophy:req.body.date6antibioptophy,52 splnectomieDate:req.body.splnectomieDate,53 splnectomieChirugie:req.body.splnectomieChirugie,54 observations:req.body.observations55 });56 // Save prophylaxie in the database57 prophylaxie.save()58 .then(data => {59 res.send(data);60 }).catch(err => {61 res.status(500).send({62 message: err.message || "Some error occurred while creating the prophylaxie."63 });64 });65};66// Retrieve and return all prophylaxies from the database.67exports.findAll = (req, res) => {68 Prophylaxie.find()69 .then(prophylaxies => {70 res.send(prophylaxies);71 }).catch(err => {72 res.status(500).send({73 message: err.message || "Some error occurred while retrieving prophylaxies."74 });75 });76};77// Find a single prophylaxie with a noteId78exports.findOne = (req, res) => {79 Prophylaxie.findOne({patientId: req.params.patientId})80 .then(prophylaxie => {81 if(!prophylaxie) {82 return res.status(404).send({83 message: "prophylaxie not found with id " + req.params.patientId84 }); 85 }86 res.send(prophylaxie);87 }).catch(err => {88 if(err.kind === 'ObjectId') {89 return res.status(404).send({90 message: "prophylaxie not found with id " + req.params.patientId91 }); 92 }93 return res.status(500).send({94 message: "Error retrieving prophylaxie with id " + req.params.patientId95 });96 });97};98// Update a prophylaxie identified by the patientId in the request99exports.update = (req, res) => {100 // Validate Request101 if(!req.body.datesvaccinS1) {102 return res.status(400).send({103 message: "prophylaxie nom can not be empty"104 });105 }106 // Find prophylaxie and update it with the request body107 Prophylaxie.findByIdAndUpdate(req.params.patientId, {108 datesvaccinS1:req.body.datesvaccinS1,109 datesvaccinS2: req.body.datesvaccinS2, 110 datesvaccinS3: req.body.datesvaccinS3, 111 datesvaccinS4: req.body.datesvaccinS4, 112 datesvaccinS5: req.body.datesvaccinS5, 113 datesvaccinS6: req.body.datesvaccinS6, 114 pneumocoquevaccS1: req.body.pneumocoquevaccS1,115 pneumocoquevaccS2: req.body.pneumocoquevaccS2,116 pneumocoquevaccS3: req.body.pneumocoquevaccS3,117 pneumocoquevaccS4: req.body.pneumocoquevaccS4,118 pneumocoquevaccS5: req.body.pneumocoquevaccS5,119 pneumocoquevaccS6: req.body.pneumocoquevaccS6,120 meningocoquevaccS1:req.body.meningocoquevaccS1,121 meningocoquevaccS2:req.body.meningocoquevaccS2,122 meningocoquevaccS3:req.body.meningocoquevaccS3,123 meningocoquevaccS4:req.body.meningocoquevaccS4,124 meningocoquevaccS5:req.body.meningocoquevaccS5,125 meningocoquevaccS6:req.body.meningocoquevaccS6,126 hoemophilusvacc:req.body.hoemophilusvacc,127 hoemophilusvaccS1:req.body.hoemophilusvaccS1,128 hoemophilusvaccS2:req.body.hoemophilusvaccS2,129 hoemophilusvaccS3:req.body.hoemophilusvaccS3,130 hoemophilusvaccS4:req.body.hoemophilusvaccS4,131 hoemophilusvaccS5:req.body.hoemophilusvaccS5,132 hoemophilusvaccS6:req.body.hoemophilusvaccS6,133 hepatiteS1:req.body.hepatiteS1,134 hepatiteS2:req.body.hepatiteS2,135 hepatiteS3:req.body.hepatiteS3,136 hepatiteS4:req.body.hepatiteS4,137 hepatiteS5:req.body.hepatiteS5,138 hepatiteS6:req.body.hepatiteS6,139 autresvaccS1:req.body.autresvaccS1,140 autresvaccS2:req.body.autresvaccS2,141 autresvaccS3:req.body.autresvaccS3,142 autresvaccS4:req.body.autresvaccS4,143 autresvaccS5:req.body.autresvaccS5,144 autresvaccS6:req.body.autresvaccS6,145 antibioprophytaxie:req.body.antibioprophytaxie,146 date1antibioptophy:req.body.date1antibioptophy,147 date2antibioptophy:req.body.date2antibioptophy,148 date3antibioptophy:req.body.date3antibioptophy,149 date4antibioptophy:req.body.date4antibioptophy,150 date5antibioptophy:req.body.date5antibioptophy,151 date6antibioptophy:req.body.date6antibioptophy,152 splnectomieDate:req.body.splnectomieDate,153 splnectomieChirugie:req.body.splnectomieChirugie,154 observations:req.body.observations155 }, {new: true})156 .then(prophylaxie => {157 if(!prophylaxie) {158 return res.status(404).send({159 message: "prophylaxie not found with id " + req.params.patientId160 });161 }162 res.send(prophylaxie);163 }).catch(err => {164 if(err.kind === 'ObjectId') {165 return res.status(404).send({166 message: "prophylaxie not found with id " + req.params.patientId167 }); 168 }169 return res.status(500).send({170 message: "Error updating prophylaxie with id " + req.params.patientId171 });172 });173};174// Delete a prophylaxie with the specified patientId in the request175exports.delete = (req, res) => {176 Prophylaxie.findByIdAndRemove(req.params.patientId)177 .then(prophylaxie => {178 if(!prophylaxie) {179 return res.status(404).send({180 message: "prophylaxie not found with id " + req.params.patientId181 });182 }183 res.send({message: "prophylaxie deleted successfully!"});184 }).catch(err => {185 if(err.kind === 'ObjectId' || err.name === 'NotFound') {186 return res.status(404).send({187 message: "prophylaxie not found with id " + req.params.patientId188 }); 189 }190 return res.status(500).send({191 message: "Could not delete prophylaxie with id " + req.params.patientId192 });193 });...
server.js
Source:server.js
1import * as essentials from "./essentials.js"2import * as constants from "./constants.js"3const DEBUG = true;//process.cwd().includes("test");4const PORT_HTTPS = DEBUG? 3002 : 443;5const PORT_HTTP = DEBUG? 3000 : 80;6const API_PATH = "";7var httpServer, httpsServer;8console.log("Launching in debug setting: " + DEBUG);9var db = new (require('./minidb.js'))(constants.DB_PATH);10db.open();11httpsServer = https.createServer(httpsOptions, app);12httpsServer.listen(PORT_HTTPS, function(err) {13 if (err) return;14 console.log('HTTPS started, Server\'s UID is now ' + process.getuid());15});16if (DEBUG) {17 httpServer = http.createServer(app);18 httpServer.listen(PORT_HTTP, function(err) {19 if (err) return;20 console.log('HTTP started, Server\'s UID is now ' + process.getuid());21 });22} else {23 http.createServer(function (req, res) {24 res.writeHead(301, { "Location": "https://" + req.headers['host'] + req.url });25 26 }).listen(PORT_HTTP, function(err) {27 if (err) return;28 console.log('HTTP->HTTPS started, Server\'s UID is now ' + process.getuid());29 });30}31/*app.use(bodyParser.json({32 verify: function(req, res, buf, encoding) {33 // sha1 content34 var hash = crypto.createHash('sha1');35 hash.update(buf);36 req.hasha = hash.digest('hex');37 console.log("hash", req.hasha);38 // get rawBody 39 req.rawBody = buf.toString();40 console.log("rawBody", req.rawBody);41 }42}));*/43app.use(44 bodyParser.urlencoded({45 extended: true46 })47)48app.use('/', express.static(__dirname + '/public'));49function end_request(req, res, value) {50 if (typeof value === "string") res.write(value);51 else if (typeof value === "number") res.sendStatus(value);52 res.end();53 console.log(req.connection.remoteAddress + ": " + req.originalUrl.split("?")[0] + " ended with \"" + value + "\"");54}55app.get(API_PATH+'/create-license', function(req, res) {56 let req_ip = req.connection.remoteAddress;57 let req_code = req.query.code;58 let req_auth = req.query.auth;59 if (typeof req_code !== 'string' || !(/^[a-zA-Z0-9]+$/.test(req_code)) || req_code.length != constants.LENGTH_CODE || typeof req_auth !== 'string' || !(/^[a-zA-Z0-9]+$/.test(req_auth))) {60 end_request(req, res, constants.RES_BAD_SYNTAX);61 return;62 } else if (!valid_password(req)) {63 end_request(req, res, constants.RES_FORBIDDEN);64 return;65 }66 if (db.get(req_code)) {67 end_request(req, res, constants.RES_ALREADY_EXISTS);68 return;69 }70 db.set(req_code, {'users': {}, 'max_count': 1000});71 end_request(req, res, 201);72 73});74app.get(API_PATH+'/revoke-license', function(req, res) {75 let req_ip = req.connection.remoteAddress;76 let req_code = req.query.code;77 let req_auth = req.query.auth;78 if (typeof req_code !== 'string' || !(/^[a-zA-Z0-9]+$/.test(req_code)) || req_code.length != constants.LENGTH_CODE || typeof req_auth !== 'string' || !(/^[a-zA-Z0-9]+$/.test(req_auth))) {79 end_request(req, res, constants.RES_BAD_SYNTAX);80 return;81 } else if (!valid_password(req)) {82 end_request(req, res, constants.RES_FORBIDDEN);83 return;84 }85 if (!db.get(req_code)) {86 end_request(req, res, constants.RES_NOT_FOUND);87 return;88 }89 db.remove(req_code);90 end_request(req, res, 200);91 92});93function get_license(req, res) {94 console.log("Called get-license");95 let req_ip = req.connection.remoteAddress;96 let req_code = req.query.code;97 let req_imei = req.query.imei;98 let req_time = Date.now(); //unix time99 // additions for compatibility with legacy100 if (req.originalUrl.split("/").length == 4) {101 req_code = req.originalUrl.split("/")[2];102 req_imei = req.body.activation.device_uid;103 }104 if (typeof req_code !== 'string' || !(/^[a-zA-Z0-9]+$/.test(req_code)) || req_code.length != constants.LENGTH_CODE || typeof req_imei !== 'string' || !(/^[a-zA-Z0-9]+$/.test(req_imei))) {105 end_request(req, res, constants.RES_BAD_SYNTAX);106 return;107 }108 if (!db.get(req_code)) {109 end_request(req, res, constants.RES_FORBIDDEN);110 return;111 }112 let users = db.get(req_code+".users");113 let user = users[req_imei];114 if (!user) {115 if (Object.keys(users).length >= db.get(req_code+".max_count")) {116 end_request(req, res, constants.RES_TOO_MANY);117 return;118 }119 user = {last_login: 0, last_ip: ""};120 }121 user.last_login = req_time;122 user.last_ip = req_ip;123 end_request(req, res, generate_login_response(req_code, req_imei));124 db.set(req_code+".users."+req_imei, user);125}126app.get(API_PATH+'/get-license', function(req, res) {127 get_license(req, res);128});129app.post("/customers/*", function(req, res) {130 get_license(req, res);131});132app.put("/customers/*", function(req, res) {133 get_license(req, res);134});135app.get("*", function(req, res){136 end_request(req, res, constants.RES_NOT_FOUND);137});138process.on("uncaughtException", function (err) {139 console.log("Caught a fatal error:");140 console.log(err);141 console.log("Dumping memory...");142 heapdump.writeSnapshot(constants.LOGS_PATH+"/heap_"+Date.now()+".dump");143 db.close();...
rotas.js
Source:rotas.js
1function executaracao(url,req, res){ 2 var sformulario = url.replace('/','') 3 if (req.method == 'POST') {4 console.log(req.body) 5 res.json(url)6 } else if (req.method == 'GET') { 7 res.render(sformulario); 8 }9} 10function roteamento(app) {11app12.get('/articles', (req, res) => { 13 executaracao(req.url,req,res) 14 })15 .post('/articles', (req, res) => { 16 executaracao(req.url,req,res) 17 })18 .delete('/articles', (req, res) => { 19 executaracao(req.url,req,res) 20 })21 .put('/articles', (req, res) => { 22 executaracao(req.url,req,res) 23 }).get('/categories', (req, res) => { 24 executaracao(req.url,req,res) 25 })26 .post('/categories', (req, res) => { 27 executaracao(req.url,req,res) 28 })29 .delete('/categories', (req, res) => { 30 executaracao(req.url,req,res) 31 })32 .put('/categories', (req, res) => { 33 executaracao(req.url,req,res) 34 }).get('/configuracaos', (req, res) => { 35 executaracao(req.url,req,res) 36 })37 .post('/configuracaos', (req, res) => { 38 executaracao(req.url,req,res) 39 })40 .delete('/configuracaos', (req, res) => { 41 executaracao(req.url,req,res) 42 })43 .put('/configuracaos', (req, res) => { 44 executaracao(req.url,req,res) 45 }).get('/moedas', (req, res) => { 46 executaracao(req.url,req,res) 47 })48 .post('/moedas', (req, res) => { 49 executaracao(req.url,req,res) 50 })51 .delete('/moedas', (req, res) => { 52 executaracao(req.url,req,res) 53 })54 .put('/moedas', (req, res) => { 55 executaracao(req.url,req,res) 56 }).get('/new_table', (req, res) => { 57 executaracao(req.url,req,res) 58 })59 .post('/new_table', (req, res) => { 60 executaracao(req.url,req,res) 61 })62 .delete('/new_table', (req, res) => { 63 executaracao(req.url,req,res) 64 })65 .put('/new_table', (req, res) => { 66 executaracao(req.url,req,res) 67 }).get('/users', (req, res) => { 68 executaracao(req.url,req,res) 69 })70 .post('/users', (req, res) => { 71 executaracao(req.url,req,res) 72 })73 .delete('/users', (req, res) => { 74 executaracao(req.url,req,res) 75 })76 .put('/users', (req, res) => { 77 executaracao(req.url,req,res) 78 })} ...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!