Commit 217533a1 authored by m1991's avatar m1991

Merge remote-tracking branch 'origin/master'

parents 45a8197f 614e4707
......@@ -9,18 +9,19 @@ import org.apache.ibatis.annotations.Param;
*/
public interface MemberPercentMapper extends BaseMapper<MemberPercent> {
/**
* @param memberpercent 入参
* 保存
* @param memberPercent 入参
* @return 1
*/
int add(MemberPercent memberpercent);
int add(MemberPercent memberPercent);
/**
* 编辑
*
* @param memberpercent 入参
* @param memberPercent 入参
* @return 1
*/
int edit(MemberPercent memberpercent);
int edit(MemberPercent memberPercent);
/**
* 删除
......
......@@ -111,7 +111,7 @@ public class BankServiceImpl extends ServiceImpl<BankInfoMapper, BankInfo> imple
}
//2、调用发送短信验证码接口
String templateCode = "";
String templateCode = Constants.Sms.TemplateCode.LOGIN_SF_REGISTER;
String code = MathUtils.random();
boolean bool = smsUtils.sendMessage(user.getUserId(), templateCode, code);
if (!bool) {
......
......@@ -8,6 +8,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -50,6 +51,10 @@ public class BankController {
@ApiImplicitParam(name = "userId", value = "用户id", dataType = "String")
@GetMapping("/getByUserId")
public R<BankInfo> getByUserId(String userId) {
log.info("shop-mall[]BankController[]getByUserId[]input.param.userId:" + userId);
if (StringUtils.isBlank(userId)) {
return R.error("入参为空!");
}
return bankService.getByUserId(userId);
}
......@@ -57,6 +62,10 @@ public class BankController {
@ApiImplicitParam(name = "userId", value = "用户id", dataType = "String")
@GetMapping("/sendSmsCode")
public R<Boolean> sendSmsCode(String userId) {
log.info("shop-mall[]BankController[]sendSmsCode[]input.param.userId:" + userId);
if (StringUtils.isBlank(userId)) {
return R.error("入参为空!");
}
return bankService.bankWithdrawSendSms(userId);
}
......
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