From f14ea940fb32105de8b592992e3f53c62f31d84d Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 22 一月 2026 16:42:51 +0800
Subject: [PATCH] 2026.1.22
---
service/selfpatrolservice.js | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/service/selfpatrolservice.js b/service/selfpatrolservice.js
index 02e5350..6ac980d 100644
--- a/service/selfpatrolservice.js
+++ b/service/selfpatrolservice.js
@@ -1,6 +1,8 @@
+import serviceutils from "./serviceutils";
const Multipart = require('../utils/Multipart.min');
const $f = require('./baserequest');
const util = require('../utils/util');
+
module.exports = {
/**
@@ -47,8 +49,8 @@
$f.get(fun1);
},
- //涓婁紶鑷贰鏌�
- uploadSelfPatrol: function (userId, taskId, selfPatrol, paths, fun) {
+ //涓婁紶搴旀�ヨ嚜宸℃煡
+ uploadSelfPatrol: function (userId, taskId, selfPatrol,namePairs, paths, fun) {
const fields = [{
name: 'params',
value: JSON.stringify([selfPatrol]),
@@ -61,6 +63,10 @@
name: 'taskId',
value: taskId,
},
+ {
+ name: 'fileNames',
+ value: JSON.stringify(namePairs),
+ }
];
const files = [];
paths.forEach(p => {
@@ -122,6 +128,8 @@
r.path1 = r.path1.split(';').map((value, index) => {
return $f.basePicUrl + value;
});
+ r._files = serviceutils.formatLedgerPath(r.path1)
+ r._fileType = serviceutils.judgeLedgerFileType(r._files)
}
cb.success(res);
};
--
Gitblit v1.9.3