Commit 53cb71c3 by zhiwj

修改bug

parent 4657014e
package com.gic.enterprise.constant;
import org.apache.commons.lang3.StringUtils;
/**
* @author zhiwj
* @Description: 短信消费应用场景
......@@ -46,7 +44,7 @@ public enum SmsAppEnum {
}
public static String getNameByCode(String code) {
if (StringUtils.isNotBlank(code)) {
if (code != null) {
for (SmsAppEnum smsApp : values()) {
if (smsApp.code.equals(code)) {
return smsApp.name;
......
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