/// <summary> /// 获得库存 /// </summary> /// <returns></returns> public string RequestMaskStock() { var EncodedUrl = UrlHandler.isvData(Config.baseUrl + "/mask/pharmacy-stock?code=" + UserInfo.PharmacyCode); var jsonResponse = WebHelper.GetMethod(EncodedUrl); return(jsonResponse); }
/// <summary> /// 提交预约信息 /// </summary> /// <param name="stocks"></param> /// <returns></returns> public string PostPurchaseInfo(List <StockInfo> stocks, string timestamp) { var EncodedUrl = UrlHandler.isvData(Config.baseUrl + "/mask/book"); var stock = GetAviliableStock(stocks); var response = WebHelper.PostMethod(stock, EncodedUrl, timestamp, UserInfo); return(response); }