修改云端数据 代码改为异步,导入成功提示
This commit is contained in:
1 parent
de9cd4ae65
commit
4fdcc94a91
5 files changed
+176
-70
No files matched your search
@@ -15,10 +15,10 @@ namespace Work.Services
|
||||
public class CloudGoodsService
|
||||
{
|
||||
private const string ServerUrl = "http://119.45.4.202:14312";
|
||||
public static PageData<CloudGoods> GetGoods(GoodsSearchRequest request)
|
||||
public static async Task<PageData<CloudGoods>> GetGoods(GoodsSearchRequest request)
|
||||
{
|
||||
string data = JsonHelper.SerializeObject(request);
|
||||
var html = GetHtml.PostUtf8(ServerUrl + "/Goods/SearchGoods", data, "application/json");
|
||||
var html = await GetHtml.PostUtf8Async(ServerUrl + "/Goods/SearchGoods", data, "application/json");
|
||||
|
||||
var ret = JsonConvert.DeserializeObject<Result<PageData<CloudGoods>>>(html);
|
||||
if (ret.Code != 200)
|
||||
|
||||
Reference in new issue
Block a user