|
@@ -208,17 +208,6 @@ export default {
|
|
|
const photoFile = fs.readFileSync(studentPhotoPath);
|
|
|
const rootOrgId = localStorage.getItem("rootOrgId");
|
|
|
|
|
|
- {
|
|
|
- // 执行过程中的元信息
|
|
|
- this.reqNum = window.requestInProcessingTotal;
|
|
|
- this.faceppConcurrencyErrorNum = window.faceppConcurrencyErrorNum;
|
|
|
- this.faceppConcurrencyErrorNumPerMinute =
|
|
|
- window.faceppConcurrencyErrorNumPerMinute;
|
|
|
- this.processSpeed =
|
|
|
- (this.successNum + this.errorNum - this.skipNum) /
|
|
|
- (Date.now() - this.startProcessTime);
|
|
|
- }
|
|
|
-
|
|
|
//生成新名称
|
|
|
let serverPhotoPath = null;
|
|
|
const upyunPhotoPath = (() => {
|
|
@@ -263,6 +252,17 @@ export default {
|
|
|
};
|
|
|
await this.saveStudentFaceInfoByPut(photoInfo);
|
|
|
this.finishOnePhotoSuccess("处理成功", studentPhotoPath);
|
|
|
+
|
|
|
+ {
|
|
|
+ // 执行过程中的元信息
|
|
|
+ this.reqNum = window.requestInProcessingTotal;
|
|
|
+ this.faceppConcurrencyErrorNum = window.faceppConcurrencyErrorNum;
|
|
|
+ this.faceppConcurrencyErrorNumPerMinute =
|
|
|
+ window.faceppConcurrencyErrorNumPerMinute;
|
|
|
+ this.processSpeed =
|
|
|
+ (this.successNum + this.errorNum - this.skipNum) /
|
|
|
+ (Date.now() - this.startProcessTime);
|
|
|
+ }
|
|
|
} catch (err) {
|
|
|
console.log(err);
|
|
|
this.finishOnePhotoFail(err, studentPhotoPath);
|