chenken 7 年之前
父節點
當前提交
c3b2326981
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/index.vue

+ 2 - 2
src/views/index.vue

@@ -115,7 +115,7 @@
 		                _this.completeShow = true;
 		                clearInterval(uploadTime);
 		            }
-		        },500);
+		        },1000);
 			},
 			//读取文件
 			readFiles(folderPath) {
@@ -155,7 +155,7 @@
 		        
 		        let photo = fs.readFileSync(studentPhoto.path);
 		        //生成新名称
-		        let md5Hash = CryptoJS.MD5(Base64.encode(studentPhoto.fileName+new Date().getTime())).toString();
+		        let md5Hash = CryptoJS.MD5(Base64.encode(fileName+new Date().getTime())).toString();
 	    		let rootOrgId = localStorage.getItem('rootOrgId');
 		        //根据身份证号码查询学生信息
 		        this.$http.get('/api/ecs_core/studentFaceInfo/identityNumber?orgId='+rootOrgId+'&identityNumber='+fileName, {})