index.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {extend name="admin@main"}
  2. {block name="button"}
  3. {if auth("edit")}
  4. <button data-modal="{:url('edit')}" class='layui-btn layui-btn-sm layui-btn-primary'>配置平台参数</button>
  5. {/if}
  6. {/block}
  7. {block name="content"}
  8. <div class="relative">
  9. <div class="think-box-shadow border-0 margin-bottom-20">
  10. 强烈建议安装 YAR 扩展来实现接口通信,SOAP 不能正常显示接口的异常信息
  11. </div>
  12. <div class="think-box-shadow padding-right-40 padding-left-40">
  13. <div class="layui-row layui-col-space18">
  14. <div class="layui-col-md6">
  15. <div class="layui-form-item">
  16. <span class="color-green font-w7">开放平台服务</span>
  17. <span class="color-desc margin-left-5">AppID</span>
  18. <label class="relative block">
  19. <input disabled class="layui-input layui-bg-gray" value="{:sysconf('component_appid')}">
  20. <a data-copy="{:sysconf('component_appid')}" class="fa fa-copy right-btn"></a>
  21. </label>
  22. <p class="help-block">开放平台服务 AppID,需要在微信开放平台获取</p>
  23. </div>
  24. <div class="layui-form-item">
  25. <span class="color-green font-w7">开放平台服务</span>
  26. <span class="color-desc margin-left-5">AppSecret</span>
  27. <label class="relative block">
  28. <input disabled class="layui-input layui-bg-gray" value="{:sysconf('component_appsecret')}">
  29. <a data-copy="{:sysconf('component_appsecret')}" class="fa fa-copy right-btn"></a>
  30. </label>
  31. <p class="help-block">开放平台服务 AppSecret,需要在微信开放平台获取</p>
  32. </div>
  33. <div class="layui-form-item">
  34. <span class="color-green font-w7">开放平台消息校验</span>
  35. <span class="color-desc margin-left-5">Token</span>
  36. <label class="relative block">
  37. <input disabled class="layui-input layui-bg-gray" value="{:sysconf('component_token')}">
  38. <a data-copy="{:sysconf('component_token')}" class="fa fa-copy right-btn"></a>
  39. </label>
  40. <p class="help-block">开发者在代替微信接收到消息时,用此 Token 来校验消息</p>
  41. </div>
  42. <div class="layui-form-item">
  43. <span class="color-green font-w7">开放平台消息加解密</span>
  44. <span class="color-desc margin-left-5">AesKey</span>
  45. <label class="relative block">
  46. <input disabled class="layui-input layui-bg-gray" value="{:sysconf('component_encodingaeskey')}">
  47. <a data-copy="{:sysconf('component_encodingaeskey')}" class="fa fa-copy right-btn"></a>
  48. </label>
  49. <p class="help-block">在代替微信收发消息时使用,必须是长度为43位字母和数字组合的字符串</p>
  50. </div>
  51. </div>
  52. <div class="layui-col-md6">
  53. <div class="layui-form-item">
  54. <p class="color-green font-w7">授权发起页域名</p>
  55. <label class="relative block">
  56. <input disabled class="layui-input layui-bg-gray" value="{:request()->host()}">
  57. <a data-copy="{:request()->host()}" class="fa fa-copy right-btn"></a>
  58. </label>
  59. <p class="help-block">从本域名跳转到登录授权页才可以完成登录授权,无需填写域名协议前缀</p>
  60. </div>
  61. <div class="layui-form-item">
  62. <span class="color-green font-w7">授权事件接收地址</span>
  63. <label class="relative block">
  64. <input disabled class="layui-input layui-bg-gray" value="{:url('@service/api.push/ticket','',false,true)}">
  65. <a data-copy="{:url('@service/api.push/ticket','',false,true)}" class="fa fa-copy right-btn"></a>
  66. </label>
  67. <p class="help-block">用于接收取消授权通知、授权成功通知、授权更新通知、接收 TICKET 凭据</p>
  68. </div>
  69. <div class="layui-form-item">
  70. <span class="color-green font-w7">微信消息与事件接收</span>
  71. <label class="relative block">
  72. <input disabled class="layui-input layui-bg-gray" value="{:url('@service/api.push/notify/\$APPID\$','',false,true)}">
  73. <a data-copy="{:url('@service/api.push/notify/\$APPID\$','',false,true)}" class="fa fa-copy right-btn"></a>
  74. </label>
  75. <p class="help-block">通过该 URL 接收微信消息和事件推送,$APPID$ 将被替换为微信 AppId</p>
  76. </div>
  77. <div class="layui-form-item">
  78. <p class="color-green font-w7">客户端系统 Yar 模块接口</p>
  79. <label class="relative block"><input disabled class="layui-input layui-bg-gray" value="{:url('@service/api.client/yar/PARAM','',false,true)}"></label>
  80. <p class="help-block">客户端 Yar 接口,PARAM 规则 AppName-AppId-AppKey-AppType</p>
  81. </div>
  82. <div class="layui-form-item">
  83. <p class="color-green font-w7">客户端系统 Soap 模块接口</p>
  84. <label class="relative block"><input disabled class="layui-input layui-bg-gray" value="{:url('@service/api.client/soap/PARAM','',false,true)}"></label>
  85. <p class="help-block">客户端 Soap 接口,PARAM 规则 AppName-AppId-AppKey-AppType</p>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. {/block}
  92. {block name='style'}
  93. <style>
  94. .right-btn {
  95. top: 0;
  96. right: 0;
  97. width: 38px;
  98. height: 38px;
  99. display: inline-block;
  100. position: absolute;
  101. text-align: center;
  102. line-height: 38px;
  103. }
  104. </style>
  105. {/block}