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

为什么教育网站做的都很烂怎么才能让百度收录网站

为什么教育网站做的都很烂,怎么才能让百度收录网站,wordpress屏蔽索引,WordPress免费主题最好用官方文档: 接收消息与事件: 加密解密文档:加解密库下载与返回码 - 文档 - 企业微信开发者中心 下载java样例 加解密库下载与返回码 - 文档 - 企业微信开发者中心 将解压开的代码 ‘将文件夹:qq\weixin\mp\aes的代码作为工具拷…

官方文档:

接收消息与事件:

加密解密文档:加解密库下载与返回码 - 文档 - 企业微信开发者中心

下载java样例

加解密库下载与返回码 - 文档 - 企业微信开发者中心

将解压开的代码

‘将文件夹:qq\weixin\mp\aes的代码作为工具拷到项目中

pom文件中加入

<!--企业微信中用于加密解码--><dependency><groupId>commons-codec</groupId><artifactId>commons-codec</artifactId></dependency>

编写会回调接口

/*** 企业微信*/
@RestController
@RequestMapping("/api/qyWx")
public class WxQyController extends BaseController {//tokenpublic final static String TOKEN = "企业微信中的";// encodingAESKeypublic final static String ENCODINGAES_KEY = "使用自己生成的企业微信自动生成的有问题测试";//企业IDpublic final static String CORP_ID = "XXXXX";@GetMapping("/callback")public void list(HttpServletRequest request, HttpServletResponse response) throws IOException {// 微信加密签名String msg_signature = request.getParameter("msg_signature");// 时间戳String timestamp = request.getParameter("timestamp");// 随机数String nonce = request.getParameter("nonce");// 随机字符串String echostr = request.getParameter("echostr");System.out.println("request=" + request.getRequestURL());System.out.println("msg_signature=" + msg_signature);System.out.println("timestamp=" + timestamp);System.out.println("nonce=" + nonce);System.out.println("echostr=" + echostr);PrintWriter out = response.getWriter();// 通过检验msg_signature对请求进行校验,若校验成功则原样返回echostr,表示接入成功,否则接入失败String result = null;try {WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(TOKEN, ENCODINGAES_KEY, CORP_ID);result = wxcpt.VerifyURL(msg_signature, timestamp, nonce, echostr);} catch (AesException e) {e.printStackTrace();}if (result == null) {result = TOKEN;}out.print(result);out.close();out = null;}//自主生成EncodingAESKey@RequestMapping("/getEncodingAESKey")public String getEncodingAESKey()  {/*** 主要解决有时候直接使用企业微信那边生成的EncodingAESKey会报错* “Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value",** 使用 commons-codec 加密 32 位字符(我是用的 UUID 生成 ID 后去除 -)* 生成一个 EncodingAESKey 替换微信生成的 EncodingAESKey* Base64.encodeBase64String(UUID.randomUUID().toString().replaceAll("-","").getBytes());* 第二步得到一个 44 位字符串,需要去除末尾等号得到 43 位EncodingAESKey,再去企业微信配置此EncodingAESKey*/String str = Base64.encodeBase64String(UUID.randomUUID().toString().replaceAll("-","").getBytes());return str;}}

http://www.hkea.cn/news/84844/

相关文章:

  • 专业做酒店网站关键词优化排名软件流量词
  • 做网站推广代理上海网络推广服务
  • wordpress可以做大吗搜索引擎优化的英语简称
  • 民治专业做网站公司中国企业500强排行榜
  • 潍坊 公司 网站seo点击排名器
  • 网站可以做赌博广告建站宝盒
  • 运城市做网站英文seo外链
  • 江宁网站建设如何建立网上销售平台
  • 淄博企业网站建设有限公司搜索引擎关键词竞价排名
  • 网站的优点企业专业搜索引擎优化
  • 哪里有软件开发培训机构无锡seo培训
  • 网站怎么做反链seo是什么品牌
  • 技术型网站做哪一种好软文范例大全100
  • 百度搜索什么关键词能搜到网站seo高效优化
  • 网站搭建分站需要多少钱互联网营销策划
  • 音乐网站的音乐怎么做seo先上排名后收费
  • 清河做网站报价seo实战培训王乃用
  • wordpress 回收站在哪个文件夹营销方式和手段
  • 垂直型电商网站如何做快速排名软件哪个好
  • 做产品推广有网站比较好的免费自助建站平台
  • 番禺网站建设公司排名百度推广页面投放
  • 沈阳做微网站百度收录刷排名
  • 网站建设与管理技术发展seo是什么意思如何实现
  • 手机游戏开发制作公司最新seo视频教程
  • 网站优化过度被k长春seo排名公司
  • wordpress移除谷歌字体seo网站推广与优化方案
  • 十大景观设计公司排名seo权重查询
  • 水友做的yyf网站十大免费引流平台
  • 东莞公司网站制作百度识图网页版 在线
  • 企业级网站内容管理解决方案网站关键词快速排名服务