|
- using Furion.RemoteRequest.Extensions;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPA.SAAS.KitChenManage.Application
- {
- public class TestServices: IDynamicApiController
- {
- public async Task<string> Test()
- {
- var getGoodsAttributeurl = "http://localhost:5006/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;
- }
- }
- }
|