award.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 2018/1/15
  6. * Time: 下午6:56
  7. */
  8. function get_award($no)
  9. {
  10. $no = $no - 1;
  11. $result = [];
  12. if($no == 0) {
  13. $result[] = ['type' => 'fcode','command_id' => 4148,'batch_code' =>'NHJ001'];
  14. }
  15. elseif($no == 1) {
  16. $result[] = ['type' => 'fcode','command_id' => 4151,'batch_code' =>'NHJ002'];
  17. }
  18. elseif($no == 2) {
  19. $result[] = ['type' => 'fcode','command_id' => 4152,'batch_code' =>'NHJ003'];
  20. }
  21. elseif($no == 3) {
  22. $result[] = ['type' => 'fcode','command_id' => 4153,'batch_code' =>'NHJ004'];
  23. }
  24. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  25. elseif($no == 4) {
  26. $result[] = ['type' => 'fcode','command_id' => 4154,'batch_code' =>'NHJ005'];
  27. $result[] = ['type' => 'bonus','type_sn' => '38901516016673640442'];
  28. }
  29. elseif($no == 5) {
  30. $result[] = ['type' => 'fcode','command_id' => 4155,'batch_code' =>'NHJ006'];
  31. $result[] = ['type' => 'bonus','type_sn' => '98851516016812213578'];
  32. }
  33. elseif($no == 6) {
  34. $result[] = ['type' => 'fcode','command_id' => 4156,'batch_code' =>'NHJ007'];
  35. $result[] = ['type' => 'bonus','type_sn' => '60581516023148939895'];
  36. }
  37. elseif($no == 7) {
  38. $result[] = ['type' => 'fcode','command_id' => 4157,'batch_code' =>'NHJ008'];
  39. $result[] = ['type' => 'bonus','type_sn' => '75991516016938448012'];
  40. }
  41. //以下全是红包
  42. elseif($no == 8) {
  43. $result[] = ['type' => 'bonus','type_sn' => '67741516017011997440'];
  44. }
  45. //游戏奖
  46. elseif($no == 9) {
  47. $result[] = ['type' => 'bonus','type_sn' => '63131516017063433655'];
  48. }
  49. //赛车
  50. elseif($no == 10) {
  51. $result[] = ['type' => 'bonus','type_sn' => '11891516017132219556'];
  52. }
  53. //数钱
  54. elseif($no == 11) {
  55. $result[] = ['type' => 'bonus','type_sn' => '97361516017200568325'];
  56. }
  57. elseif($no == 12) {
  58. $result[] = ['type' => 'fcode','command_id' => 2820,'batch_code' =>'NHJP01'];
  59. $result[] = ['type' => 'bonus','type_sn' => '75411516018646807641'];
  60. }
  61. else {
  62. }
  63. return $result;
  64. }