Commit 1bca3821 by 代凡

添加登录逻辑处理

parent eafb0a00
const PolyvUserConfig = {
User: {
// 初始化所需的数据
vodKey:
"yQRmgnzPyCUYDx6weXRATIN8gkp7BYGAl3ATjE/jHZunrULx8CoKa1WGMjfHftVChhIQlCA9bFeDDX+ThiuBHLjsNRjotqxhiz97ZjYaCQH/MhUrbEURv58317PwPuGEf3rbLVPOa4c9jliBcO+22A==",
decodeKey: "VXtlHmwfS2oYm0CZ",
decodeIv: "2u9gDPKdX6GyQJKU",
viewerId: "rn_viewerId",
nickName: "rn_nickName",
// 输入框默认vid
inputVid: "e97dbe3e649c56a1e58535bd8c5d3924_e"
}
};
module.exports = PolyvUserConfig;
......@@ -10,7 +10,7 @@ export const PolyvCloudClassModule = {
try {
PolyvRNCloudClassLoginModule.init(vodKey, decodeKey, decodeIv, viewerId, nickName)
.then(ret =>{
console.log('result :token:'+ret.token+" isSign:"+ret.isSign)
})
console.log('result end')
return { "code":0 }
......@@ -22,7 +22,7 @@ export const PolyvCloudClassModule = {
},
async login(handler, userId, channelId,vid,appId,appSecrect){
console.log("login_{userId}_{channelId}")
console.log(`login_${userId}_${channelId}`)
try {
await PolyvRNCloudClassLoginModule.login(handler, userId, channelId,vid,appId,appSecrect)
return { "code":0 }
......@@ -32,4 +32,5 @@ export const PolyvCloudClassModule = {
return { code, message }
}
}
}
\ No newline at end of file
}
module.exports = PolyvCloudClassModule;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment