Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
tjmdp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
other-project
tjmdp
Commits
1af1a654
Commit
1af1a654
authored
Apr 01, 2019
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加活动开启接口
parent
edbc3a7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
RainbowPlanController.java
...qiankun/controller/rainbowplan/RainbowPlanController.java
+15
-0
No files found.
src/main/java/com/qiankun/controller/rainbowplan/RainbowPlanController.java
View file @
1af1a654
...
@@ -248,6 +248,21 @@ public class RainbowPlanController {
...
@@ -248,6 +248,21 @@ public class RainbowPlanController {
return
wish
;
return
wish
;
}
}
@Auth
(
verifyLogin
=
false
,
verifyURL
=
false
)
@RequestMapping
(
value
=
"/isActivity"
,
method
=
RequestMethod
.
GET
)
public
boolean
isActivity
(
@RequestHeader
String
sKey
)
throws
Exception
{
if
(
Strings
.
isNullOrEmpty
(
sKey
)){
throw
new
IllegalArgumentException
(
"请求参数错误"
);
}
String
openid
=
tokenUtil
.
getUsernameFromToken
(
sKey
);
RainbowPlanUser
user
=
userDao
.
findByOpenid
(
openid
);
if
(
user
!=
null
){
//TODO 获取活动开放标识
return
true
;
}
else
{
throw
new
Exception
(
"获取数据失败,请求用户不存在"
);
}
}
@Auth
(
verifyLogin
=
false
,
verifyURL
=
false
)
@Auth
(
verifyLogin
=
false
,
verifyURL
=
false
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment