|
@@ -46,6 +46,10 @@ namespace XHWK.WKTool.DAL
|
46
|
46
|
if (jo["code"].ToString() == "0")
|
47
|
47
|
{
|
48
|
48
|
Message = "";
|
|
49
|
+
|
|
50
|
+ Model.ResultVo<Model_ResourceAddTwo> resultObj = JsonHelper.JsonToObj<Model.ResultVo<Model_ResourceAddTwo>>(jo.ToString());
|
|
51
|
+
|
|
52
|
+ APP.ResourceAddTwo = resultObj.obj;
|
49
|
53
|
//已存在 不允许上传
|
50
|
54
|
return false;
|
51
|
55
|
// if (string.IsNullOrWhiteSpace(jo["obj"].ToString()))
|
|
@@ -104,23 +108,21 @@ namespace XHWK.WKTool.DAL
|
104
|
108
|
if (resultObj.code == 0 && resultObj.obj != null)
|
105
|
109
|
{
|
106
|
110
|
APP.ResourceAddTwo = resultObj.obj;
|
107
|
|
- //上报合并成功后 修改为已成功上传。
|
108
|
|
- foreach (Model_WKData Vdata in APP.WKDataList)
|
109
|
|
- {
|
110
|
|
- if (Vdata.VideoList == null)
|
111
|
|
- {
|
112
|
|
- continue;
|
113
|
|
- }
|
114
|
|
-
|
115
|
|
- foreach (Model_Video videoinfo in Vdata.VideoList)
|
116
|
|
- {
|
117
|
|
- if (videoinfo.FileGuid == FileCode)
|
118
|
|
- {
|
119
|
|
- videoinfo.IsUpload = true;
|
120
|
|
- break;
|
121
|
|
- }
|
122
|
|
- }
|
123
|
|
- }
|
|
111
|
+ //foreach (Model_WKData Vdata in APP.WKDataList)
|
|
112
|
+ //{
|
|
113
|
+ // if (Vdata.VideoList == null)
|
|
114
|
+ // {
|
|
115
|
+ // continue;
|
|
116
|
+ // }
|
|
117
|
+ // foreach (Model_Video videoinfo in Vdata.VideoList)
|
|
118
|
+ // {
|
|
119
|
+ // if (videoinfo.FileGuid == FileCode)
|
|
120
|
+ // {
|
|
121
|
+ // //videoinfo.IsUpload = true;
|
|
122
|
+ // break;
|
|
123
|
+ // }
|
|
124
|
+ // }
|
|
125
|
+ //}
|
124
|
126
|
return true;
|
125
|
127
|
}
|
126
|
128
|
else
|
|
@@ -373,7 +375,7 @@ namespace XHWK.WKTool.DAL
|
373
|
375
|
bool isres = ReportFileMerge(APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
|
374
|
376
|
if (isres)
|
375
|
377
|
{
|
376
|
|
- VideoInfo.IsUpload = true;
|
|
378
|
+ //VideoInfo.IsUpload = true;
|
377
|
379
|
return true;
|
378
|
380
|
}
|
379
|
381
|
else
|
|
@@ -386,7 +388,7 @@ namespace XHWK.WKTool.DAL
|
386
|
388
|
{
|
387
|
389
|
if (string.IsNullOrWhiteSpace(ErrMessage))
|
388
|
390
|
{
|
389
|
|
- VideoInfo.IsUpload = true;
|
|
391
|
+ //VideoInfo.IsUpload = true;
|
390
|
392
|
return true;
|
391
|
393
|
}
|
392
|
394
|
else
|