测试推送

This commit is contained in:
2025-10-15 18:00:43 +08:00
parent 706b8e64d3
commit 234a1cbda4
3 changed files with 14 additions and 0 deletions

View File

@@ -53,4 +53,10 @@ public class SmsShopTemplateController {
templateService.resubmit(param);
return CzgResult.success();
}
@PostMapping("/testSend")
public CzgResult<Void> resubmit() {
templateService.testSend();
return CzgResult.success();
}
}

View File

@@ -24,4 +24,5 @@ public interface SmsShopTemplateService extends IService<SmsShopTemplate> {
void addTemplate(SmsShopTemplateDTO param);
void resubmit(SmsShopTemplateDTO param);
void testSend();
}

View File

@@ -64,6 +64,13 @@ public class SmsShopTemplateServiceImpl extends ServiceImpl<SmsShopTemplateMappe
sendApplyMsg(template.getShopId(), template.getId());
}
@Override
public void testSend() {
sendApplyMsg(1L, 1L);
rabbitPublisher.sendApplySmsTemplateMsg("413241324,5234523");
}
private void sendApplyMsg(Long shopId, Long templateId) {
// 推送消息 进行 阿里模板申请
rabbitPublisher.sendApplySmsTemplateMsg(shopId + "," + templateId);