config.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2018/9/26 0026
  6. * Time: 下午 12:46
  7. */
  8. /*'host' => 'rm-uf68i53m6uaapa9t0.mysql.rds.aliyuncs.com',
  9. 'user' => 'unicorndb',
  10. 'port' => 3306,
  11. 'password' => 'HHgankStudio@it520',
  12. 'dbname' => 'unicorn_log',
  13. 'dbcharset' => 'utf8'*/
  14. $daytimes = date(DATE_FORMAT_S, time());
  15. return $config = [
  16. 'rank_api' => [
  17. 'host' => 'http://event.djsh5.com/rank/?',
  18. 'game_cache' => [
  19. 'host' => '192.168.0.140',
  20. 'port' => 6379,
  21. 'auth' => '123456'
  22. ]
  23. ],
  24. 'game_db' => [
  25. 'host' => 'rm-uf66699x295178337127.mysql.rds.aliyuncs.com',
  26. 'user' => 'activedb',
  27. 'port' => 3306,
  28. 'password' => 'GankDBCon88t72',
  29. 'dbname' => 'gank_activites',
  30. 'dbcharset' => 'utf8'
  31. ],
  32. 'game_stat_db' => [
  33. 'host' => 'rm-uf66699x295178337127.mysql.rds.aliyuncs.com',
  34. 'user' => 'activedb',
  35. 'port' => 3306,
  36. 'pass' => 'GankDBCon88t72',
  37. 'dbname' => 'gank_activites',
  38. 'dbcharset' => 'utf8'
  39. ],
  40. 'game_prize' => [
  41. '1' => array('prize_id' => 1, 'prize' => '5元京东卡', 'rate' => 200, 'number' => 1, 'status' => 0, 'upper_limit' => 165, 'frequency' => 0, 'prize_type' => 0, 'create_at' => $daytimes),
  42. '2' => array('prize_id' => 2, 'prize' => '爱奇艺月卡', 'rate' => 50, 'number' => 1, 'status' => 0, 'upper_limit' => 50, 'frequency' => 0, 'prize_type' => 0, 'create_at' => $daytimes),
  43. '3' => array('prize_id' => 3, 'prize' => '独角兽充电宝', 'rate' => 1, 'number' => 1, 'status' => 1, 'upper_limit' => 10, 'frequency' => 0, 'prize_type' => 0, 'create_at' => $daytimes),
  44. '4' => array('prize_id' => 4, 'prize' => '10元京东卡', 'rate' => 100, 'number' => 1, 'status' => 0, 'upper_limit' => 100, 'frequency' => 0, 'prize_type' => 0, 'create_at' => $daytimes),
  45. '5' => array('prize_id' => 5, 'prize' => '独角兽挂饰', 'rate' => 2, 'number' => 1, 'status' => 1, 'upper_limit' => 15, 'frequency' => 0, 'prize_type' => 0, 'create_at' => $daytimes),
  46. '6' => array('prize_id' => 6, 'prize' => '谢谢参与', 'rate' => 1000, 'status' => 0, 'number' => 0, 'upper_limit' => 0, 'frequency' => 0, 'prize_type' => 0, 'create_at' => $daytimes),
  47. ],
  48. 'server_pact' => array('login', 'sende_message', 'quit', 'intopic'),
  49. 'rand_at'=>[
  50. '2019/1/3',
  51. '2019/1/4',
  52. '2019/1/5',
  53. '2019/1/6',
  54. '2019/1/7',
  55. '2019/1/8',
  56. '2019/1/9',
  57. '2019/1/10',
  58. '2019/1/11',
  59. '2019/1/12',
  60. '2019/1/13',
  61. '2019/1/14',
  62. '2019/1/15',
  63. '2019/1/16',
  64. '2019/1/17',
  65. '2019/1/18',
  66. '2019/1/19',
  67. '2019/1/20',
  68. '2019/1/21',
  69. '2019/1/22',
  70. '2019/1/23',
  71. '2019/1/24',
  72. '2019/1/25',
  73. '2019/1/26',
  74. '2019/1/27',
  75. '2019/1/28',
  76. '2019/1/29',
  77. '2019/1/30',
  78. '2019/1/31',
  79. '2019/2/1',
  80. '2019/2/2',
  81. '2019/2/3',
  82. '2019/2/4',
  83. '2019/2/5',
  84. '2019/2/6',
  85. '2019/2/7',
  86. '2019/2/8',
  87. '2019/2/9',
  88. '2019/2/10',
  89. '2019/2/11',
  90. '2019/2/12',
  91. '2019/2/13',
  92. '2019/2/14',
  93. '2019/2/15',
  94. '2019/2/16',
  95. '2019/2/17',
  96. '2019/2/18',
  97. '2019/2/19',
  98. '2019/2/20',
  99. '2019/2/21',
  100. '2019/2/22',
  101. '2019/2/23',
  102. '2019/2/24',
  103. '2019/2/25',
  104. '2019/2/26',
  105. '2019/2/27',
  106. '2019/2/28',
  107. '2019/3/1',
  108. '2019/3/2',
  109. '2019/3/3',
  110. '2019/3/4',
  111. '2019/3/5',
  112. '2019/3/6',
  113. '2019/3/7',
  114. '2019/3/8',
  115. '2019/3/9',
  116. '2019/3/10',
  117. '2019/3/11',
  118. '2019/3/12',
  119. '2019/3/13',
  120. '2019/3/14',
  121. '2019/3/15',
  122. '2019/3/16',
  123. '2019/3/17',
  124. '2019/3/18',
  125. '2019/3/19',
  126. '2019/3/20',
  127. '2019/3/21',
  128. '2019/3/22',
  129. '2019/3/23',
  130. '2019/3/24',
  131. '2019/3/25',
  132. '2019/3/26',
  133. '2019/3/27',
  134. '2019/3/28',
  135. '2019/3/29',
  136. '2019/3/30',
  137. '2019/3/31',
  138. '2019/4/1',
  139. '2019/4/2',
  140. '2019/4/3',
  141. '2019/4/4',
  142. '2019/4/5',
  143. '2019/4/6',
  144. '2019/4/7',
  145. '2019/4/8',
  146. '2019/4/9',
  147. '2019/4/10',
  148. '2019/4/11',
  149. '2019/4/12',
  150. '2019/4/13',
  151. '2019/4/14',
  152. '2019/4/15',
  153. '2019/4/16',
  154. '2019/4/17',
  155. '2019/4/18',
  156. '2019/4/19',
  157. '2019/4/20',
  158. '2019/4/21',
  159. '2019/4/22',
  160. '2019/4/23',
  161. '2019/4/24',
  162. '2019/4/25',
  163. '2019/4/26',
  164. '2019/4/27',
  165. '2019/4/28',
  166. '2019/4/29',
  167. '2019/4/30',
  168. '2019/5/1',
  169. '2019/5/2',
  170. '2019/5/3',
  171. '2019/5/4',
  172. '2019/5/5',
  173. '2019/5/6',
  174. '2019/5/7',
  175. '2019/5/8',
  176. '2019/5/9',
  177. '2019/5/10',
  178. '2019/5/11',
  179. '2019/5/12',
  180. '2019/5/13',
  181. '2019/5/14',
  182. '2019/5/15',
  183. '2019/5/16',
  184. '2019/5/17',
  185. '2019/5/18',
  186. '2019/5/19',
  187. '2019/5/20',
  188. '2019/5/21',
  189. '2019/5/22',
  190. '2019/5/23',
  191. '2019/5/24',
  192. '2019/5/25',
  193. '2019/5/26',
  194. '2019/5/27',
  195. '2019/5/28',
  196. '2019/5/29',
  197. '2019/5/30',
  198. '2019/5/31',
  199. '2019/6/1',
  200. '2019/6/2',
  201. '2019/6/3',
  202. '2019/6/4',
  203. '2019/6/5',
  204. '2019/6/6',
  205. '2019/6/7',
  206. '2019/6/8',
  207. '2019/6/9',
  208. '2019/6/10',
  209. '2019/6/11',
  210. '2019/6/12',
  211. '2019/6/13',
  212. '2019/6/14',
  213. '2019/6/15',
  214. '2019/6/16',
  215. '2019/6/17',
  216. '2019/6/18',
  217. '2019/6/19',
  218. '2019/6/20',
  219. '2019/6/21',
  220. '2019/6/22',
  221. '2019/6/23',
  222. '2019/6/24',
  223. '2019/6/25',
  224. '2019/6/26',
  225. '2019/6/27',
  226. '2019/6/28',
  227. '2019/6/29',
  228. '2019/6/30',
  229. '2019/7/1',
  230. '2019/7/2',
  231. '2019/7/3',
  232. '2019/7/4',
  233. '2019/7/5',
  234. '2019/7/6',
  235. '2019/7/7',
  236. '2019/7/8',
  237. '2019/7/9',
  238. '2019/7/10'
  239. ]
  240. ];