摘要: 原理:设备A成功登录后,会以当前会话的SessionID作为键,用户id作为值,保存在application(保存在服务器的全局变量,多用户可以共享)变量中。设备B用同账号登录后会判断application里是否已存在用户id作为值的数据,存在则将该值设为“_... 阅读全文
posted @ 2018-12-25 16:33 漂移青春 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 客户端JS代码: websocket client 连接 发送 关闭 服务端代码: using System;using System.Collections.Gener... 阅读全文
posted @ 2018-12-20 21:00 漂移青春 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 首先添加两个引用,用于解压ZIP(ZipArchive类) 前端POST方式上传ZIP文件。 using GDSMBLL;using GDSMCommon;using GDSMModel;using Newtonsoft.Json;using System;... 阅读全文
posted @ 2018-12-13 16:41 漂移青春 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 功能:自己写的一个组件,根据调用传过来的的fileType判断是上传视频还是图片还是音频。可以选择多文件上传,同时也可以暂停,继续,取消,断网重连续传。如果上传的是视频,会自动转为mp4,自动截取一帧图片。如果上传的是.tif格式图片则转换为png格式(用的f... 阅读全文
posted @ 2018-12-10 17:37 漂移青春 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsolePractice 8 { 9 class CArray 10 { 11 private int[] arr; 12 //数组大小 13 private int upper; 14 //下标 15 ... 阅读全文
posted @ 2013-12-04 01:10 漂移青春 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsolePractice 8 { 9 public class Node 10 { 11 public int data; 12 public Node(int key) 13 { 14 data = k... 阅读全文
posted @ 2013-12-04 00:09 漂移青春 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsolePractice 8 { 9 class CArray 10 { 11 private int[] arr; 12 //数组大小 13 private int upper; 14 //下标 15 ... 阅读全文
posted @ 2013-12-02 23:58 漂移青春 阅读(682) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsolePractice 8 { 9 class CArray 10 { 11 private int[] arr; 12 //数组大小 13 private int upper; 14 //下标 15 ... 阅读全文
posted @ 2013-12-02 21:39 漂移青春 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsolePractice 8 { 9 class CArray 10 { 11 private int[] arr; 12 //数组大小 13 private int upper; 14 //下标 15 ... 阅读全文
posted @ 2013-11-28 18:02 漂移青春 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsolePractice 8 { 9 class CArray 10 { 11 private int[] arr; 12 //数组大小 13 private int upper; 14 //下标 15 ... 阅读全文
posted @ 2013-11-28 17:03 漂移青春 阅读(194) 评论(0) 推荐(0) 编辑