|
@@ -353,14 +353,12 @@ namespace XHWK.WKTool.DAL
|
353
|
353
|
{ "totalchunk", VideoInfo.Block.ToString() },
|
354
|
354
|
{ "md5", VideoInfo.FileMD5 }
|
355
|
355
|
};
|
356
|
|
- VideoInfo.Uploaded++;
|
357
|
356
|
//formFields.Add();///教材
|
358
|
357
|
//if()//章节若没选不传
|
359
|
358
|
//{
|
360
|
359
|
// formFields.Add();
|
361
|
360
|
//}
|
362
|
361
|
|
363
|
|
-
|
364
|
362
|
JObject jo = HttpHelper.UploadRequestflow(UploadUrl, byteArray, fileName, formFields);
|
365
|
363
|
//0成功,1失败
|
366
|
364
|
if (jo["code"].ToString() != "0")
|
|
@@ -368,6 +366,10 @@ namespace XHWK.WKTool.DAL
|
368
|
366
|
ErrMessage = jo["msg"].ToString();
|
369
|
367
|
return false;
|
370
|
368
|
}
|
|
369
|
+ else
|
|
370
|
+ {
|
|
371
|
+ VideoInfo.Uploaded++;
|
|
372
|
+ }
|
371
|
373
|
} while (len + VideoInfo.SliceLen < filelen);
|
372
|
374
|
|
373
|
375
|
#region 合并文件
|