config.html 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {extend name="../../admin/view/main"}
  2. {block name="content"}
  3. <div class="layui-badge nowrap think-bg-red padding-5 padding-left-10 font-s15 layui-anim layui-anim-upbit">
  4. 注意:短信接口配置的参数不能随意修改,会影响到用户注册发送短信通知功能,若有需要调整请联系客服!
  5. </div>
  6. <div class="think-box-shadow">
  7. <form action="{$request->url()}" autocomplete="off" class='layui-form layui-card shadow-none' data-auto="true" method="post" onsubmit="return false;" style="width:800px">
  8. <div class="layui-card-body padding-left-40">
  9. <label class="layui-form-item block relative">
  10. <span class="color-green font-w7 margin-right-10">接口查询状态</span><span class="nowrap color-desc">Status</span>
  11. {if empty($result.0)}
  12. <span class="layui-input layui-bg-gray color-red">{$result.1|default=''}</span>
  13. {elseif $result.0 eq 1}
  14. <span class="layui-input layui-bg-gray color-green">平台剩余 {$result.2|default=0} 条可用短信</span>
  15. {else}
  16. <span class="layui-input layui-bg-gray color-text">没有结果</span>
  17. {/if}
  18. <span class="help-block layui-hide">可用短信条数不足时可以联系 18122377655 充值</span>
  19. </label>
  20. <label class="layui-form-item block relative">
  21. <span class="color-green font-w7 margin-right-10">短信授权账号</span><span class="nowrap color-desc">Username</span>
  22. <input class="layui-input" name="zt.username" placeholder="请输入短信授权账号" required value="{:sysconf('zt.username')}">
  23. <span class="help-block">短信授权账号,可以联系 18122377655 获取账号与密码</span>
  24. </label>
  25. <label class="layui-form-item block relative">
  26. <span class="color-green font-w7 margin-right-10">短信授权密码</span><span class="nowrap color-desc">Password</span>
  27. <input class="layui-input" name="zt.password" placeholder="请输入短信授权密码" required value="{:sysconf('zt.password')}">
  28. <span class="help-block">短信授权密码,可以联系 18122377655 获取账号与密码</span>
  29. </label>
  30. <label class="layui-form-item block relative">
  31. <span class="color-green font-w7 margin-right-10">短信发送安全码</span><span class="nowrap color-desc">SecureCode</span>
  32. <input class="layui-input" name="zt.secure_code" placeholder="请输入短信发送安全码" required value="{:sysconf('zt.secure_code')}">
  33. <span class="help-block">短信发送安全码,调用接口发短信时需要传入此参数</span>
  34. </label>
  35. <label class="layui-form-item block relative">
  36. <span class="color-green font-w7 margin-right-10">用户注册通知模板</span><span class="nowrap color-desc">RegisterTemplate</span>
  37. <textarea class="layui-textarea" name="zt.tplcode_register">{:sysconf('zt.tplcode_register')}</textarea>
  38. <span class="help-block">用户注册短信模板,验证码变量使用 {code} 代替</span>
  39. </label>
  40. <div class="hr-line-dashed"></div>
  41. <div class="layui-form-item text-center margin-top-20">
  42. <button class="layui-btn" type="submit">保存配置</button>
  43. </div>
  44. </div>
  45. </form>
  46. </div>
  47. {/block}