config.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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' => '',
  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' => '100000000',
  35. 'app_secret' => '123456',
  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' => 'PC端是否开启账号绑定,关闭则自动创建账号',
  77. 'extend' => '',
  78. ],
  79. [
  80. 'name' => 'status',
  81. 'title' => 'PC端第三方登录开关',
  82. 'type' => 'checkbox',
  83. 'content' => [
  84. 'qq' => 'QQ',
  85. 'wechat' => '微信',
  86. 'weibo' => '微博',
  87. ],
  88. 'value' => 'qq,wechat,weibo',
  89. 'rule' => '',
  90. 'msg' => '',
  91. 'tip' => '',
  92. 'ok' => 'PC端第三方登录开关',
  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. [
  114. 'name' => 'wechatmini',
  115. 'title' => '微信小程序',
  116. 'type' => 'array',
  117. 'content' => [
  118. 'app_id' => '',
  119. 'app_secret' => '',
  120. 'scope' => 'snsapi_userinfo',
  121. ],
  122. 'value' => [
  123. 'app_id' => 'wx4adbb64583a37087',
  124. 'secret' => '61494b8364258d1846cfdf91a8745c80',
  125. 'scope' => 'get_user_info',
  126. ],
  127. 'rule' => 'required',
  128. 'msg' => '',
  129. 'tip' => '',
  130. 'ok' => '',
  131. 'extend' => '',
  132. ],
  133. ];