修改了阿里云短信服务的配置信息,修改了对商家入驻进行审核的功能模块,添加了权限认证
This commit is contained in:
		@@ -125,7 +125,8 @@ public class MerchantSettlementController {
 | 
				
			|||||||
     * @return
 | 
					     * @return
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    @PostMapping("/updatePassBusiness")
 | 
					    @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");
 | 
					        Integer id = (Integer) map.get("id");
 | 
				
			||||||
        String username = (String) map.get("username");
 | 
					        String username = (String) map.get("username");
 | 
				
			||||||
        String province = (String) map.get("province");
 | 
					        String province = (String) map.get("province");
 | 
				
			||||||
@@ -141,7 +142,8 @@ public class MerchantSettlementController {
 | 
				
			|||||||
     * @throws ClientException
 | 
					     * @throws ClientException
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    @PostMapping("/updateNotPassBusiness")
 | 
					    @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");
 | 
					        Integer id = (Integer) map.get("id");
 | 
				
			||||||
        String phone = (String) map.get("phone");
 | 
					        String phone = (String) map.get("phone");
 | 
				
			||||||
        return merchantSettlementService.updateNotPassBusiness(id,phone);
 | 
					        return merchantSettlementService.updateNotPassBusiness(id,phone);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -46,7 +46,7 @@ public class AliYunSmsUtils {
 | 
				
			|||||||
        //必填:待发送手机号
 | 
					        //必填:待发送手机号
 | 
				
			||||||
        request.setPhoneNumbers(telephone);
 | 
					        request.setPhoneNumbers(telephone);
 | 
				
			||||||
        //必填:短信签名-可在短信控制台中找到
 | 
					        //必填:短信签名-可在短信控制台中找到
 | 
				
			||||||
        request.setSignName("乐益行");
 | 
					        request.setSignName("乐益播");
 | 
				
			||||||
        //必填:短信模板-可在短信控制台中找到
 | 
					        //必填:短信模板-可在短信控制台中找到
 | 
				
			||||||
        request.setTemplateCode("SMS_209265027");
 | 
					        request.setTemplateCode("SMS_209265027");
 | 
				
			||||||
        //可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为
 | 
					        //可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为
 | 
				
			||||||
@@ -86,12 +86,12 @@ public class AliYunSmsUtils {
 | 
				
			|||||||
        //必填:待发送手机号
 | 
					        //必填:待发送手机号
 | 
				
			||||||
        request.setPhoneNumbers(telephone);
 | 
					        request.setPhoneNumbers(telephone);
 | 
				
			||||||
        //必填:短信签名-可在短信控制台中找到
 | 
					        //必填:短信签名-可在短信控制台中找到
 | 
				
			||||||
        request.setSignName("乐益行");
 | 
					        request.setSignName("乐益播");
 | 
				
			||||||
        //必填:短信模板-可在短信控制台中找到
 | 
					        //必填:短信模板-可在短信控制台中找到
 | 
				
			||||||
        request.setTemplateCode("SMS_230656617");
 | 
					        request.setTemplateCode("SMS_230656617");
 | 
				
			||||||
        //可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为
 | 
					        //可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为
 | 
				
			||||||
        //如果为发送验证码 无需修改
 | 
					        //如果为发送验证码 无需修改
 | 
				
			||||||
        request.setTemplateParam("{\"account\":\"" + account + "\",\"account\":\"" + account + "\"}");
 | 
					        request.setTemplateParam("{\"account\":\"" + account + "\",\"password\":\"" + password + "\"}");
 | 
				
			||||||
        //选填-上行短信扩展码(无特殊需求用户请忽略此字段)
 | 
					        //选填-上行短信扩展码(无特殊需求用户请忽略此字段)
 | 
				
			||||||
        //request.setSmsUpExtendCode("90997");
 | 
					        //request.setSmsUpExtendCode("90997");
 | 
				
			||||||
        //可选:outId为提供给业务方扩展字段,最终在短信回执消息中将此值带回给调用者
 | 
					        //可选:outId为提供给业务方扩展字段,最终在短信回执消息中将此值带回给调用者
 | 
				
			||||||
@@ -124,9 +124,9 @@ public class AliYunSmsUtils {
 | 
				
			|||||||
        //必填:待发送手机号
 | 
					        //必填:待发送手机号
 | 
				
			||||||
        request.setPhoneNumbers(telephone);
 | 
					        request.setPhoneNumbers(telephone);
 | 
				
			||||||
        //必填:短信签名-可在短信控制台中找到
 | 
					        //必填:短信签名-可在短信控制台中找到
 | 
				
			||||||
        request.setSignName("乐益行");
 | 
					        request.setSignName("乐益播");
 | 
				
			||||||
        //必填:短信模板-可在短信控制台中找到
 | 
					        //必填:短信模板-可在短信控制台中找到
 | 
				
			||||||
        request.setTemplateCode("SMS_230656617");
 | 
					        request.setTemplateCode("SMS_230656625");
 | 
				
			||||||
        //可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为
 | 
					        //可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为
 | 
				
			||||||
        //如果为发送验证码 无需修改
 | 
					        //如果为发送验证码 无需修改
 | 
				
			||||||
        //request.setTemplateParam("{\"account\":\"" + account + "\",\"account\":\"" + account + "\"}");
 | 
					        //request.setTemplateParam("{\"account\":\"" + account + "\",\"account\":\"" + account + "\"}");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user