config.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. return [
  3. [
  4. 'name' => 'appId',
  5. 'title' => '小程序appId',
  6. 'type' => 'string',
  7. 'value' => 'wx4adbb64583a37087',
  8. 'content' => [],
  9. 'rule' => 'required',
  10. 'msg' => '',
  11. 'tip' => '',
  12. 'ok' => '',
  13. 'extend' => '',
  14. ],
  15. [
  16. 'name' => 'secretId',
  17. 'title' => '小程序秘钥',
  18. 'type' => 'string',
  19. 'value' => '61494b8364258d1846cfdf91a8745c80',
  20. 'content' => [],
  21. 'rule' => 'required',
  22. 'msg' => '',
  23. 'tip' => '',
  24. 'ok' => '',
  25. 'extend' => '',
  26. ],
  27. [
  28. 'name' => 'loginUrl',
  29. 'title' => '获取openid接口',
  30. 'type' => 'string',
  31. 'value' => 'https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code',
  32. 'content' => [],
  33. 'rule' => 'required',
  34. 'msg' => '',
  35. 'tip' => '',
  36. 'ok' => '',
  37. 'extend' => '',
  38. ],
  39. [
  40. 'name' => 'accessUrl',
  41. 'title' => '获取access_token接口',
  42. 'type' => 'string',
  43. 'value' => 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s',
  44. 'content' => [],
  45. 'rule' => 'required',
  46. 'msg' => '',
  47. 'tip' => '',
  48. 'ok' => '',
  49. 'extend' => '',
  50. ],
  51. [
  52. 'name' => '__tips__',
  53. 'title' => '温馨提示',
  54. 'type' => 'string',
  55. 'content' => [],
  56. 'value' => '1.别的配置可以按需删除,配置文件路径在addons/baseconfig/config.php 里面 <br>'."\n"
  57. .' 1.通过 get_addon_config("baseconfig") 拿到所有配置数据 <br>'."\n"
  58. .' 3.插件下面的确定保存按钮没有显示出来,没关系,在application/admin/view/addon/config.html 文件里面101行 class 为 form-group layer-footer 的div 里面 加上 style="display: block!important" 即可,重点是div显示 display: block',
  59. 'rule' => '',
  60. 'msg' => '',
  61. 'tip' => '',
  62. 'ok' => '',
  63. 'extend' => '',
  64. ],
  65. ];