Title: ⚙️ System settings Canonical: https://microi.net/en/doc/advanced/sys-config.html Page-Modified: 2026-10-12T10:49:46.000Z Source: published HTML document body; page revision is not a capability verification date. # ⚙️ System settings System settings are very important. The first thing to do after opening the database is to configure system settings. --- ## 🔐Verification code ### Get verification code image Expand to view JavaScript code (24 lines) js ``` //通过浏览器测试: https://api.microios.com/api/Captcha/getCaptcha?OsClient=micrios //通过查看元素,可在Response Headers中看到返回了captchaid,在提交验证码时,此值必须传入到后端。 //在PC前端或Uni-App移动端的处理方式大致为: GetCaptcha(){ $axios.get(self.DiyCommon.GetApiBase() + '/api/Captcha/getCaptcha', { params: { OsClient : self.OsClient//一定要传入OsClient值 }, responseType: 'arraybuffer' }) .then(response => { if(response && response.headers && response.headers.captchaid){ self.CaptchaId = response.headers.captchaid;//一定要将返回的captchaid存储起来 } return 'data:image/png;base64,' + btoa( new Uint8Array(response.data) .reduce((data, byte) => data + String.fromCharCode(byte), '') ); }).then(data => { $('#CaptchaImg').attr('src', data);//显示验证码图片 }); } ``` --- ### Submit verification code js ``` //参数传入_CaptchaId、_CaptchaValue ``` --- ### Verification code configuration Expand to view JSON configuration (24 lines) json ``` { "CaptchaType": 11, // 验证码类型,值为0-11,具体效果见平台文档 "CodeLength": 1, // 验证码长度, 要放在CaptchaType设置后。当类型为算术表达式时(CaptchaType=10-11),长度代表操作的个数, 建议1。当CaptchaType=0-9时建议填4。 "ExpirySeconds": 300, // 验证码过期秒数 "IgnoreCase": true, // 比较时是否忽略大小写 //"StoreageKeyPrefix": "", // 存储键前缀 "ImageOption": { "Animation": true, // 是否启用动画 "FontSize": 32, // 字体大小 "Width": 150, // 验证码宽度 "Height": 50, // 验证码高度 "BubbleMinRadius": 5, // 气泡最小半径 "BubbleMaxRadius": 10, // 气泡最大半径 "BubbleCount": 3, // 气泡数量 "BubbleThickness": 1.0, // 气泡边沿厚度 "InterferenceLineCount": 2, // 干扰线数量 //"FontFamily": "kaiti", //【暂不支持】 包含actionj,epilog,fresnel,headache,lexo,prefix,progbot,ransom,robot,scandal,kaiti "FrameDelay": 300, // 每帧延迟,Animation=true时有效, 默认30,建议300左右 //"BackgroundColor": "#ffffff", //【暂不支持】 格式: rgb, rgba, rrggbb, or rrggbbaa format to match web syntax, 默认#fff "ForegroundColors": "", // 颜色格式同BackgroundColor,多个颜色逗号分割,随机选取。不填,空值,则使用默认颜色集 "Quality": 100, // 图片质量(质量越高图片越大,gif调整无效可能会更大) "TextBold": false // 粗体 } } ``` CaptchaType | Font | Static graph | Animated GIF | DEFAULT (0) | | | | CHINESE (1) | | | | NUMBER (2) | | | | NUMBER_ZH CN (3) | | | | NUMBER_ZH HK (4) | | | | WORD (5) | | | | WORD_LOWER (6) | | | | WORD_UPPER (7) | | | | WORD_NUMBER_LOWER (8) | | | | WORD_NUMBER_UPPER (9) | | | | ARITHMETIC (10) | | | | ARITHMETIC_ZH (11) | | | |