Commit 8026bb8e by qwmqiuwenmin

fix

parent 936b48ff
......@@ -355,12 +355,6 @@ public class StaffApiServiceImpl implements StaffApiService {
staff.setNickName((user.getAlias()));
}
String phoneNumber = user.getMobile();
if(StringUtils.isBlank(phoneNumber)){
logger.info("手机号为空:{}:{}",userId,phoneNumber);
res.setMessage("手机号为空");
res.setCode(3);
return res;
}
String[] arr = getNationCodeAndPhoneNumber(phoneNumber);
staff.setPhoneNumber(arr[1]);
staff.setNationCode(arr[0]);
......@@ -384,6 +378,11 @@ public class StaffApiServiceImpl implements StaffApiService {
private String[] getNationCodeAndPhoneNumber(String phoneNumber){
String[] arr = new String[2];
if(StringUtils.isBlank(phoneNumber)){
arr[0] = "";
arr[1] = "";
return arr;
}
arr[0] = "86";
arr[1] = phoneNumber;
if(phoneNumber.startsWith("853")){
......
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