Skip to content

Commit bcbf625

Browse files
committed
fixes
1 parent 67a9b50 commit bcbf625

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ version '0.1'
77

88
repositories {
99
mavenCentral()
10+
maven {
11+
url "https://oss.sonatype.org/service/local/repositories/releases/content/"
12+
}
1013
}
1114

1215
jar {
@@ -23,6 +26,6 @@ jar {
2326

2427

2528
dependencies {
26-
compileOnly "com.github.kayjamlang:executor:0.1.3.16"
29+
compileOnly "com.github.kayjamlang:executor:0.1.3.17-fix1"
2730
testCompile group: 'junit', name: 'junit', version: '4.12'
2831
}

src/main/java/com/github/kayjamlang/request/RequestLibrary.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.github.kayjamlang.core.Argument;
44
import com.github.kayjamlang.core.Type;
55
import com.github.kayjamlang.core.containers.ClassContainer;
6+
import com.github.kayjamlang.executor.Context;
67
import com.github.kayjamlang.executor.libs.Library;
78
import com.github.kayjamlang.executor.libs.main.MapClass;
89

@@ -17,8 +18,8 @@ public class RequestLibrary extends Library {
1718

1819
public RequestLibrary() throws Exception {
1920
addFunction(new LibFunction("buildHttpQuery", (mainContext, context) -> {
20-
Map<Object, Object> queryMap = ((MapClass) context.variables.get("query"))
21-
.getMap(context);
21+
MapClass map = (MapClass) context.variables.get("query");
22+
Map<Object, Object> queryMap = map.getVariable((Context) map.data.get("ctx"), MapClass.FIELD_MAP);
2223

2324
StringBuilder query = new StringBuilder();
2425
for(Map.Entry<Object, Object> entry: queryMap.entrySet()){

0 commit comments

Comments
 (0)