config.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. return array (
  3. 0 =>
  4. array (
  5. 'name' => 'app_id',
  6. 'title' => 'app_id',
  7. 'type' => 'string',
  8. 'content' =>
  9. array (
  10. ),
  11. 'value' => 'your app_id',
  12. 'rule' => 'required',
  13. 'msg' => '',
  14. 'tip' => '',
  15. 'ok' => '',
  16. 'extend' => '',
  17. ),
  18. 1 =>
  19. array (
  20. 'name' => 'secret',
  21. 'title' => 'secret',
  22. 'type' => 'string',
  23. 'content' =>
  24. array (
  25. ),
  26. 'value' => 'your secret',
  27. 'rule' => 'required',
  28. 'msg' => '',
  29. 'tip' => '',
  30. 'ok' => '',
  31. 'extend' => '',
  32. ),
  33. 2 =>
  34. array (
  35. 'name' => 'token',
  36. 'title' => 'token',
  37. 'type' => 'string',
  38. 'content' =>
  39. array (
  40. ),
  41. 'value' => 'your token',
  42. 'rule' => 'required',
  43. 'msg' => '',
  44. 'tip' => '',
  45. 'ok' => '',
  46. 'extend' => '',
  47. ),
  48. 3 =>
  49. array (
  50. 'name' => 'aes_key',
  51. 'title' => 'aes_key',
  52. 'type' => 'string',
  53. 'content' =>
  54. array (
  55. ),
  56. 'value' => 'your aes_key',
  57. 'rule' => 'required',
  58. 'msg' => '',
  59. 'tip' => '',
  60. 'ok' => '',
  61. 'extend' => '',
  62. ),
  63. 4 =>
  64. array (
  65. 'name' => 'debug',
  66. 'title' => '调试模式',
  67. 'type' => 'radio',
  68. 'content' =>
  69. array (
  70. 0 => '否',
  71. 1 => '是',
  72. ),
  73. 'value' => '1',
  74. 'rule' => 'required',
  75. 'msg' => '',
  76. 'tip' => '',
  77. 'ok' => '',
  78. 'extend' => '',
  79. ),
  80. 5 =>
  81. array (
  82. 'name' => 'log_level',
  83. 'title' => '日志记录等级',
  84. 'type' => 'select',
  85. 'content' =>
  86. array (
  87. 'debug' => 'debug',
  88. 'info' => 'info',
  89. 'notice' => 'notice',
  90. 'warning' => 'warning',
  91. 'error' => 'error',
  92. 'critical' => 'critical',
  93. 'alert' => 'alert',
  94. 'emergency' => 'emergency',
  95. ),
  96. 'value' => 'debug',
  97. 'rule' => 'required',
  98. 'msg' => '',
  99. 'tip' => '',
  100. 'ok' => '',
  101. 'extend' => '',
  102. ),
  103. 6 =>
  104. array (
  105. 'name' => 'oauth_callback',
  106. 'title' => '登录回调',
  107. 'type' => 'string',
  108. 'content' =>
  109. array (
  110. ),
  111. 'value' => 'http://www.yoursite.com/addons/wechat/index/callback',
  112. 'rule' => 'required',
  113. 'msg' => '',
  114. 'tip' => '',
  115. 'ok' => '',
  116. 'extend' => '',
  117. ),
  118. );