Browse Source

修改错误提示

master
wtp 2 years ago
parent
commit
6accfb9c8d
  1. 2
      src/Znyc.Dispatching.Application/SpareTimeWorker/Server/SpareTimeWorkerService.cs
  2. 3
      src/Znyc.Dispatching.Application/User/Services/UserService.cs

2
src/Znyc.Dispatching.Application/SpareTimeWorker/Server/SpareTimeWorkerService.cs

@ -23,7 +23,7 @@ namespace Znyc.Dispatching.Application.SpareTimeWorker.Server
public async Task VehicleWorker(SpareTimer timer, long count)
{
Console.WriteLine("车辆异常提醒");
////停留
await "http://localhost/api/job/syncstoping".GetAsync();
////超速

3
src/Znyc.Dispatching.Application/User/Services/UserService.cs

@ -206,6 +206,7 @@ namespace Znyc.Dispatching.Application
var json = Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(plaintext);
var phoneNumber = json.phoneNumber;
var purePhoneNumber = json.purePhoneNumber;
//至此,成功获取到手机号
phone = Convert.ToString(purePhoneNumber);
}
@ -214,7 +215,7 @@ namespace Znyc.Dispatching.Application
}
catch (Exception ex)
{
Console.WriteLine($"RegisterUserAsync:{ex.StackTrace}");
Console.WriteLine($"RegisterUserAsync:{ex.Message}");
_logger.LogError(ex.StackTrace);
}
}

Loading…
Cancel
Save