Commit ae108bac by huluobin

update

parent 9c41dbfb
...@@ -57,7 +57,7 @@ public interface GogirlTokenService { ...@@ -57,7 +57,7 @@ public interface GogirlTokenService {
* @param sex * @param sex
* @return * @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;
/** /**
* 美甲师绑定手机号 * 美甲师绑定手机号
......
...@@ -4,6 +4,7 @@ package com.gogirl.application.xcx.impl; ...@@ -4,6 +4,7 @@ package com.gogirl.application.xcx.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.qcloudsms.SmsSingleSenderResult; import com.github.qcloudsms.SmsSingleSenderResult;
import com.gogirl.application.xcx.GogirlTokenService; import com.gogirl.application.xcx.GogirlTokenService;
import com.gogirl.application.xcx.QRCodeService;
import com.gogirl.application.xcx.WechatService; import com.gogirl.application.xcx.WechatService;
import com.gogirl.domain.store.store.StoreManage; import com.gogirl.domain.store.store.StoreManage;
import com.gogirl.domain.store.store.StoreTechnician; import com.gogirl.domain.store.store.StoreTechnician;
...@@ -72,9 +73,10 @@ public class GogirlTokenServiceImpl implements GogirlTokenService { ...@@ -72,9 +73,10 @@ public class GogirlTokenServiceImpl implements GogirlTokenService {
} }
private final CustomerMapper customerMapper; private final CustomerMapper customerMapper;
private final QRCodeService qrCodeService;
@Override @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(); GogirlToken gogirlToken = SessionUtils.getCustomerToken();
Customer customer = customerMapper.selectById(gogirlToken.getCustomerId()); Customer customer = customerMapper.selectById(gogirlToken.getCustomerId());
...@@ -87,6 +89,8 @@ public class GogirlTokenServiceImpl implements GogirlTokenService { ...@@ -87,6 +89,8 @@ public class GogirlTokenServiceImpl implements GogirlTokenService {
} }
if (StringUtils.isNotEmpty(phone)) { if (StringUtils.isNotEmpty(phone)) {
String myQrCode = qrCodeService.myQrCode(customer.getId().toString(), customer.getPhone());
customer.setMyQrcode(myQrCode);
customer.setPhone(phone); customer.setPhone(phone);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment