Authored by 梁志锋

Merge remote-tracking branch 'remotes/origin/hotfix/coupon'

... ... @@ -41,7 +41,6 @@ const getUserStatus = (param) => {
var dest = {};
dest.code = param.code;
dest.title = param.data.h5Title;
dest.returnCode = param.data.returnCode;
dest.mobile = param.data.mobile;
if (param.data.returnCode === 0) {
... ...
... ... @@ -18,7 +18,7 @@
<div class="page">
<div class="gain-coupon-centent hidden">
<div class="coupon">
<img src={{couponPic}}>
<img src={{image couponPic}}>
</div>
<p class="phone" id="mobile"></p>
<p>登录Yoho!Buy有货客户端即可使用</p>
... ...
... ... @@ -13,7 +13,7 @@ module.exports = {
port: 6001,
siteUrl: '//m.yohobuy.com',
domains: {
api: 'http://testapi.yoho.cn:28078/',
api: 'http://devapi.yoho.cn:58078/',
service: 'http://testservice.yoho.cn:28077/'
},
useOneapm: false,
... ... @@ -77,7 +77,7 @@ if (isProduction) {
Object.assign(module.exports, {
appName: 'm.yohobuy.com for test',
domains: {
api: 'http://testapi.yoho.cn:28078/',
api: 'http://devapi.yoho.cn:58078/',
service: 'http://testservice.yoho.cn:28077/'
},
memcache: {
... ...
// 获取 UID
exports.getUid = (req) => {
var _uid = 0,
cookie = req.cookies._UID,
cookieList;
if (req.isApp) {
return req.query.uid || 0;
}
if (cookie) {
cookieList = cookie.split('::');
if (cookieList[1] && !isNaN(cookieList[1])) {
_uid = cookieList[1];
}
}
return _uid;
};