Commit cd2ae824 authored by 陈志良's avatar 陈志良

分享带来的用户

parent c0bc8fc2
......@@ -7,6 +7,7 @@ var express = require('express'),
var mongoose = require('mongoose');
var forumUserService=require('../../service/forumUserService');
var forumThreadService=require('../../service/forumThreadService');
var httpService=require('../../service/httpService');
var async=require('async');
......@@ -52,3 +53,11 @@ router.post('/user/identifyUser',function(req,res,next){
res.json('success');
}
});
//微信分享带来用户
router.get('/user/from/share', function(req, res, next) {
var mid = req.params.mid,
action = req.params.action,
ent_code = req.session.user.ent_code;
httpService.sendRequest(ent_code,mid,action);
res.status(200).end();
});
\ No newline at end of file
......@@ -213,11 +213,4 @@ router.get('/:ent_code/timeline', function(req, res, next) {
httpService.sendRequest(ent_code,mid,action);
res.status(200).end();
});
//微信分享接口
router.get('/:ent_code/user/from/share', function(req, res, next) {
var mid = req.params.mid,
action = req.params.action,
ent_code = req.session.user.ent_code;
httpService.sendRequest(ent_code,mid,action);
res.status(200).end();
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment