diff --git a/src/main/java/com/xkrs/controller/MerchantSettlementController.java b/src/main/java/com/xkrs/controller/MerchantSettlementController.java index 04c62ac..6aa798f 100644 --- a/src/main/java/com/xkrs/controller/MerchantSettlementController.java +++ b/src/main/java/com/xkrs/controller/MerchantSettlementController.java @@ -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); diff --git a/src/main/java/com/xkrs/utils/AliYunSmsUtils.java b/src/main/java/com/xkrs/utils/AliYunSmsUtils.java index d789572..daec625 100644 --- a/src/main/java/com/xkrs/utils/AliYunSmsUtils.java +++ b/src/main/java/com/xkrs/utils/AliYunSmsUtils.java @@ -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 + "\"}");