当前位置: 首页 > news >正文

网站新闻审核怎么做怎么在百度上发帖推广

网站新闻审核怎么做,怎么在百度上发帖推广,做外包网站搭建,购物网站建设过程视频服务器server端 core api 客户端WPF // 检查应用更新 //1、获取最新文件列表 // var files fileService.GetUpgradeFiles(); // 2、文件判断,新增的直接下载;更新的直接下载;删除的直接删除 // 客户端本地需要一个记录…

服务器server端 core api 

客户端WPF

 // 检查应用更新
   //1、获取最新文件列表
   // 
   var files = fileService.GetUpgradeFiles();
   // 2、文件判断,新增的直接下载;更新的直接下载;删除的直接删除
   //    客户端本地需要一个记录,最后更新的记录()

服务器端 api

orm  dal

客户端

1、更新文件对比
2、自动更新程序与逻辑梳理
3、进程间更新数据传输
4、更新数据接收与准备
5、更新程序UI处理
6、文件下载服务接口逻辑

1文件对比 客户端本地对比upgrade_temp.json文件

 // 开始下载文件    从服务器上下载相关文件

// 服务器拿到文件列表中的文件都得下载
if (update_file.Count > 0)
{// 启动更新程序,并且将更新文件列表传给它Process.Start("Zhaoxi.PMS.Client.Upgrade.exe", update_file);// // 下载完成进行服务文件列表的保存(Json序列化)// 这个逻辑需要在Upgrade.exe进程里处理,判断正常更新完成后写入//json_str = System.Text.Json.JsonSerializer.Serialize(update_file);//File.WriteAllText("upgrade_temp.json", json_str);//Application.Current.Shutdown();System.Environment.Exit(0);// 结束进程
}

启动线程 调试 更新程序 进程间更新数据传递

细节  文字省略

进度 <TextBlock Text="{Binding FileName}" VerticalAlignment="Bottom"Grid.Column="1" Grid.ColumnSpan="2" Margin="10,0" FontWeight="Bold"TextTrimming="WordEllipsis"/><TextBlock Text="{Binding FileLenght}" VerticalAlignment="Top" Grid.Row="1" Grid.Column="1" Margin="10,3" FontSize="11" Foreground="#888"/><TextBlock Text="{Binding CompletedLen}" VerticalAlignment="Top" Grid.Column="2" Margin="10,3"Grid.Row="1" FontSize="11" Foreground="#888"/><TextBlock Text="{Binding Progress,StringFormat={}{0:P0}}" VerticalAlignment="Center" HorizontalAlignment="Center"Grid.Column="3" Grid.RowSpan="2"/>

正在更新

  <TextBlock Grid.Row="2" Margin="30,0,0,0" VerticalAlignment="Center"><Run Text="正在更新...."/><Run Text="["/><Run Text="{Binding Completed}"/><Run Text="/"/><Run Text="{Binding TotalCount}"/><Run Text="]"/></TextBlock><Button Content="开始更新" Grid.Row="2" Margin="0,0,30,0" HorizontalAlignment="Right" VerticalAlignment="Center"Padding="10,5" BorderThickness="0"Background="Orange" Foreground="White"Command="{Binding StartCommand}"/>

download sever

