Skip to content

Commit 3fc55b6

Browse files
author
liuyuzhe.316
committed
fix: 设置环境函数修改
1 parent efddbac commit 3fc55b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

volcengine-java-sdk-llmshield/src/main/java/com/volcengine/llmshield/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ public void Close() throws IOException {
103103
* @param IsDev 是否为dev环境
104104
* @return 无
105105
*/
106-
public void SetServiceCode(boolean IsDev) {
107-
Sign.setServiceCode(IsDev);
106+
public void SetServiceDev(boolean IsDev) {
107+
Sign.setServiceDev(IsDev);
108108
}
109109

110110
public String GetServiceCode() {

volcengine-java-sdk-llmshield/src/main/java/com/volcengine/llmshield/Sign.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class Sign {
6767
URLENCODER.set('~');
6868
}
6969

70-
public static synchronized void setServiceCode(boolean IsDev) {
70+
public static synchronized void setServiceDev(boolean IsDev) {
7171
if (!isModified) {
7272
if (IsDev) {
7373
SERVICE = SERVICE_CODE_DEV;

0 commit comments

Comments
 (0)