PfLogic.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. local Config = require("Config")
  2. function isKunTangTishen() -- 坤堂微信小程序提审服
  3. if Config.SVR_INDEX == 183999 then
  4. return true
  5. end
  6. end
  7. function isFkwTishen() -- 方块玩微信小程序提审服
  8. if Config.SVR_INDEX == 185999 then
  9. return true
  10. end
  11. end
  12. -- 硬核平台ip范围
  13. function isYingHe()
  14. if Config.SVR_INDEX >= 570001 and Config.SVR_INDEX <= 570999 then
  15. return true
  16. end
  17. end
  18. -- 坤堂微信小程序
  19. function isKunTang()
  20. if Config.SVR_INDEX >= 182001 and Config.SVR_INDEX <= 183999 then
  21. return true
  22. end
  23. end
  24. -- 方块玩微信小程序
  25. function isFKW()
  26. if Config.SVR_INDEX >= 184001 and Config.SVR_INDEX <= 185999 then
  27. return true
  28. end
  29. end
  30. --海外微端
  31. function isHaiwaiWeiduan(human)
  32. if Config.SVR_INDEX >= 302001 and Config.SVR_INDEX <= 309999 then
  33. return true
  34. end
  35. end
  36. --手q
  37. function isShouQ(human)
  38. if Config.SVR_INDEX >= 210001 and Config.SVR_INDEX <= 219999 then
  39. return true
  40. end
  41. end
  42. --叶子混服 公测区
  43. function isYeziG(human)
  44. if Config.SVR_INDEX >= 810051 and Config.SVR_INDEX <= 819999 then
  45. return true
  46. end
  47. end
  48. --叶子混服 公测区
  49. function isQQ()
  50. --if Config.SVR_INDEX >= 600001 and Config.SVR_INDEX <= 609999 then
  51. if Config.SVR_INDEX >= 130001 and Config.SVR_INDEX <= 139999 then
  52. return true
  53. end
  54. end
  55. --叶子混服 公测区
  56. function is9377()
  57. if Config.SVR_INDEX >= 680001 and Config.SVR_INDEX <= 689999 then
  58. return true
  59. end
  60. end
  61. --
  62. function isAug()
  63. if Config.SVR_INDEX >= 140001 and Config.SVR_INDEX <= 149999 then
  64. return true
  65. end
  66. end
  67. --taptap
  68. function isTaptap()
  69. if Config.SVR_INDEX >= 640001 and Config.SVR_INDEX <= 649999 then
  70. return true
  71. end
  72. end
  73. --叶子混服 公测区
  74. function isServerIndex(svrIndex)
  75. if Config.SVR_INDEX >= svrIndex[1] and Config.SVR_INDEX <= svrIndex[2] then
  76. return true
  77. end
  78. end
  79. -- 是否在这个区间
  80. function inServerIndex(svrIndexs)
  81. for i = 1, #svrIndexs do
  82. local index1 = svrIndexs[i][1]
  83. local index2 = svrIndexs[i][2]
  84. if Config.SVR_INDEX >= index1 and Config.SVR_INDEX <= index2 then
  85. return true
  86. end
  87. end
  88. end
  89. function isKor()
  90. if Config.SVR_INDEX >= 340001 and Config.SVR_INDEX <= 349999 then
  91. return true
  92. end
  93. end