|
@@ -616,7 +616,7 @@ namespace Hotline.Api.Controllers
|
|
|
else
|
|
|
strPhoneCode = PhoneNum.Substring(0, 7);
|
|
|
|
|
|
- var data = await _systemMobilAreaRepository.GetAsync(p => p.MobileCode == strPhoneCode, HttpContext.RequestAborted);
|
|
|
+ var data = await _systemMobilAreaRepository.GetAsync(p => p.MobileCode.Trim() == strPhoneCode, HttpContext.RequestAborted);
|
|
|
if (data != null)
|
|
|
{
|
|
|
areaDto.OFlag = data.OFlag == "1" ? "电信" : data.OFlag == "2" ? "移动" : "联通";
|
|
@@ -632,11 +632,11 @@ namespace Hotline.Api.Controllers
|
|
|
{
|
|
|
strPhoneCode = PhoneNum.Substring(0, 3);
|
|
|
|
|
|
- SystemMobilArea data = await _systemMobilAreaRepository.GetAsync(p => p.TelCode == strPhoneCode, HttpContext.RequestAborted);
|
|
|
+ SystemMobilArea data = await _systemMobilAreaRepository.GetAsync(p => p.TelCode.Trim() == strPhoneCode, HttpContext.RequestAborted);
|
|
|
if (data == null)
|
|
|
{
|
|
|
strPhoneCode = PhoneNum.Substring(0, 4);
|
|
|
- data = await _systemMobilAreaRepository.GetAsync(p => p.TelCode == strPhoneCode, HttpContext.RequestAborted);
|
|
|
+ data = await _systemMobilAreaRepository.GetAsync(p => p.TelCode.Trim() == strPhoneCode, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
|
if (data != null)
|