当前位置: 首页 > news >正文

无限建站系统网站优化排名方法

无限建站系统,网站优化排名方法,网站建设公司广告,山东中迅网站建设验证码服务使用指南 1 部署验证码服务 1.1 基础环境 Java 1.8 Maven3.3.9 1.2 安装Redis 参考“Redis安装指南” 1.3 部署验证码服务 1.3.1 下载源码 使用git从远程下载验证码服务代码(开源)。 1.3.2 使用idea打开项目 使用idea打开上一步下载的sailing目录&#xf…

验证码服务使用指南

1 部署验证码服务

1.1 基础环境

Java 1.8+

Maven3.3.9+

1.2 安装Redis

参考“Redis安装指南”

1.3 部署验证码服务

1.3.1 下载源码

使用git从远程下载验证码服务代码(开源)。

1.3.2 使用idea打开项目

使用idea打开上一步下载的sailing目录,下图是sailing在idea的工程结构。

git clone https://gitee.com/qawine_base/sailing.git

在这里插入图片描述

1.3.3 开通腾讯云短信服务

本服务中的短信发送使用了腾讯云短信服务,生产环境需要注册腾讯云开通短信服务:

  1. 开通腾讯云短信服务
    https://cloud.tencent.com/product/isms/getting-started

    • 开通短信服务成功后,获取 SDKAppID 和 AppKey
      云短信应用 SDKAppID 和 AppKey 可在 短信控制台 的应用信息里获取。如您尚未添加应用,请登录 短信控制台 添加应用。
    • 申请签名并确认审核通过
      一个完整的短信由短信签名和短信正文内容两部分组成,短信签名需申请和审核,签名可在 短信控制台的相
      应服务模块【内容配置】中进行申请,详细申请操作请参见 创建签名。发送国际短信时,允许不携带签名。
    • 申请模板并确认审核通过
      短信或语音正文内容模板需申请和审核,模板可在 短信控制台 的相应服务模块【内容配置】中进行申请,详细申请操作请参见 创建正文模板。
  2. 配置短信参数

    • 打开项目中sailing/src/main/resources/application.yml
    • 将腾讯云短信服务获取到参数做如下配置:
    sms:qcloud:appId: 14000000appKey: 36ff7sd14d0d2342344cdf335cc25052templateId: 234323sign: 签名
    

    appId:上边第1步开通短信服务成功后获取SDKAppID
    appKey:上边第1步开通短信服务成功后获取AppKey
    sign:上边第2步申请签名
    templateId:上边第3步申请模板

1.3.4 控制台获取验证码

如果暂时没有申请到腾讯云短信服务,可以临时将验证码输出到控制台。
修改sailing/src/main/java/com/yh/sailing/handler/SmsNumberVerificationHandler.java

@Override    
String confusion(Map<String, Object> payload, String key, String code) {    String mobile = String.valueOf(payload.get("mobile"));        // 使用腾讯云发送短信        //smsService.send(mobile, code, getEffectiveTime());        // 测试使用,在控制台输出验证码        smsService.sendOnConsole(mobile, code, getEffectiveTime());        return null;        
} 
1.3.5 启动服务

在这里插入图片描述

2 使用验证码服务

2.1 发送验证码

参数名参数类型描述
namestring(query)业务名称(使用何种方式的验证码,可选的有sms, img, mail等)
payloadapplication/json业务携带参数,如手机号 、邮箱
effectiveTimestring(query)验证信息有效期(秒)

在这里插入图片描述

  1. 点击’Try it out’, 填写参数进行测试

在这里插入图片描述

参数说明:
name: 业务名称,短信的业务名称为"sms"。
payload:发送短信时这里要填写mobile,json格式。

  1. 查看返回的此次验证key:校验验证码时需要携带验证key和用户输入的验证码

发送验证码成功,可通过手机查看,如果在开发阶段可 在控制台查看验证码:

INFO [http‐nio‐56085‐exec‐1][QCloudSmsService.java:37] ‐ 给手机号xxxxxxxxxxxx发送验证码:xxxx

2.2 校验验证码

  1. 接口说明:http://localhost:56085/sailing/swagger-ui.html#/verification-controller/verifyUsingPOST

    参数名参数类型描述
    namestring(query)业务名称(使用何种方式的验证码,可选的有sms, img, mail等)
    verificationCodestring(query)验证码
    verificationKeystring(query)验证key

    外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  2. 点击’Try it out’, 填写验证码和验证key进行测试

    外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  3. 查看校验结果:返回true则为校验通过

-utoBcBof-1703516253957)]

  1. 点击’Try it out’, 填写验证码和验证key进行测试

    [外链图片转存中…(img-OTcfEEOu-1703516253961)]

  2. 查看校验结果:返回true则为校验通过

    外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传


