}
-
jar {
enabled = true
baseName = "payapi-sdk"
manifest {
attributes('Payapi-SDK-Version': sdkVersion)
}
- from project(':payapi-common').configurations.archives.allArtifacts.files.collect { zipTree(it) }
-}
-
-
-task fullJar(type: Jar, dependsOn: ':payapi-common:jar') {
}
-jar.dependsOn(fullJar)
publish.dependsOn(jar)
\ No newline at end of file
--- /dev/null
+package com.supwisdom.dlpay.framework.util;
+
+import com.supwisdom.dlpay.framework.tenant.TenantContext;
+
+public class Signature {
+ private static final String ROOT_STATIC_KEY = "WfFTw42/2JnHP1Qjs4hnMstgANbhRvbXL84rNg==";
+
+ public static String generateTac(String factor, String data) {
+ String tenant = TenantContext.getTenantSchema();
+ if (tenant == null) {
+ throw new IllegalArgumentException("TenantID 未定义");
+ }
+ return "";
+ }
+}