| 
					
				 | 
			
			
				@@ -1448,9 +1448,9 @@ function appearExample(type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function savelxfile(code, title, cb) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   var _token = window.localStorage.Token; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (_token) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $.ajax(`/api/web/v1/blockpy/project/add`, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $.ajax(`https://demo-lecode.smartedu.lenovo.com/api/web/v1/blockpy/project/add`, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       type: "POST", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      headers: { 'Authorization': "Bearer " + _token, 'content-type': "application/json;charset=UTF-8" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      headers: { 'Authorization': "Bearer " + _token}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       data: { code: code, title: title }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       success: (data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cb(data) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1462,10 +1462,10 @@ function savelxfile(code, title, cb) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function getlxfiles(page, cb) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   var _token = window.localStorage.Token; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (_token) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $.ajax(`/api/web/v1/blockpy/project/list`, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $.ajax(`https://demo-lecode.smartedu.lenovo.com/api/web/v1/blockpy/project/list`, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       type: "GET", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       headers: { 'Authorization': "Bearer " + _token }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      data: "pageNumber=" + page + "pageSize=20", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      data: "pageNumber=" + "&" + page + "pageSize=500", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       success: (data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cb(data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1473,17 +1473,31 @@ function getlxfiles(page, cb) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function getlxfilebyid(id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  var _token = window.localStorage.Token; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  if (_token) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $.ajax(`/api/web/v1/blockpy/project/` + id, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      type: "GET", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      headers: { 'Authorization': "Bearer " + _token }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      success: (data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        cb(data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function getFileList(data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  var fileList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  data.data.records.filter(val => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var filename = val.title; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var date = val.updateTime; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var Timestamp = new Date(date).getTime(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    fileList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      filename: filename, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      date: date, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      timestamp: Timestamp, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      filenameId: val.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  console.log(fileList, 'getCloudFileList') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  updateCloudFileList(fileList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  updateCloudFilePanel(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // openCloudFile(CCB.cloudFileList[i].filename); 打开文件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let arr = window.location.search.split('&')[1] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (arr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    fileList.map(x => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (x.filenameid == arr.split('=')[1]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        openCloudFile(x.filename) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return x; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1505,7 +1519,7 @@ function upadtelxfilenamebyid(id, title) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (_token) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $.ajax(`/api/web/v1/blockpy/project/title/update`, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       type: "POST", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      headers: { 'Authorization': "Bearer " + _token, 'content-type': "application/json;charset=UTF-8" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      headers: { 'Authorization': "Bearer " + _token}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       data: { id: id, title: title }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       success: (data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cb(data) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1520,7 +1534,7 @@ function uploadlxfilecontentbyid(id, code) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (_token) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $.ajax(`/api/web/v1/blockpy/project/code/update`, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       type: "POST", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      headers: { 'Authorization': "Bearer " + _token, 'content-type': "application/json;charset=UTF-8" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      headers: { 'Authorization': "Bearer " + _token }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       data: { id: id, code: code }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       success: (data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cb(data) 
			 |