config.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. return [
  3. [
  4. 'name' => 'qq',
  5. 'title' => 'QQ',
  6. 'type' => 'array',
  7. 'content' => [
  8. 'app_id' => '',
  9. 'app_secret' => '',
  10. 'scope' => 'get_user_info',
  11. ],
  12. 'value' => [
  13. 'app_id' => '100000000',
  14. 'app_secret' => '123456',
  15. 'scope' => 'get_user_info',
  16. ],
  17. 'rule' => 'required',
  18. 'msg' => '',
  19. 'tip' => '',
  20. 'ok' => '',
  21. 'extend' => '',
  22. ],
  23. [
  24. 'name' => 'wechat',
  25. 'title' => '微信',
  26. 'type' => 'array',
  27. 'content' => [
  28. 'app_id' => '',
  29. 'app_secret' => '',
  30. 'callback' => '',
  31. 'scope' => 'snsapi_base',
  32. ],
  33. 'value' => [
  34. 'app_id' => 'wx69fb4525c9156250',
  35. 'app_secret' => '50672a30e50a0a0af2f4d64eaebedc06',
  36. 'scope' => 'snsapi_userinfo',
  37. ],
  38. 'rule' => 'required',
  39. 'msg' => '',
  40. 'tip' => '',
  41. 'ok' => '',
  42. 'extend' => '',
  43. ],
  44. [
  45. 'name' => 'weibo',
  46. 'title' => '微博',
  47. 'type' => 'array',
  48. 'content' => [
  49. 'app_id' => '',
  50. 'app_secret' => '',
  51. 'scope' => 'get_user_info',
  52. ],
  53. 'value' => [
  54. 'app_id' => '100000000',
  55. 'app_secret' => '123456',
  56. 'scope' => 'get_user_info',
  57. ],
  58. 'rule' => 'required',
  59. 'msg' => '',
  60. 'tip' => '',
  61. 'ok' => '',
  62. 'extend' => '',
  63. ],
  64. [
  65. 'name' => 'bindaccount',
  66. 'title' => '账号绑定',
  67. 'type' => 'radio',
  68. 'content' => [
  69. 1 => '开启',
  70. 0 => '关闭',
  71. ],
  72. 'value' => '1',
  73. 'rule' => 'required',
  74. 'msg' => '',
  75. 'tip' => '',
  76. 'ok' => '是否开启账号绑定',
  77. 'extend' => '',
  78. ],
  79. [
  80. 'name' => 'status',
  81. 'title' => '前台第三方登录开关',
  82. 'type' => 'checkbox',
  83. 'content' => [
  84. 'qq' => 'QQ',
  85. 'wechat' => '微信',
  86. 'weibo' => '微博',
  87. ],
  88. 'value' => 'wechat',
  89. 'rule' => '',
  90. 'msg' => '',
  91. 'tip' => '',
  92. 'ok' => '前台第三方登录的开关',
  93. 'extend' => '',
  94. ],
  95. [
  96. 'name' => 'rewrite',
  97. 'title' => '伪静态',
  98. 'type' => 'array',
  99. 'content' => [],
  100. 'value' => [
  101. 'index/index' => '/third$',
  102. 'index/connect' => '/third/connect/[:platform]',
  103. 'index/callback' => '/third/callback/[:platform]',
  104. 'index/bind' => '/third/bind/[:platform]',
  105. 'index/unbind' => '/third/unbind/[:platform]',
  106. ],
  107. 'rule' => 'required',
  108. 'msg' => '',
  109. 'tip' => '',
  110. 'ok' => '',
  111. 'extend' => '',
  112. ],
  113. ];