修改了阿里云短信服务的配置信息,修改了对商家入驻进行审核的功能模块,添加了权限认证

This commit is contained in:
XinYi Song 2021-12-21 16:58:09 +08:00
parent dedd0c24b2
commit 4dad1e871c
2 changed files with 9 additions and 7 deletions

View File

@ -125,7 +125,8 @@ public class MerchantSettlementController {
* @return
*/
@PostMapping("/updatePassBusiness")
public String updatePassBusiness(@RequestBody Map map) throws ClientException {
@PreAuthorize("hasAnyAuthority('auth_administor')")
public String updatePassBusiness(@RequestBody Map map,@RequestHeader(value="Authorization") String token) throws ClientException {
Integer id = (Integer) map.get("id");
String username = (String) map.get("username");
String province = (String) map.get("province");
@ -141,7 +142,8 @@ public class MerchantSettlementController {
* @throws ClientException
*/
@PostMapping("/updateNotPassBusiness")
public String updateNotPassBusiness(@RequestBody Map map) throws ClientException {
@PreAuthorize("hasAnyAuthority('auth_administor')")
public String updateNotPassBusiness(@RequestBody Map map,@RequestHeader(value="Authorization") String token) throws ClientException {
Integer id = (Integer) map.get("id");
String phone = (String) map.get("phone");
return merchantSettlementService.updateNotPassBusiness(id,phone);

View File

@ -46,7 +46,7 @@ public class AliYunSmsUtils {
//必填:待发送手机号
request.setPhoneNumbers(telephone);
//必填:短信签名-可在短信控制台中找到
request.setSignName("乐益");
request.setSignName("乐益");
//必填:短信模板-可在短信控制台中找到
request.setTemplateCode("SMS_209265027");
//可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}",此处的值为
@ -86,12 +86,12 @@ public class AliYunSmsUtils {
//必填:待发送手机号
request.setPhoneNumbers(telephone);
//必填:短信签名-可在短信控制台中找到
request.setSignName("乐益");
request.setSignName("乐益");
//必填:短信模板-可在短信控制台中找到
request.setTemplateCode("SMS_230656617");
//可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}",此处的值为
//如果为发送验证码 无需修改
request.setTemplateParam("{\"account\":\"" + account + "\",\"account\":\"" + account + "\"}");
request.setTemplateParam("{\"account\":\"" + account + "\",\"password\":\"" + password + "\"}");
//选填-上行短信扩展码(无特殊需求用户请忽略此字段)
//request.setSmsUpExtendCode("90997");
//可选:outId为提供给业务方扩展字段,最终在短信回执消息中将此值带回给调用者
@ -124,9 +124,9 @@ public class AliYunSmsUtils {
//必填:待发送手机号
request.setPhoneNumbers(telephone);
//必填:短信签名-可在短信控制台中找到
request.setSignName("乐益");
request.setSignName("乐益");
//必填:短信模板-可在短信控制台中找到
request.setTemplateCode("SMS_230656617");
request.setTemplateCode("SMS_230656625");
//可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}",此处的值为
//如果为发送验证码 无需修改
//request.setTemplateParam("{\"account\":\"" + account + "\",\"account\":\"" + account + "\"}");