Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
Details
Activity
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
huluobin
gogirl-miniapp-backend
Commits
ae108bac
Commit
ae108bac
authored
Mar 20, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9c41dbfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
GogirlTokenService.java
...n/java/com/gogirl/application/xcx/GogirlTokenService.java
+1
-1
GogirlTokenServiceImpl.java
...m/gogirl/application/xcx/impl/GogirlTokenServiceImpl.java
+5
-1
No files found.
src/main/java/com/gogirl/application/xcx/GogirlTokenService.java
View file @
ae108bac
...
...
@@ -57,7 +57,7 @@ public interface GogirlTokenService {
* @param sex
* @return
*/
Customer
bindPhoneAndCode
(
String
phone
,
String
code
,
String
realName
,
Date
birthday
,
String
sex
);
Customer
bindPhoneAndCode
(
String
phone
,
String
code
,
String
realName
,
Date
birthday
,
String
sex
)
throws
Exception
;
/**
* 美甲师绑定手机号
...
...
src/main/java/com/gogirl/application/xcx/impl/GogirlTokenServiceImpl.java
View file @
ae108bac
...
...
@@ -4,6 +4,7 @@ package com.gogirl.application.xcx.impl;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.github.qcloudsms.SmsSingleSenderResult
;
import
com.gogirl.application.xcx.GogirlTokenService
;
import
com.gogirl.application.xcx.QRCodeService
;
import
com.gogirl.application.xcx.WechatService
;
import
com.gogirl.domain.store.store.StoreManage
;
import
com.gogirl.domain.store.store.StoreTechnician
;
...
...
@@ -72,9 +73,10 @@ public class GogirlTokenServiceImpl implements GogirlTokenService {
}
private
final
CustomerMapper
customerMapper
;
private
final
QRCodeService
qrCodeService
;
@Override
public
Customer
bindPhoneAndCode
(
String
phone
,
String
code
,
String
realName
,
Date
birthday
,
String
sex
)
{
public
Customer
bindPhoneAndCode
(
String
phone
,
String
code
,
String
realName
,
Date
birthday
,
String
sex
)
throws
Exception
{
GogirlToken
gogirlToken
=
SessionUtils
.
getCustomerToken
();
Customer
customer
=
customerMapper
.
selectById
(
gogirlToken
.
getCustomerId
());
...
...
@@ -87,6 +89,8 @@ public class GogirlTokenServiceImpl implements GogirlTokenService {
}
if
(
StringUtils
.
isNotEmpty
(
phone
))
{
String
myQrCode
=
qrCodeService
.
myQrCode
(
customer
.
getId
().
toString
(),
customer
.
getPhone
());
customer
.
setMyQrcode
(
myQrCode
);
customer
.
setPhone
(
phone
);
}
...
...
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