|
@@ -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,22 +108,22 @@ namespace XHWK.WKTool.DAL
|
104
|
108
|
if (resultObj.code == 0 && resultObj.obj != null)
|
105
|
109
|
{
|
106
|
110
|
APP.ResourceAddTwo = resultObj.obj;
|
107
|
|
- foreach (Model_WKData Vdata in APP.WKDataList)
|
108
|
|
- {
|
109
|
|
- if (Vdata.VideoList == null)
|
110
|
|
- {
|
111
|
|
- continue;
|
112
|
|
- }
|
|
111
|
+ //foreach (Model_WKData Vdata in APP.WKDataList)
|
|
112
|
+ //{
|
|
113
|
+ // if (Vdata.VideoList == null)
|
|
114
|
+ // {
|
|
115
|
+ // continue;
|
|
116
|
+ // }
|
113
|
117
|
|
114
|
|
- foreach (Model_Video videoinfo in Vdata.VideoList)
|
115
|
|
- {
|
116
|
|
- if (videoinfo.FileGuid == FileCode)
|
117
|
|
- {
|
118
|
|
- videoinfo.IsUpload = true;
|
119
|
|
- break;
|
120
|
|
- }
|
121
|
|
- }
|
122
|
|
- }
|
|
118
|
+ // foreach (Model_Video videoinfo in Vdata.VideoList)
|
|
119
|
+ // {
|
|
120
|
+ // if (videoinfo.FileGuid == FileCode)
|
|
121
|
+ // {
|
|
122
|
+ // //videoinfo.IsUpload = true;
|
|
123
|
+ // break;
|
|
124
|
+ // }
|
|
125
|
+ // }
|
|
126
|
+ //}
|
123
|
127
|
return true;
|
124
|
128
|
}
|
125
|
129
|
else
|
|
@@ -315,7 +319,7 @@ namespace XHWK.WKTool.DAL
|
315
|
319
|
bool isres = ReportFileMerge(APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
|
316
|
320
|
if (isres)
|
317
|
321
|
{
|
318
|
|
- VideoInfo.IsUpload = true;
|
|
322
|
+ //VideoInfo.IsUpload = true;
|
319
|
323
|
return true;
|
320
|
324
|
}
|
321
|
325
|
else
|
|
@@ -327,7 +331,7 @@ namespace XHWK.WKTool.DAL
|
327
|
331
|
{
|
328
|
332
|
if (string.IsNullOrWhiteSpace(ErrMessage))
|
329
|
333
|
{
|
330
|
|
- VideoInfo.IsUpload = true;
|
|
334
|
+ //VideoInfo.IsUpload = true;
|
331
|
335
|
return true;
|
332
|
336
|
}
|
333
|
337
|
else
|