storage-0.html 1.6 KB

12345678910111213141516171819202122232425262728
  1. <div class="layui-form-item">
  2. <label class="layui-form-label label-required">
  3. <span class="color-green font-w7">链接类型</span><br><span class="nowrap color-desc">LinkType</span>
  4. </label>
  5. <div class="layui-input-block">
  6. {if !sysconf('storage.link_type')}{php}sysconf('storage.link_type','none');{/php}{/if}
  7. {foreach ['none'=>'简洁链接','full'=>'完整链接','none+compress'=>'简洁并压缩图片','full+compress'=>'完整并压缩图片'] as $k=>$v}
  8. <label class="think-radio notselect">
  9. {if sysconf('storage.link_type') eq $k}
  10. <input checked type="radio" name="storage.link_type" value="{$k}" lay-ignore> {$v}
  11. {else}
  12. <input type="radio" name="storage.link_type" value="{$k}" lay-ignore> {$v}
  13. {/if}
  14. </label>
  15. {/foreach}
  16. <p class="help-block">类型为“简洁链接”时链接将只返回 hash 地址,而“完整链接”将携带参数保留文件名,图片压缩功能云平台会单独收费。</p>
  17. </div>
  18. </div>
  19. <div class="layui-form-item">
  20. <label class="layui-form-label" for="storage.allow_exts">
  21. <span class="color-green font-w7">允许类型</span><br><span class="nowrap color-desc">AllowExts</span>
  22. </label>
  23. <div class="layui-input-block">
  24. <input id="storage.allow_exts" type="text" name="storage.allow_exts" required value="{:sysconf('storage.allow_exts')}" placeholder="请输入系统文件上传后缀" class="layui-input">
  25. <p class="help-block">设置系统允许上传文件的后缀,多个以英文逗号隔开如:png,jpg,rar,doc</p>
  26. </div>
  27. </div>