|
|
@@ -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> |
|
|
|
/// 分页 |
|
|
|