mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
fix:会议用户id恢复为之前的占位数,解决php更新了,app客户端没更新信息错误的bug
This commit is contained in:
parent
3c7b7e021f
commit
fb0ef19158
@ -1180,7 +1180,7 @@ class UsersController extends AbstractController
|
||||
}
|
||||
$uid = intval(str_pad(Base::generatePassword(4,1), 9, 8, STR_PAD_LEFT));
|
||||
if($user){
|
||||
$uid = intval(str_pad(Base::generatePassword(4,1), 5, 9, STR_PAD_LEFT).$user->userid);
|
||||
$uid = intval(str_pad(Base::generatePassword(5,1), 6, 9, STR_PAD_LEFT).$user->userid);
|
||||
}
|
||||
try {
|
||||
$service = new AgoraTokenGenerator($meetingSetting['appid'], $meetingSetting['app_certificate'], $meeting->channel, $uid);
|
||||
|
||||
@ -338,7 +338,7 @@ export default {
|
||||
this.$store.dispatch("call", {
|
||||
url: isTourist ? 'users/meeting/tourist' : 'users/basic',
|
||||
data: {
|
||||
userid: uuid,
|
||||
userid: isTourist ? uuid : (uuid+'').substring(6),
|
||||
tourist_id: uuid,
|
||||
}
|
||||
}).then(({data}) => {
|
||||
|
||||
@ -67,7 +67,7 @@ export default {
|
||||
this.getTouristInfo();
|
||||
return 0;
|
||||
}
|
||||
return parseInt( (this.player.uid+"").substring(5) ) || 0
|
||||
return parseInt( (this.player.uid+"").substring(6) ) || 0
|
||||
}
|
||||
return 0
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user