Skip to content

Commit cc9b64d

Browse files
committed
开放setCountryCode+ 2.2.3版本
1 parent c147c0c commit cc9b64d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

android/src/main/java/cn/jiguang/plugins/core/JCoreModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public void enableAutoWakeup(boolean bool) {
4747
JCollectionAuth.enableAutoWakeup(reactContext,bool);
4848
}
4949
@ReactMethod
50-
public void testCountryCode(ReadableMap readableMap){
50+
public void setCountryCode(ReadableMap readableMap){
5151
if (readableMap == null) {
5252
return;
5353
}
5454
String code = readableMap.getString("code");
5555
if (TextUtils.isEmpty(code)) {
5656
} else {
57-
JCoreInterface.testCountryCode(reactContext,code);
57+
JCoreInterface.setCountryCode(reactContext,code);
5858
}
5959
}
6060

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export default class JCore {
1212
static setAuth(auth) {
1313
JCoreModule.setAuth(auth)
1414
}
15-
static testCountryCode(params) {
15+
static setCountryCode(params) {
1616
if (Platform.OS == "android") {
17-
JCoreModule.testCountryCode(params)
17+
JCoreModule.setCountryCode(params)
1818
}
1919
}
2020
static enableAutoWakeup(enable) {

0 commit comments

Comments
 (0)