Commit da78e039 authored by Smile's avatar Smile
parents fe918478 25f143f9
......@@ -14,7 +14,11 @@ import cn.iocoder.yudao.framework.sms.core.enums.SmsFrameworkErrorCodeConstants;
public class YCloudSmsCodeMapping implements SmsCodeMapping {
@Override
public ErrorCode apply(String apiCode) {
if ("success".equals(apiCode)) {
switch (apiCode) {
case "accepted":
case "read":
case "send":
case "delivered":
return GlobalErrorCodeConstants.SUCCESS;
}
return SmsFrameworkErrorCodeConstants.SMS_UNKNOWN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment