Authored by 郭成尧

uid

@@ -76,15 +76,6 @@ exports.couponSend = (req, res, next) => { @@ -76,15 +76,6 @@ exports.couponSend = (req, res, next) => {
76 data: '' 76 data: ''
77 }; 77 };
78 78
79 - // APP时用参数中的ID  
80 - if (!uid) {  
81 - uid = app && app.uid ? app.uid : 0;  
82 - }  
83 -  
84 - if (uid === '' || uid === 0 || token === '' || token === 0) {  
85 - return res.jsonp(resultData);  
86 - }  
87 -  
88 // 接口要加 session 校验,跨域异步请求未添加相关参数 79 // 接口要加 session 校验,跨域异步请求未添加相关参数
89 if (req.yoho.isApp) { 80 if (req.yoho.isApp) {
90 if (app.app_version && app.client_type && app.session_key && app.uid) { 81 if (app.app_version && app.client_type && app.session_key && app.uid) {
@@ -102,6 +93,10 @@ exports.couponSend = (req, res, next) => { @@ -102,6 +93,10 @@ exports.couponSend = (req, res, next) => {
102 } 93 }
103 } 94 }
104 95
  96 + if (uid === '' || uid === 0 || token === '' || token === 0) {
  97 + return res.jsonp(resultData);
  98 + }
  99 +
105 model.couponSend(uid, token).then(result => { 100 model.couponSend(uid, token).then(result => {
106 res.set({ 101 res.set({
107 'Cache-Control': 'no-cache', 102 'Cache-Control': 'no-cache',