ThinkAdmin/app/wechat/view/config/options_form_thr.html
2023-10-02 18:18:04 +08:00

75 lines
4.4 KiB
PHP
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.

<form action="{:request()->url()}" method="post" data-auto="true" class="layui-form layui-card shadow-none">
<div class="layui-card-header border-0" style="height:auto">
<div class="layui-bg-gray padding-20 border-radius-5" style="line-height:2em">
{:lang('使用微信开放平台授权模式时,微信将授权给第三方服务平台托管系统,消息数据使用 %s 通信协议转发。',['<span>JsonRpc</span>'])}
</div>
</div>
<div class="layui-card-body">
<!--{if !empty($wechat)}-->
<div class="hr-line-dashed"></div>
<div class="layui-form-item margin-bottom-20">
<label class="layui-form-label"><b>QRCode</b><br><span class="nowrap color-desc">公众号二维码</span></label>
<div class="layui-input-block">
<div class="pull-left notselect">
<div class="shadow" data-tips-image data-lazy-src="{$wechat.qrcode_url|down_file}" style="width:95px;height:95px"></div>
</div>
<div class="pull-left padding-left-10">
<p class="nowrap">微信昵称:{$wechat.user_nickname|default='-'}</p>
<p class="nowrap">微信类型:{$wechat.service_type|default='-'} / {$wechat.service_verify == '未认证' ? '未认证' : '<span class="color-green">已认证</span>'}</p>
<p class="nowrap">注册公司:{$wechat.user_company|default='-'}</p>
<p class="nowrap">授权绑定:{$wechat.create_at|format_datetime}</p>
</div>
</div>
</div>
<div class="hr-line-dashed"></div>
<!--{/if}-->
<div class="layui-form-item">
<label class="layui-form-label"><b>Authorize</b><br><span class="nowrap color-desc">绑定微信授权</span></label>
<div class="layui-input-block">
<button type="button" data-href="{$authurl|default=''}" class="layui-btn layui-btn-sm layui-btn-primary">重新绑定公众号</button>
<p class="help-block">点击链接将跳转到微信第三方平台进行公众号授权。</p>
{if !empty($message)}<p class="color-red">{$message|default=''}</p>{/if}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"><b>AppId</b><br><span class="nowrap color-desc">公众号 AppId</span></label>
<div class="layui-input-block">
<input name="wechat.thr_appid" vali-name="微信APPID" placeholder="请输入以wx开头的18位公众号AppId必填" pattern="^wx[0-9a-z]{16}$" maxlength="18" required value="{:sysconf('wechat.thr_appid')}" class="layui-input">
<p class="help-block">众号 appid 通过微信第三方授权自动获取. 若没有值请进行微信第三方授权。</p>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"><b>AppKey</b><br><span class="nowrap color-desc">服务接口密钥</span></label>
<div class="layui-input-block">
<label class="relative block">
<input name="wechat.thr_appkey" vali-name="接口密钥" required placeholder="请输入32位第三方平台接口密钥AppKey必填" value="{:sysconf('wechat.thr_appkey')}" maxlength="32" pattern="^[0-9a-z]{32}$" class="layui-input">
<p class="help-block">公众号服务平台接口密钥, 通过微信第三方授权自动获取, 若没有值请进行微信第三方授权。</p>
</label>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"><b>PushApi</b><br><span class="nowrap color-desc">服务推送接口</span></label>
<div class="layui-input-block">
<label class="relative block">
<input value="{$thrNotify}" disabled class="layui-input layui-bg-gray">
<a data-copy="{$thrNotify}" class="layui-icon layui-icon-release input-right-icon"></a>
</label>
<p class="help-block">公众号绑定服务平台接口通知 URL, 公众号消息接收与回复等。</p>
</div>
</div>
</div>
<div class="hr-line-dashed"></div>
<input type="hidden" name="wechat.type" value="thr">
<div class="layui-form-item text-center">
<button class="layui-btn" type="submit">保存配置</button>
</div>
</form>