测试推送结束
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user