注意:关键点 坑点! 下载的文件路径 

     // http://localhost:5000/api/file/download/modules/dll_name
     // http://localhost:5273/api/File/download/none/       Client.BLL.dll

   [HttpGet("download/{p}/{file}")]public ActionResult Download([FromRoute(Name = "p")] string path, [FromRoute] string file){//if (!System.IO.File.Exists(path))//    return NotFound("123123123");// 服务器中存放更新文件的根目录var root = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;string filePath = Path.Combine(root, "WebFiles", "UpgradeFiles");// 如果有子目录,则拼进来if (path != "none")filePath = Path.Combine(filePath, path);// 最终文件路径filePath = Path.Combine(filePath, file);ResFileStream fs = new ResFileStream(filePath, FileMode.Open, FileAccess.Read);var type = new MediaTypeHeaderValue("application/oct-stream").MediaType;// 最终返回文件对象return File(fs, type, fileDownloadName: file);}

internal class ResFileStream : FileStream{public ResFileStream(string path, FileMode mode, FileAccess access) : base(path, mode, access) { }/// <param name="array"></param>/// <param name="offset">偏移量</param>/// <param name="count">读取的最大字节数</param>/// <returns></returns>public override int Read(byte[] array, int offset, int count){// 此处可以限制下载速度//count = 256;//Thread.Sleep(10);return base.Read(array, offset, count);}}

取巧调试 这里坑比较大 哈 备注下

Zhaoxi.PMS.Client.BLL.dll|UpgradeFiles|100
Zhaoxi.PMS.Client.IBLL.dll|UpgradeFiles|110
Zhaoxi.PMS.Client.IDAL.dll|UpgradeFiles|120
 

Zhaoxi.PMS.Client.BLL.dll|Modules|100
Zhaoxi.PMS.Client.IBLL.dll||110
Zhaoxi.PMS.Client.IDAL.dll||120

取巧部分不知道能否上生产环境哈 待验证 目测应该不能

--分割 演示

vip.xspf|.\|4577|101c3def4146d1e7f018583bd7aa5483
箭头.png|.\|1823|8d15c94446a411344c0535898663bdf2
宣讲PPT.txt|.\|1249|f747c130458731baf49b28a3a4d5b587

验证

请求下载

downloadFile 去下载

服务器端

客户端

文件读写权限修改 也不行 ?

--

疑问 这两个程序相互打开关系 杀毒软件不打架?

c端

c端更新程序

测试了下只是开发环境的主流程部分跑起来了。。离生产环境使用 还有诸多细节处理。

%AppData%

wpf 分布式登录 server api

带token jwt

C端 

setup 没有

先潦草的写下后面真能跑起来在来改吧    

先这样吧 。。。坑对新手不是很友好。。。目测跑个测试环境都费劲。。。

http://www.wooajung.com/news/32603.html

相关文章:

  • 郑州做企业网站的企业微信scrm
  • 安徽区块链虚拟币网站开发价格百度关键词屏蔽
  • 政府网站建设管理现状 申论网络推广外包要多少钱
  • 邵东网站建设 www.quan-web.comapp推广方式有哪些
  • asp转换手机网站2018十大网络营销案例
  • 电子科技网站模板网站推广途径和要点
  • 网络推广网站首页大图外链发布软件
  • wordpress仿界面主题百度seo快速排名优化
  • 在网站上如何做天气预报栏百度热搜榜
  • 网站空间优惠网络营销策略是什么
  • 做市场调查分析的网站守游网络推广平台登陆
  • 营销型网站建设市场百度关键词收费标准
  • java android 网站开发长尾关键词快速排名软件
  • 北京市网站建设 维护推荐泰安seo排名
  • apple开发者中心福州seo网站管理
  • 怎么做同城网站网站托管服务商
  • 网站怎么做图片滚动条app广告联盟平台
  • 怎么进成品网站后台郑州推广优化公司
  • 中国做网站最好的公司模板免费下载网站
  • 做电销有什么资料网站网站及搜索引擎优化建议
  • 深圳网站seo哪家快北京营销推广公司
  • 南明区住房和城乡建设局网站上常用的seo工具
  • 双城网站建设公司微信推广加人
  • 四川通江县住房和建设局网站分析网站
  • wordpress服务器安装教程seo标题优化是什么意思
  • 外贸类网站长沙正规竞价优化推荐
  • 网站开发 系统需求文档免费seo网站优化
  • 网站建设会提供哪些服务信息流优化师怎么入行
  • 微信网站开发怎么做手机黄页怎么找
  • 嘉兴白酒网站建设采集站seo提高收录