Utils
@(木)
技术且长,记录日常开发遇到的一些问题
展开
-
生成短信验证码的几种方式
生成短信验证码的几种方式对比1.方式一String code = (Math.random()+"").substring(2,8)2.方式二String code = String.valueOf((int)(Math.random()*9+1)*(Math.pow(10,5)));循环同次数 第一种方式用时是第二种的10倍原创 2021-02-25 21:40:59 · 349 阅读 · 0 评论 -
语音转写(讯飞开放平台)工具类
语音转写(讯飞开放平台)工具类https://www.xfyun.cn/doc/asr/lfasr/Java-SDK.html#_1%E3%80%81%E7%AE%80%E4%BB%8Bimport com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONArray;import com.alibaba.fastjson.JSONObject;import com.iflytek.msp.lfasr.LfasrClient;import原创 2021-01-26 09:31:27 · 799 阅读 · 0 评论