|
@@ -7,7 +7,7 @@ using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
using TEAMModelOS.SDK.Extension;
|
|
|
|
|
|
-namespace TEAMModelOS.SDK.Models.Service
|
|
|
+namespace TEAMModelOS.SDK.DI.CoreAPI
|
|
|
{
|
|
|
public class NotificationService
|
|
|
{
|
|
@@ -16,8 +16,10 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
{
|
|
|
_httpClient = httpClient;
|
|
|
}
|
|
|
- public async Task<int> SendNotification(string clientID, string clientSecret, string location, string url, Notification notification) {
|
|
|
- try {
|
|
|
+ public async Task<int> SendNotification(string clientID, string clientSecret, string location, string url, Notification notification)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
if (location.Contains("China"))
|
|
|
{
|
|
|
location = "China";
|
|
@@ -41,13 +43,16 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
{
|
|
|
return 500;
|
|
|
}
|
|
|
- } catch (Exception ) {
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
return 500;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public class Notification {
|
|
|
+ public class Notification
|
|
|
+ {
|
|
|
/// <summary>
|
|
|
/// App name (hita) 小寫
|
|
|
/// </summary>
|