@@ -17,9 +17,9 @@ namespace BPA.SAAS.KitChenManage.Application.Device | |||||
{ | { | ||||
_devicePushRecodeService= devicePushRecodeService; | _devicePushRecodeService= devicePushRecodeService; | ||||
} | } | ||||
public async Task<string> Test() | |||||
public async Task Test() | |||||
{ | { | ||||
return await _devicePushRecodeService.Test(); | |||||
await _devicePushRecodeService.Test(); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 分页 | /// 分页 | ||||
@@ -42,18 +42,11 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services | |||||
_mqttClient=mqttClient; | _mqttClient=mqttClient; | ||||
mqttServer = new(mqttClient); | mqttServer = new(mqttClient); | ||||
} | } | ||||
public async Task<string> Test() | |||||
public async Task Test() | |||||
{ | { | ||||
var getGoodsAttributeurl = "http://localhost:5009/api/ExternalPlatform/Goods/GetGoodsPageList";//获取商品属性 | |||||
var key = "47e5c071-6283-4d9d-8dcb-36ba95aa8db9"; | |||||
var str = "current=1&pageSize=10&"+ key; | |||||
var sign = MD5Encryption.Encrypt(str.ToUpper()); | |||||
var respon = await getGoodsAttributeurl.SetHeaders(new | |||||
{ | |||||
sign= sign, | |||||
key = key | |||||
}).SetHttpMethod(HttpMethod.Get).SetBody("{\"current\":1,\"pageSize\":10}", "application/json").PostAsStringAsync(); | |||||
return respon; | |||||
string Topic = "2222"; | |||||
var sd=await mqttServer.Publish(Topic, new PushData() { Data = "123456"}, "1"); | |||||
//return respon; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 分页 | /// 分页 | ||||
@@ -10,7 +10,7 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services | |||||
{ | { | ||||
public interface IDevicePushRecodeService | public interface IDevicePushRecodeService | ||||
{ | { | ||||
Task<string> Test(); | |||||
Task Test(); | |||||
/// <summary> | /// <summary> | ||||
/// 分页 | /// 分页 | ||||
/// </summary> | /// </summary> | ||||
@@ -22,7 +22,7 @@ | |||||
"dotnetRunMessages": true, | "dotnetRunMessages": true, | ||||
"launchBrowser": true, | "launchBrowser": true, | ||||
"launchUrl": "", | "launchUrl": "", | ||||
"applicationUrl": "http://192.168.1.19:5007", | |||||
"applicationUrl": "http://localhost:5007", | |||||
"environmentVariables": { | "environmentVariables": { | ||||
"ASPNETCORE_ENVIRONMENT": "Development" | "ASPNETCORE_ENVIRONMENT": "Development" | ||||
} | } | ||||
@@ -8,7 +8,7 @@ | |||||
} | } | ||||
}, | }, | ||||
"AllowedHosts": "*", | "AllowedHosts": "*", | ||||
"baseurl": "http://192.168.1.19:5006/", | |||||
"baseurl": "http://localhost:5006/", | |||||
"ConnectionConfigs": [ | "ConnectionConfigs": [ | ||||
{ | { | ||||
"ConnectionString": "server=10.2.1.21;Database=bpa_kitchen_kitchenmanage;Uid=root;Pwd=cygadmin;Allow Zero Datetime=True;Convert Zero Datetime=True;", | "ConnectionString": "server=10.2.1.21;Database=bpa_kitchen_kitchenmanage;Uid=root;Pwd=cygadmin;Allow Zero Datetime=True;Convert Zero Datetime=True;", | ||||