|
|
@@ -10,6 +10,7 @@ using BPA.SAAS.KitChenManage.Core.Model; |
|
|
|
using Furion.LinqBuilder; |
|
|
|
using Furion.RemoteRequest.Extensions; |
|
|
|
using Longbow.Tasks; |
|
|
|
using Microsoft.AspNetCore.DataProtection.KeyManagement; |
|
|
|
using Microsoft.CodeAnalysis.Operations; |
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
using MQTTnet; |
|
|
@@ -40,6 +41,19 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services |
|
|
|
_mqttClient=mqttClient; |
|
|
|
mqttServer = new(mqttClient); |
|
|
|
} |
|
|
|
public async Task<string> 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; |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 分页 |
|
|
|
/// </summary> |
|
|
|