上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 89 下一页
摘要: 接口: [HttpPost] public HttpResponseMessage UploadImg() { var result = new BaseResponse<List<ImageDto>>() { Data = new List<ImageDto>() }; result.Code = 阅读全文
posted @ 2021-10-22 17:06 BloggerSb 阅读(1036) 评论(0) 推荐(0)
摘要: /// 将物理路径转换成相对路径 /// </summary> /// <param name="imagesurl1"></param> /// <returns></returns> private string urlToVirtual(string imagesurl1) { //其实这里的 阅读全文
posted @ 2021-10-19 17:46 BloggerSb 阅读(502) 评论(0) 推荐(0)
摘要: string path = Request.MapPath(@"~\files\"+fileName);//将指定的虚拟路径映射到物理路径 string serverpath = Server.MapPath(@".\files\" + fileName);//返回与web服务器上的指定虚拟路径相对 阅读全文
posted @ 2021-10-19 14:44 BloggerSb 阅读(115) 评论(0) 推荐(0)
摘要: HttpClient和MultipartFormDataContent(传送门)最低适用于.NET Framework 4.5版本 public async Task<WebApiResult> UploadFile(UploadFileModel info, IList<IFormFile> fi 阅读全文
posted @ 2021-10-18 19:00 BloggerSb 阅读(3101) 评论(0) 推荐(0)
摘要: public class HttpRequestClient { private ArrayList bytesArray; private Encoding encoding = Encoding.UTF8; private string boundary = String.Empty; publ 阅读全文
posted @ 2021-10-18 18:57 BloggerSb 阅读(1140) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Specialized; using System.IO; using System.Net; using System.Text; namespace ConsoleApplication1 { public stati 阅读全文
posted @ 2021-10-18 18:47 BloggerSb 阅读(847) 评论(0) 推荐(1)
摘要: copy /Y $(TargetPath) $(SolutionDir)Libcopy /Y $(TargetPath) $(SolutionDir)..\copy /Y $(TargetDir)$(TargetName).xml $(SolutionDir)Libcopy /Y $(TargetD 阅读全文
posted @ 2021-10-15 11:12 BloggerSb 阅读(51) 评论(0) 推荐(0)
摘要: GridView 列太长,设定ItemStyle-Width="200"无效 <%-- <asp:BoundField DataField="Codes" HeaderText="扫描的码" ItemStyle-HorizontalAlign="center" ItemStyle-Width="20 阅读全文
posted @ 2021-10-14 14:50 BloggerSb 阅读(28) 评论(0) 推荐(0)
摘要: 需求分析 从业务需求上来看,邀请码有以下几个强制性的要求: 不可重复 唯一确定 这两点要求首先就排除了 hash code 的可能,因为 hash code 是可以发生碰撞的。然后在强制性要求的基础之上,我们还有一些进一步的需求: 长度不能太长,6-10 位是合适的区间 不容易被推测出 资源消耗尽可 阅读全文
posted @ 2021-09-30 16:48 BloggerSb 阅读(1592) 评论(0) 推荐(0)
摘要: public partial class InvitationCodeHelper { private const int CodeLenth = 6; private static char[] Source_Chars = new char[] { '9', 'P', 'L', 'M', '8' 阅读全文
posted @ 2021-09-30 16:44 BloggerSb 阅读(356) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 89 下一页