感谢巨人们,站在巨人的肩膀上. 参考: http://blog.sina.com.cn/s/blog_80a6423d0102wm74.html#commonComment 1 点击生成验证码,发送到应用服务器,服务器随机生成6位验证码 private int puductCode(){ return (int)((Math.random()*9+1)*100000); } 2 根据 time, SECRET,code, phoneNum, 计算出一个token public static St…