Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-platform
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
f4676097ee09f97b90fa25b63e427ad6517d6580
2 parents
6a43ba69
51882054
Merge branch 'master' into feature/zerobuy
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
7 deletions
apps/activity/models/zero-buy.js
apps/api/controllers/shoes.js
apps/api/controllers/yohood.js
apps/article/controllers/y100.js
apps/passport/controllers/user.js
config/common.js
apps/activity/models/zero-buy.js
View file @
f467609
...
...
@@ -16,7 +16,7 @@ const TABLE_ACT_PRIZE_PRODUCT_USER = 'act_prize_product_user';
const
MINUTE_TIMES
=
60
;
const
PRODUCT_CACHE_TIMES
=
MINUTE_TIMES
/
6
;
// 商品(列表&详情)缓存时间
const
RECENT_CODE_CACHE_TIME
=
MINUTE_TIMES
/
12
;
// 最近获取记录缓存时间
const
MAX_JOIN_TIMES
=
5
;
// 最大活动参与次数
const
MAX_JOIN_TIMES
=
100
;
// 最大活动参与次数
const
MAX_RECOMEND_NUM
=
10
;
// 最大推荐活动数目
const
PAGE_SIZE
=
10
;
...
...
apps/api/controllers/shoes.js
View file @
f467609
...
...
@@ -41,7 +41,7 @@ const shoes = {
}
else
{
let
addFriend
=
await
req
.
ctx
(
ShoesModel
).
addFriends
(
actId
,
unionId
,
friendUnionId
);
console
.
log
(
addFriend
);
//
console.log(addFriend);
return
res
.
json
({
code
:
200
,
data
:
addFriend
,
...
...
apps/api/controllers/yohood.js
View file @
f467609
...
...
@@ -204,7 +204,8 @@ const yohood = {
async
getCoupon
(
req
,
res
)
{
let
{
uid
,
couponId
}
=
req
.
query
;
console
.
log
(
uid
,
couponId
);
// console.log(uid, couponId);
uid
=
parseInt
(
uid
,
10
);
if
(
!
uid
||
!
couponId
)
{
return
res
.
json
({
...
...
apps/article/controllers/y100.js
View file @
f467609
...
...
@@ -104,7 +104,7 @@ const y100 = {
async
y100DeviceScan
(
req
,
res
,
next
)
{
const
{
openId
,
avatar
,
deviceNo
,
actId
,
userName
}
=
req
.
body
;
console
.
log
(
req
.
body
);
//
console.log(req.body);
if
(
!
deviceNo
||
!
openId
)
{
return
res
.
json
({
code
:
400
...
...
apps/passport/controllers/user.js
View file @
f467609
...
...
@@ -187,7 +187,8 @@ const userController = {
if
(
referer
&&
(
referer
.
indexOf
(
'yoho.cn'
)
>=
0
))
{
_
.
set
(
req
.
session
,
'user.wechatReferer'
,
referer
);
_
.
set
(
req
.
session
,
'user.wechatState'
,
state
);
console
.
log
(
req
.
session
);
// console.log(req.session);
res
.
redirect
(
WECHAT_LOGIN_URL
);
}
else
{
res
.
json
({
...
...
@@ -278,7 +279,7 @@ const userController = {
}
console
.
log
(
'wechatUserCallBack:'
,
wechatUserInfo
);
//
console.log('wechatUserCallBack:', wechatUserInfo);
let
user_name
=
''
,
head_img
=
''
,
union_id
=
''
;
...
...
config/common.js
View file @
f467609
...
...
@@ -37,7 +37,7 @@ module.exports = {
},
corsAllowOrigin
:
[
'http://localhost:8081'
,
'http://localhost:
9000
'
,
'http://localhost:
8888
'
,
'http://localhost:1234'
,
'http://localhost:63342'
,
'http://huodong.yoho.cn'
,
...
...
@@ -147,6 +147,7 @@ if (isProduction) {
'https://ad.yoho.cn'
,
'http://feature.yoho.cn'
,
'https://feature.yoho.cn'
,
'http://yunhuodong.net'
,
'http://huodong.yoho.cn'
,
'https://huodong.yoho.cn'
,
'http://ad.yhurl.com'
...
...
Please
register
or
login
to post a comment