luoshi hace 6 años
padre
commit
663a40bdd2
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      source/lib/image.js

+ 2 - 3
source/lib/image.js

@@ -194,7 +194,7 @@ class executor extends EventEmitter {
             while (true) {
                 pageNumber++
 
-                let array = await api.getStudents(env.examId, pageNumber, 10, true, undefined, watermark === true, watermark === true)
+                let array = await api.getStudents(env.examId, pageNumber, 100, true, undefined, watermark === true, watermark === true)
                 if (array == undefined || array.length == 0) {
                     break
                 }
@@ -235,8 +235,7 @@ class executor extends EventEmitter {
                 let p = array[i]
                 p.examId = env.examId
                 for (let i = 1; i <= p.picCount; i++) {
-                    p.index = i
-                    await this.downloadFile(append, config.imageUrl.package, template, p, dir, client, bucket)
+                    await this.downloadFile(append, config.imageUrl.package, template, p, dir, client, bucket, i)
                 }
                 count++
                 this.emit('count', count)