入会时,记录用户当前使用版本
This commit is contained in:
parent
ecf913ce88
commit
1d67b27a1a
|
|
@ -21,3 +21,9 @@ export const GetOpenId = (code: string) => Request({
|
||||||
url: `/pub/mini-openid?js_code=${code}`,
|
url: `/pub/mini-openid?js_code=${code}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
|
export const PostHomeVerLog = (data: any) =>
|
||||||
|
Request({
|
||||||
|
url: `/home/ver-log`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { GetCheckoutRoomNum, PostAnonLogin, GetAgoraConf, GetRoomRtcToken, GetOpenId } from '../../api/form/index'
|
import { GetCheckoutRoomNum, PostAnonLogin, GetAgoraConf, GetRoomRtcToken, GetOpenId, PostHomeVerLog } from '../../api/form/index'
|
||||||
import { Message } from 'tdesign-miniprogram';
|
import { Message } from 'tdesign-miniprogram';
|
||||||
import { startSignalr, onStop } from '../../utils/singlr';
|
import { startSignalr, onStop } from '../../utils/singlr';
|
||||||
import { agora } from '../../utils/agora'
|
import { agora } from '../../utils/agora'
|
||||||
|
|
@ -174,6 +174,12 @@ Page({
|
||||||
uid: res.data.uid,
|
uid: res.data.uid,
|
||||||
screenShareId: res.data.screenShareId,
|
screenShareId: res.data.screenShareId,
|
||||||
})
|
})
|
||||||
|
const accountInfo = wx.getAccountInfoSync()
|
||||||
|
PostHomeVerLog({
|
||||||
|
version: accountInfo?.miniProgram?.envVersion + '-' + accountInfo?.miniProgram?.version,
|
||||||
|
platformType: 2,
|
||||||
|
roomNum: this.data.meetingForm.roomNum,
|
||||||
|
})
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: `/pages/meeting/index?roomNum=${this.data.meetingForm.roomNum}&nickName=${this.data.meetingForm.roomName}`
|
url: `/pages/meeting/index?roomNum=${this.data.meetingForm.roomNum}&nickName=${this.data.meetingForm.roomName}`
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue