zhaoy 6 months ago
parent
commit
0d737951ab
5 changed files with 9 additions and 16 deletions
  1. +2
    -2
      BPA.SAAS.KitChenManage.Application/Device/DevicePushRecodeServices.cs
  2. +4
    -11
      BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs
  3. +1
    -1
      BPA.SAAS.KitChenManage.Application/Device/Services/IDevicePushRecodeService.cs
  4. +1
    -1
      BPA.SAAS.KitChenManage.Web.Entry/Properties/launchSettings.json
  5. +1
    -1
      BPA.SAAS.KitChenManage.Web.Entry/appsettings.json

+ 2
- 2
BPA.SAAS.KitChenManage.Application/Device/DevicePushRecodeServices.cs View File

@@ -17,9 +17,9 @@ namespace BPA.SAAS.KitChenManage.Application.Device
{
_devicePushRecodeService= devicePushRecodeService;
}
public async Task<string> Test()
public async Task Test()
{
return await _devicePushRecodeService.Test();
await _devicePushRecodeService.Test();
}
/// <summary>
/// 分页


+ 4
- 11
BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs View File

@@ -42,18 +42,11 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services
_mqttClient=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>
/// 分页


+ 1
- 1
BPA.SAAS.KitChenManage.Application/Device/Services/IDevicePushRecodeService.cs View File

@@ -10,7 +10,7 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services
{
public interface IDevicePushRecodeService
{
Task<string> Test();
Task Test();
/// <summary>
/// 分页
/// </summary>


+ 1
- 1
BPA.SAAS.KitChenManage.Web.Entry/Properties/launchSettings.json View File

@@ -22,7 +22,7 @@
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "",
"applicationUrl": "http://192.168.1.19:5007",
"applicationUrl": "http://localhost:5007",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}


+ 1
- 1
BPA.SAAS.KitChenManage.Web.Entry/appsettings.json View File

@@ -8,7 +8,7 @@
}
},
"AllowedHosts": "*",
"baseurl": "http://192.168.1.19:5006/",
"baseurl": "http://localhost:5006/",
"ConnectionConfigs": [
{
"ConnectionString": "server=10.2.1.21;Database=bpa_kitchen_kitchenmanage;Uid=root;Pwd=cygadmin;Allow Zero Datetime=True;Convert Zero Datetime=True;",


Loading…
Cancel
Save