Example #1
0
		common.xmlToJson(result, function(json) {
			var reply = weixin.process_msg(json, res);
			if (json.Event == "unsubscribe") {
				
			} else {
				res.type(".xml");
				res.send(reply);
			}
		})
Example #2
0
	var valid_token = function() {
		var result = weixin.validateToken(req.query);
		res.end(result);
	}