From cfc62e800d045586ec1b007dcdb41a517b2c82f3 Mon Sep 17 00:00:00 2001 From: zoujiangtao Date: Tue, 19 Nov 2024 15:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=BA=EF=BC=9A=E9=82=B9?= =?UTF-8?q?=E6=B1=9F=E6=B6=9B=20=E4=BF=AE=E6=94=B9=E5=86=85=E5=AE=B9?= =?UTF-8?q?=EF=BC=9AAPI=E6=98=A0=E5=B0=84=E5=85=AC=E5=85=B1=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=20=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=EF=BC=9A2024/1?= =?UTF-8?q?1/19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/mservice/{BIPService.java => ApiService.java} | 5 ++--- .../java/shkd/sys/sys/plugin/form/ApiTestBillPlugin.java | 9 ++++----- 2 files changed, 6 insertions(+), 8 deletions(-) rename sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/{BIPService.java => ApiService.java} (99%) diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/BIPService.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java similarity index 99% rename from sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/BIPService.java rename to sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java index d848993..368b426 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/BIPService.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java @@ -10,7 +10,6 @@ import kd.bos.logging.LogFactory; import kd.bos.orm.query.QCP; import kd.bos.orm.query.QFilter; import kd.bos.servicehelper.BusinessDataServiceHelper; -import shkd.sys.sys.common.ApiEntity; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; @@ -29,8 +28,8 @@ import java.util.*; * @Author Tao * @Date 2024/11/11 */ -public class BIPService { - private static final Log logger = LogFactory.getLog(BIPService.class); +public class ApiService { + private static final Log logger = LogFactory.getLog(ApiService.class); public static String getBIPToken() { String access_token = null; diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiTestBillPlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiTestBillPlugin.java index b0be6fd..a397524 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiTestBillPlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiTestBillPlugin.java @@ -1,11 +1,10 @@ package shkd.sys.sys.plugin.form; -import com.alibaba.fastjson.JSONObject; import kd.bos.bill.AbstractBillPlugIn; import kd.bos.form.control.Toolbar; import kd.bos.form.control.events.ItemClickEvent; import kd.sdk.plugin.Plugin; -import shkd.sys.sys.mservice.BIPService; +import shkd.sys.sys.mservice.ApiService; import java.util.EventObject; @@ -33,13 +32,13 @@ public class ApiTestBillPlugin extends AbstractBillPlugIn implements Plugin { String key = evt.getItemKey(); if ("shkd_token".equals(key)) { - String bipToken = BIPService.getBIPToken(); + String bipToken = ApiService.getBIPToken(); this.getView().showTipNotification(bipToken); } if ("shkd_api".equals(key)) { - JSONObject jsonObject = BIPService.paymentSlipsJson(); - this.getView().showTipNotification(jsonObject.toJSONString()); +// JSONObject jsonObject = BIPService.paymentSlipsJson(); +// this.getView().showTipNotification(jsonObject.toJSONString()); } }