Commit 64634fad by zhujian

'fix:libeId'

parent 97d500db
...@@ -25,7 +25,7 @@ function CerateQWCourse(props: any) { ...@@ -25,7 +25,7 @@ function CerateQWCourse(props: any) {
const [liveDuration, setLiveDuration] = useState(60); const [liveDuration, setLiveDuration] = useState(60);
const [liveStart, setLiveStart] = useState(0); const [liveStart, setLiveStart] = useState(0);
const [type, setType] = useState('0'); const [type, setType] = useState('0');
const [livingId, setLivingId] = useState(0);
function handleSave() { function handleSave() {
const param = { const param = {
...@@ -42,6 +42,7 @@ function CerateQWCourse(props: any) { ...@@ -42,6 +42,7 @@ function CerateQWCourse(props: any) {
Service.Hades('anon/hades/wxWorkCreateLiveDemo', param).then((res) => { Service.Hades('anon/hades/wxWorkCreateLiveDemo', param).then((res) => {
console.log(22) console.log(22)
handleConvertShortUrl(res.result) handleConvertShortUrl(res.result)
setLivingId(res.result)
wx.invoke('startLiving', { wx.invoke('startLiving', {
"livingId": res.result, "livingId": res.result,
}, function (res: any) { }, function (res: any) {
...@@ -75,7 +76,7 @@ function CerateQWCourse(props: any) { ...@@ -75,7 +76,7 @@ function CerateQWCourse(props: any) {
function downloadLivingReplay(){ function downloadLivingReplay(){
wx.invoke('downloadLivingReplay', { wx.invoke('downloadLivingReplay', {
"livingId": "LIVINGID", livingId
}, function(res:any) { }, function(res:any) {
console.log(res,'tyuuioythbn') console.log(res,'tyuuioythbn')
if (res.err_msg != "downloadLivingReplay:ok") { if (res.err_msg != "downloadLivingReplay:ok") {
......
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 to comment