|
@@ -1,6 +1,7 @@
|
|
using Autofac.Core;
|
|
using Autofac.Core;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
+using OASystem.API.OAMethodLib;
|
|
using OASystem.API.OAMethodLib.BaiduApi;
|
|
using OASystem.API.OAMethodLib.BaiduApi;
|
|
using OASystem.API.OAMethodLib.TencentCloudAPI;
|
|
using OASystem.API.OAMethodLib.TencentCloudAPI;
|
|
using OASystem.Domain.Dtos.Baidu;
|
|
using OASystem.Domain.Dtos.Baidu;
|
|
@@ -117,7 +118,17 @@ namespace OASystem.API.Controllers
|
|
string lastName = words.Substring(0, 1);
|
|
string lastName = words.Substring(0, 1);
|
|
string name = words.Substring(1);
|
|
string name = words.Substring(1);
|
|
client.LastName = lastName;
|
|
client.LastName = lastName;
|
|
- client.Name = name;
|
|
|
|
|
|
+ client.FirstName = name;
|
|
|
|
+ string lastNamePinYin = lastName.GetTotalPingYin()[0].ToUpper();
|
|
|
|
+ string firstNamePinYin = "";
|
|
|
|
+
|
|
|
|
+ for (int n = 0; n < name.Length; n++)
|
|
|
|
+ {
|
|
|
|
+ firstNamePinYin += name.GetTotalPingYin()[0].ToUpper() + " ";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ client.Pinyin = lastNamePinYin + "//"+ firstNamePinYin;
|
|
|
|
+
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -126,11 +137,11 @@ namespace OASystem.API.Controllers
|
|
{
|
|
{
|
|
string[] names = words.Split(' ');
|
|
string[] names = words.Split(' ');
|
|
client.LastName = names[1];
|
|
client.LastName = names[1];
|
|
- client.Name = names[0];
|
|
|
|
|
|
+ client.FirstName = names[0];
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- client.Name = words;
|
|
|
|
|
|
+ client.FirstName = words;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -158,7 +169,7 @@ namespace OASystem.API.Controllers
|
|
}
|
|
}
|
|
else if (values.Equals("Organization"))
|
|
else if (values.Equals("Organization"))
|
|
{
|
|
{
|
|
- client.Company = words;
|
|
|
|
|
|
+ client.CompanyFullName = words;
|
|
}
|
|
}
|
|
else if (values.Equals("Job"))
|
|
else if (values.Equals("Job"))
|
|
{
|
|
{
|