2019-09-17 11:36:57 +08:00

114 lines
6.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{extend name="admin@main"}
{block name="button"}
{if auth("edit")}
<button data-modal="{:url('edit')}" class='layui-btn layui-btn-sm layui-btn-primary'>配置平台参数</button>
{/if}
{/block}
{block name="content"}
<div class="relative">
<div class="think-box-shadow border-0 margin-bottom-20">
强烈建议安装 YAR 扩展来实现接口通信SOAP 不能正常显示接口的异常信息
</div>
<div class="think-box-shadow padding-right-40 padding-left-40">
<div class="layui-row layui-col-space18">
<div class="layui-col-md6">
<div class="layui-form-item">
<span class="color-green font-w7">开放平台服务</span>
<span class="color-desc margin-left-5">AppID</span>
<label class="relative block">
<input disabled class="layui-input layui-bg-gray" value="{:sysconf('component_appid')}">
<a data-copy="{:sysconf('component_appid')}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">开放平台服务 AppID需要在微信开放平台获取</p>
</div>
<div class="layui-form-item">
<span class="color-green font-w7">开放平台服务</span>
<span class="color-desc margin-left-5">AppSecret</span>
<label class="relative block">
<input disabled class="layui-input layui-bg-gray" value="{:sysconf('component_appsecret')}">
<a data-copy="{:sysconf('component_appsecret')}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">开放平台服务 AppSecret需要在微信开放平台获取</p>
</div>
<div class="layui-form-item">
<span class="color-green font-w7">开放平台消息校验</span>
<span class="color-desc margin-left-5">Token</span>
<label class="relative block">
<input disabled class="layui-input layui-bg-gray" value="{:sysconf('component_token')}">
<a data-copy="{:sysconf('component_token')}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">开发者在代替微信接收到消息时,用此 Token 来校验消息</p>
</div>
<div class="layui-form-item">
<span class="color-green font-w7">开放平台消息加解密</span>
<span class="color-desc margin-left-5">AesKey</span>
<label class="relative block">
<input disabled class="layui-input layui-bg-gray" value="{:sysconf('component_encodingaeskey')}">
<a data-copy="{:sysconf('component_encodingaeskey')}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">在代替微信收发消息时使用必须是长度为43位字母和数字组合的字符串</p>
</div>
</div>
<div class="layui-col-md6">
<div class="layui-form-item">
<p class="color-green font-w7">授权发起页域名</p>
<label class="relative block">
<input disabled class="layui-input layui-bg-gray" value="{:request()->host()}">
<a data-copy="{:request()->host()}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">从本域名跳转到登录授权页才可以完成登录授权,无需填写域名协议前缀</p>
</div>
<div class="layui-form-item">
<span class="color-green font-w7">授权事件接收地址</span>
<label class="relative block">
<input disabled class="layui-input layui-bg-gray" value="{:url('@service/api.push/ticket','',false,true)}">
<a data-copy="{:url('@service/api.push/ticket','',false,true)}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">用于接收取消授权通知、授权成功通知、授权更新通知、接收 TICKET 凭据</p>
</div>
<div class="layui-form-item">
<span class="color-green font-w7">微信消息与事件接收</span>
<label class="relative block">
<input disabled class="layui-input layui-bg-gray" value="{:url('@service/api.push/notify/\$APPID\$','',false,true)}">
<a data-copy="{:url('@service/api.push/notify/\$APPID\$','',false,true)}" class="fa fa-copy right-btn"></a>
</label>
<p class="help-block">通过该 URL 接收微信消息和事件推送,$APPID$ 将被替换为微信 AppId</p>
</div>
<div class="layui-form-item">
<p class="color-green font-w7">客户端系统 Yar 模块接口</p>
<label class="relative block"><input disabled class="layui-input layui-bg-gray" value="{:url('@service/api.client/yar/PARAM','',false,true)}"></label>
<p class="help-block">客户端 Yar 接口PARAM 规则 AppName-AppId-AppKey-AppType</p>
</div>
<div class="layui-form-item">
<p class="color-green font-w7">客户端系统 Soap 模块接口</p>
<label class="relative block"><input disabled class="layui-input layui-bg-gray" value="{:url('@service/api.client/soap/PARAM','',false,true)}"></label>
<p class="help-block">客户端 Soap 接口PARAM 规则 AppName-AppId-AppKey-AppType</p>
</div>
</div>
</div>
</div>
</div>
{/block}
{block name='style'}
<style>
.right-btn {
top: 0;
right: 0;
width: 38px;
height: 38px;
display: inline-block;
position: absolute;
text-align: center;
line-height: 38px;
}
</style>
{/block}