Commit 25f143f9 authored by honghy's avatar honghy

调整whatsapp发送接收状态

parent 34cf5e93
......@@ -14,8 +14,12 @@ import cn.iocoder.yudao.framework.sms.core.enums.SmsFrameworkErrorCodeConstants;
public class YCloudSmsCodeMapping implements SmsCodeMapping {
@Override
public ErrorCode apply(String apiCode) {
if ("success".equals(apiCode)) {
return GlobalErrorCodeConstants.SUCCESS;
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