测试推送结束
This commit is contained in:
parent
234a1cbda4
commit
5a18dcf8a0
|
|
@ -53,10 +53,4 @@ public class SmsShopTemplateController {
|
|||
templateService.resubmit(param);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
@PostMapping("/testSend")
|
||||
public CzgResult<Void> resubmit() {
|
||||
templateService.testSend();
|
||||
return CzgResult.success();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,5 +24,4 @@ public interface SmsShopTemplateService extends IService<SmsShopTemplate> {
|
|||
|
||||
void addTemplate(SmsShopTemplateDTO param);
|
||||
void resubmit(SmsShopTemplateDTO param);
|
||||
void testSend();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,13 +64,6 @@ 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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue