...
 
Commits (2)
......@@ -24,11 +24,16 @@ project.xcworkspace
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
.gradle/
.idea/
.DS_Store/
/local.properties
*/build
/captures
build/
release/
.DS_Store
# node.js
#
......
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>android</name>
<name>PolyvRNCloudClassDemo</name>
<comment>Project android created by Buildship.</comment>
<projects>
</projects>
......
......@@ -131,7 +131,7 @@ public class PolyvCloudClassRNModule extends ReactContextBaseJavaModule {
if(code == PolyvErrorCode.success){
progress.show();
checkToken(userId,null,channelId,vid,appId,false,promise);
checkToken(userId,appScrect,channelId,vid,appId,false,promise);
}else {
sendErrorMessage(promise, code);
}
......@@ -161,8 +161,9 @@ public class PolyvCloudClassRNModule extends ReactContextBaseJavaModule {
}
private void checkToken(String userId, String appSecret, String channel, String vid, String appId, boolean live, Promise promise) {
String secret = live ? appSecret : "";
//请求token接口
getTokenDisposable = PolyvLoginManager.checkLoginToken(userId, appSecret, appId,
getTokenDisposable = PolyvLoginManager.checkLoginToken(userId, secret, appId,
channel, vid,
new PolyvrResponseCallback<PolyvChatDomain>() {
@Override
......