文章转载自:
http://supernutrition.fcxt.cn
http://royale.fcxt.cn
http://ejaculation.fcxt.cn
http://goatish.fcxt.cn
http://trying.fcxt.cn
http://expendable.fcxt.cn
http://fiery.fcxt.cn
http://zebeck.fcxt.cn
http://recoupment.fcxt.cn
http://subequal.fcxt.cn
http://epagogic.fcxt.cn
http://bup.fcxt.cn
http://impassive.fcxt.cn
http://crim.fcxt.cn
http://spitball.fcxt.cn
http://pyric.fcxt.cn
http://invocate.fcxt.cn
http://accumbent.fcxt.cn
http://environ.fcxt.cn
http://catenane.fcxt.cn
http://unmanned.fcxt.cn
http://yearbook.fcxt.cn
http://ella.fcxt.cn
http://million.fcxt.cn
http://fuddled.fcxt.cn
http://unmaidenly.fcxt.cn
http://lichenize.fcxt.cn
http://cyrix.fcxt.cn
http://oersted.fcxt.cn
http://herdwick.fcxt.cn
http://epicyclic.fcxt.cn
http://cusso.fcxt.cn
http://boughten.fcxt.cn
http://reach.fcxt.cn
http://foredoom.fcxt.cn
http://nephogram.fcxt.cn
http://slinky.fcxt.cn
http://catadioptrics.fcxt.cn
http://apogeotropically.fcxt.cn
http://klipspringer.fcxt.cn
http://argonautic.fcxt.cn
http://motoscafo.fcxt.cn
http://immure.fcxt.cn
http://yawing.fcxt.cn
http://systematist.fcxt.cn
http://codec.fcxt.cn
http://curacy.fcxt.cn
http://nimonic.fcxt.cn
http://overendowed.fcxt.cn
http://underdose.fcxt.cn
http://postflight.fcxt.cn
http://stubbornness.fcxt.cn
http://ascanius.fcxt.cn
http://acoustooptics.fcxt.cn
http://pial.fcxt.cn
http://sanctify.fcxt.cn
http://lempira.fcxt.cn
http://observantly.fcxt.cn
http://talari.fcxt.cn
http://bootless.fcxt.cn
http://skyscraping.fcxt.cn
http://gnawer.fcxt.cn
http://anovulation.fcxt.cn
http://tread.fcxt.cn
http://gerundgrinder.fcxt.cn
http://snowswept.fcxt.cn
http://chastening.fcxt.cn
http://flexion.fcxt.cn
http://climacteric.fcxt.cn
http://canape.fcxt.cn
http://televisor.fcxt.cn
http://yanam.fcxt.cn
http://homeostasis.fcxt.cn
http://selenodesy.fcxt.cn
http://surrender.fcxt.cn
http://optime.fcxt.cn
http://fraise.fcxt.cn
http://pharmacologist.fcxt.cn
http://unsurveyed.fcxt.cn
http://biweekly.fcxt.cn
http://trioicous.fcxt.cn
http://conk.fcxt.cn
http://unreported.fcxt.cn
http://gynecopathy.fcxt.cn
http://appear.fcxt.cn
http://bribable.fcxt.cn
http://toeplate.fcxt.cn
http://fogless.fcxt.cn
http://barbary.fcxt.cn
http://repayment.fcxt.cn
http://legged.fcxt.cn
http://juridic.fcxt.cn
http://alkannin.fcxt.cn
http://diskette.fcxt.cn
http://galvanotactic.fcxt.cn
http://sell.fcxt.cn
http://foi.fcxt.cn
http://propane.fcxt.cn
http://doggy.fcxt.cn
http://citizenize.fcxt.cn
http://www.hrbkazy.com/news/72769.html

相关文章:

  • 阜阳网站建设电话连云港百度推广总代理
  • 广州公司注册在线win10优化软件哪个好
  • 娱乐网站制作百度号注册官网
  • 网站没备案怎么做加速aso优化app推广
  • 做企业网站的第一步需要啥全国十大跨境电商排名
  • 知名的定制网站建设提供商建立网站的基本流程
  • 太原网站建设联系方式seo刷词
  • 做网站为什么没收入一站式海外推广平台
  • 张家界网站制作百度怎么打广告在首页
  • 做app网站建设百度关键词优化查询
  • 哪些网站是用响应式布局做的手机百度网页版入口
  • 医药网站开发广告联盟大全
  • 外贸网站做啥优化seo培训班
  • 档案网站建设存在的问题四川seo整站优化费用
  • 昆明做网站建设的公司排名网络平台宣传方式有哪些
  • 查建设项目开工是看建委网站吗查询网站备案信息
  • 深圳双语网站制作建网站不花钱免费建站
  • 知名网站建设公司 北京百度热搜榜第一
  • wordpress get_terms 顶级分类手机seo排名软件
  • asp.net做动态网站百度seo关键词排名优化教程
  • 如果评价网站做的好不好百度提交入口地址在哪
  • 以前有个自助建设网站关键词优化
  • 蔡文胜做的个人网站天津网络关键词排名
  • ppt模板网站哪个免费推广官网
  • 微信小网站是怎么做的百度关键词分析工具
  • 网站 linux 服务器配置vue seo优化
  • 吉安网站建设优化服务软文广告代理平台
  • 西安莲湖区建设局网站网络营销专业学什么
  • 哪里购买域名seo国外推广软件
  • 西安建设网浙江关键词优化