From 884f10a686d0c576209498a1e6573e7bee4fd172 Mon Sep 17 00:00:00 2001
From: GWY <guweiyiscp096@foxmail.com>
Date: 星期二, 19 四月 2022 10:39:38 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlympusSSBG
---
force-app/main/default/classes/PDFWbrController.cls | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/PDFWbrController.cls b/force-app/main/default/classes/PDFWbrController.cls
index e0c6bbf..07e7fd1 100644
--- a/force-app/main/default/classes/PDFWbrController.cls
+++ b/force-app/main/default/classes/PDFWbrController.cls
@@ -4,10 +4,24 @@
public List<String> getWbrStr() {
List<String> rtn = new List<String>();
if (String.isBlank(tstr) == false) {
- for (Integer i = 0; i < tstr.length(); i++) {
- rtn.add(tstr.substring(i, i + 1));
+ if (tstr.contains('LS鍐呰锤')) {
+ for (Integer i = 0; i < tstr.removeEndIgnoreCase('LS鍐呰锤').length(); i++) {
+ rtn.add(tstr.substring(i, i +1));
+ }
+ }else{
+ for (Integer i = 0; i < tstr.length(); i++) {
+ rtn.add(tstr.substring(i, i + 1));
+ }
}
}
return rtn;
}
+
+ public Boolean getwbrFlag() {
+ Boolean pdf2Flag = false;
+ if (String.isBlank(tstr) == false && tstr.contains('LS鍐呰锤')) {
+ pdf2Flag = true;
+ }
+ return pdf2Flag;
+ }
}
\ No newline at end of file
--
Gitblit v1.9.1