Skip to content
/ wechat Public
forked from VMAPro/wechat

Demo of Wechat integration with SAP Cloud for Customer

Notifications You must be signed in to change notification settings

kifast/wechat

 
 

Repository files navigation

This repo is for my SCN blog series

2017-12-09

Express: Web 应用程序框架

11:25AM: it is NOT NECESSARY to specify proxy in Nodejs code!!! Only set proxy in cmd is far enough

  • 4:33PM 最小系统法可以工作。。。

2017-12-10

Nodejs执行结果和浏览器里结果不一样。。。

2017-12-13

  • node-inspector &
  • node --debug app.js
  • 通过URL http://127.0.0.1:8080/debug?port=5858 就可以进行调试了。 does not work on 2018-04-04!!!!!!!!!!!!!!! Try new built-in tool: node --inspect <your_file>.js

网页授权获取用户基本信息: 订阅号无法开通此接口, 服务号必须通过微信认证 可以使用测试公众号.

2017-12-17 2:47PM

download PHP plugin in home: disable proxy in Eclipse http://localhost:8098/jerrytest.php?code=Swim - 相当于这个php page就是一个code的接收器。

http://download.eclipse.org/tools/pdt/updates/5.0

2017-12-18 6:57PM

could not directly reply html page in wechat. url复制到微信里手动能够打开:

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx73b49bfe02fd3a17&redirect_uri=https://wechatjerry.herokuapp.com/tokenCallback&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect

授权后重定向的回调链接地址, 请使用 urlEncode 对链接进行处理

{modelForview>MasterTitle}

UnhandledPromiseRejectionWarning: Unhandled promise rejection

  • heroku logs -n 1500
  • heroku logs -t

log

API

https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=5_g-u6YuCk3xqfHILzYrK4dOCWPaEwUqafiYH-ZfV5YTlDqg59R32zC2MeBTaspJRSTcVvr49d3jrlxwLMefZIwoBuZfaDfwT5sMQBijv7qSW0tSQKfyugEOqght6VNUasu7N48zfrY-spq9UTZBMcAGAHJU

learn

  • app.use(bodyParser.json());
  • app.use(bodyParser.urlencoded({ extended: false })); 顾名思义,bodyParser.json是用来解析json数据格式的。bodyParser.urlencoded则是用来解析我们通常的form表单提交的数据,也就是请求头中包含这样的信息: Content-Type: application/x-www-form-urlencoded

效果:

  app.route('/').post(function(req,res){
    console.log(req.body);
    res.status(200).end();
  });

2018-07-24

The "scripts" property is a dictionary containing script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.

npm run-script <script name>

About

Demo of Wechat integration with SAP Cloud for Customer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.0%
  • Java 1.3%
  • HTML 1.1%
  • PHP 0.8%
  • CSS 0.5%
  • CoffeeScript 0.3%