feat: 1:订单列表添加排队信息
2:订单超时短信告警
3:中科低空订单完成通知
This commit is contained in:
+13
@@ -42,4 +42,17 @@ public interface MsgCenterService {
|
||||
*/
|
||||
@PostMapping("/sms/aliyun/send-verify-code")
|
||||
Result<?> sendAliyunVerifyCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
|
||||
|
||||
/**
|
||||
* 发送阿里云模板短信
|
||||
*
|
||||
* @param phone 手机号
|
||||
* @param templateId 模板ID
|
||||
* @param params 模板参数
|
||||
* @return 发送结果
|
||||
*/
|
||||
@PostMapping("/sms/aliyun/send-feign")
|
||||
Result<?> sendAliyunSms(@RequestParam("phone") String phone,
|
||||
@RequestParam("templateId") String templateId,
|
||||
@RequestParam java.util.Map<String, String> params);
|
||||
}
|
||||
|
||||
+8
@@ -5,6 +5,8 @@ import com.central.common.model.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* MsgCenterService降级工厂
|
||||
*/
|
||||
@@ -30,6 +32,12 @@ public class MsgCenterServiceFallbackFactory implements FallbackFactory<MsgCente
|
||||
log.error("发送阿里云验证码短信异常, phone:{}", phone, throwable);
|
||||
return Result.failed("阿里云短信服务不可用");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<?> sendAliyunSms(String phone, String templateId, Map<String, String> params) {
|
||||
log.error("发送阿里云模板短信异常, phone:{}, templateId:{}", phone, templateId, throwable);
|
||||
return Result.failed("阿里云短信服务不可用");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user