form.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
  2. <div class="layui-card-body padding-left-40">
  3. <div class="layui-form-item">
  4. <label class="relative block">
  5. <span class="color-green font-w7">开放平台服务 AppID</span>
  6. <input name="component_appid" required pattern="^.{18}$" maxlength="18" placeholder="请输入18位开放平台服务AppID" value="{:sysconf('component_appid')}" class="layui-input">
  7. </label>
  8. <p class="help-block">开放平台服务 AppID,需要在微信开放平台获取</p>
  9. </div>
  10. <div class="layui-form-item">
  11. <label class="relative block">
  12. <span class="color-green font-w7">开放平台服务 AppSecret</span>
  13. <input name="component_appsecret" required pattern="^.{32}$" maxlength="32" placeholder="请输入32位开放平台服务AppSecret" value="{:sysconf('component_appsecret')}" class="layui-input">
  14. </label>
  15. <p class="help-block">开放平台服务 AppSecret,需要在微信开放平台获取</p>
  16. </div>
  17. <div class="layui-form-item">
  18. <label class="relative block">
  19. <span class="color-green font-w7">开放平台消息校验 Token</span>
  20. <input name="component_token" required placeholder="请输入微信消息校验Token" value="{:sysconf('component_token')}" class="layui-input">
  21. </label>
  22. <p class="help-block">开发者在代替微信接收到消息时,用此 Token 来校验消息</p>
  23. </div>
  24. <div class="layui-form-item">
  25. <label class="relative block">
  26. <span class="color-green font-w7">开放平台消息加解密 AesKey</span>
  27. <input name="component_encodingaeskey" required pattern="^.{43}$" maxlength="43" placeholder="请输入43位微信消息加解密Key" value="{:sysconf('component_encodingaeskey')}" class="layui-input">
  28. </label>
  29. <p class="help-block">在代替微信收发消息时使用,必须是长度为43位字母和数字组合的字符串</p>
  30. </div>
  31. <div class="hr-line-dashed"></div>
  32. <div class="text-center padding-bottom-15 margin-bottom-20">
  33. <button class="layui-btn" type="submit">保存配置</button>
  34. </div>
  35. </div>
  36. </form>