Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
youjj
cloud-platform
Commits
63c74fec
Commit
63c74fec
authored
Jul 16, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新人有礼参加活动
parent
9af953e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+18
-5
ActivityFeign.java
.../java/com/xxfc/platform/activity/feign/ActivityFeign.java
+1
-1
ActivityUserJoinController.java
...fc/platform/activity/rest/ActivityUserJoinController.java
+1
-1
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
63c74fec
...
@@ -263,8 +263,8 @@ public class AppPermissionService {
...
@@ -263,8 +263,8 @@ public class AppPermissionService {
log
.
error
(
"注册:新增用户详情: "
+
userid
);
log
.
error
(
"注册:新增用户详情: "
+
userid
);
//临时会员绑定
//临时会员绑定
insertUserMemberByUserIdAndPhone
(
userid
,
username
);
insertUserMemberByUserIdAndPhone
(
userid
,
username
);
//
自动登录获取优惠卷
//
参加新人活动
authCoupn
(
userid
);
jionActivity
(
userid
);
//创建钱包
//创建钱包
walletBiz
.
createWalletByUserId
(
appUserLogin
.
getId
());
walletBiz
.
createWalletByUserId
(
appUserLogin
.
getId
());
// 登录结果要做做统一处理
// 登录结果要做做统一处理
...
@@ -727,6 +727,16 @@ public class AppPermissionService {
...
@@ -727,6 +727,16 @@ public class AppPermissionService {
}
}
}
}
//注册参与活动
public
void
jionActivity
(
Integer
userId
)
{
try
{
activityFeign
.
join
(
userId
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
;
}
}
/**
/**
* 通过用户id登录*** Unbelievable! ! !
* 通过用户id登录*** Unbelievable! ! !
...
@@ -791,14 +801,16 @@ public class AppPermissionService {
...
@@ -791,14 +801,16 @@ public class AppPermissionService {
setCreateIPInfo
(
rsUserDetail
);
setCreateIPInfo
(
rsUserDetail
);
appUserDetailBiz
.
insertSelective
(
rsUserDetail
);
appUserDetailBiz
.
insertSelective
(
rsUserDetail
);
log
.
error
(
"注册:新增用户详情: "
+
userid
);
log
.
error
(
"注册:新增用户详情: "
+
userid
);
//创建钱包
walletBiz
.
createWalletByUserId
(
appUserLogin
.
getId
());
//临时会员绑定
//临时会员绑定
insertUserMemberByUserIdAndPhone
(
userid
,
username
);
insertUserMemberByUserIdAndPhone
(
userid
,
username
);
//上线绑定
//上线绑定
relationBiz
.
bindByUserId
(
userid
,
small_id
);
relationBiz
.
bindByUserId
(
userid
,
small_id
);
//发送短信通知用户
//发送短信通知用户
thirdFeign
.
sendCode
(
username
,
password
,
SystemConfig
.
TEMPLATECODE
);
thirdFeign
.
sendCode
(
username
,
password
,
SystemConfig
.
TEMPLATECODE
);
//
创建钱包
//
参加新人活动
walletBiz
.
createWalletByUserId
(
appUserLogin
.
getId
()
);
jionActivity
(
userid
);
// 登录结果要做做统一处理
// 登录结果要做做统一处理
JSONObject
data
=
autoLogin
(
userid
,
username
,
headimgurl
,
nickname
);
JSONObject
data
=
autoLogin
(
userid
,
username
,
headimgurl
,
nickname
);
// 到im注册,获取返回结果
// 到im注册,获取返回结果
...
@@ -845,7 +857,8 @@ public class AppPermissionService {
...
@@ -845,7 +857,8 @@ public class AppPermissionService {
AppUserLogin
user
=
appUserLoginBiz
.
checkeUserLogin
(
username
);
AppUserLogin
user
=
appUserLoginBiz
.
checkeUserLogin
(
username
);
JSONObject
data
=
new
JSONObject
();
JSONObject
data
=
new
JSONObject
();
if
(
null
==
user
)
{
if
(
null
==
user
)
{
String
password
=
"12345678"
;
//随机生成密码
String
password
=
UUIDUtils
.
genCodes
(
8
);
data
=
applyRegister
(
username
,
password
,
headimgurl
,
nickname
,
small_id
);
data
=
applyRegister
(
username
,
password
,
headimgurl
,
nickname
,
small_id
);
}
else
{
}
else
{
Integer
userid
=
user
.
getId
();
Integer
userid
=
user
.
getId
();
...
...
xx-activity/xx-activity-api/src/main/java/com/xxfc/platform/activity/feign/ActivityFeign.java
View file @
63c74fec
...
@@ -38,6 +38,6 @@ public interface ActivityFeign {
...
@@ -38,6 +38,6 @@ public interface ActivityFeign {
@ApiOperation
(
"新人有礼参加活动"
)
@ApiOperation
(
"新人有礼参加活动"
)
@RequestMapping
(
value
=
"/user"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/user"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
user
(
@RequestParam
(
value
=
"userId"
,
defaultValue
=
"0"
)
Integer
userId
);
public
ObjectRestResponse
join
(
@RequestParam
(
value
=
"userId"
,
defaultValue
=
"0"
)
Integer
userId
);
}
}
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/rest/ActivityUserJoinController.java
View file @
63c74fec
...
@@ -17,7 +17,7 @@ public class ActivityUserJoinController extends BaseController<ActivityUserJoinB
...
@@ -17,7 +17,7 @@ public class ActivityUserJoinController extends BaseController<ActivityUserJoinB
@ApiOperation
(
"新人有礼参加活动"
)
@ApiOperation
(
"新人有礼参加活动"
)
@RequestMapping
(
value
=
"/user"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/user"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
user
(
public
ObjectRestResponse
join
(
@RequestParam
(
value
=
"userId"
,
defaultValue
=
"0"
)
Integer
userId
){
@RequestParam
(
value
=
"userId"
,
defaultValue
=
"0"
)
Integer
userId
){
baseBiz
.
joinActivity
(
userId
);
baseBiz
.
joinActivity
(
userId
);
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
...
...
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