GithubHelp home page GithubHelp logo

testwechat's Introduction

TestWechat

小吴庆同学的微信公众号开发之路:smirk:

第一章 小吴庆踩过的坑 😊

  • 1.报错“org.xmlpull.v1.XmlPullParserException”
    • xstream有依赖的,需要同时加入xmlpull_xx.jar就行了
  • 2.发送消息没反应
    • 检查返回消息文本元素节点大小写,如TextMessage.java里面所有字段大写。我一开始小写的。
  • 3.乱码问题

第二章 基础入门

  • 1.公众号开发环境准备

    • natapp注册、实名认证,下载natapp.exe;
    • 下载学习链接https://natapp.cn/ 购买免费隧道
    • 下载config.ini放到natapp.exe文件同级目录,进行accessToken配置
    • 运行natapp.exe 如果出现相应的信息代表映射成功了。验证方法:可以将localhost:8080替换成映射后的地址能访问就行了。
  • 2.反馈发送消息功能

    • 编写校验Signature类:CheckUtil.java(包含checkSignature、sha1加密方法)
    • 编写WechatServlet.java(包含doget、dopost方法)
    • 编写MessageUtil.java,包含:xml转成 Map集合、将文本消息 转换成xml的方法。
    • 利用自己微信向公众号发送文本,能反馈回发送的文本消息。
  • 3.显示操作菜单

testwechat's People

Contributors

wuqingvika avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.