From 9465dc404f7e7cd56100e4859ee0946a3fef7b09 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 05 三月 2026 11:14:40 +0800
Subject: [PATCH] 去除视频界面,以通过审核
---
service/selfpatrolservice.js | 33 ++++++++++++++++++++++++++++-----
1 files changed, 28 insertions(+), 5 deletions(-)
diff --git a/service/selfpatrolservice.js b/service/selfpatrolservice.js
index b21d782..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,10 +49,9 @@
$f.get(fun1);
},
- //涓婁紶鑷贰鏌�
- uploadSelfPatrol: function (userId, taskId, selfPatrol, paths, fun) {
- const fields = [
- {
+ //涓婁紶搴旀�ヨ嚜宸℃煡
+ uploadSelfPatrol: function (userId, taskId, selfPatrol,namePairs, paths, fun) {
+ const fields = [{
name: 'params',
value: JSON.stringify([selfPatrol]),
},
@@ -62,6 +63,10 @@
name: 'taskId',
value: taskId,
},
+ {
+ name: 'fileNames',
+ value: JSON.stringify(namePairs),
+ }
];
const files = [];
paths.forEach(p => {
@@ -123,10 +128,28 @@
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);
};
$f.get(fun1);
},
-};
+
+ // 绛剧讲鑷贰鏌ユ壙璇�
+ signPromise: function (
+ userId,
+ fun,
+ ) {
+ let cb = {
+ url: '/selfPatrol/promise',
+ params: {
+ userId: userId,
+ },
+ };
+ Object.assign(cb, fun);
+
+ $f.post(cb);
+ },
+};
\ No newline at end of file
--
Gitblit v1.9.3