Your Name 3 years ago
parent
commit
9c414c37cb
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      src/pages/video/liveDetail/index.jsx
  2. 1
    1
      src/services/activity.js

+ 2
- 1
src/pages/video/liveDetail/index.jsx View File

@@ -40,7 +40,8 @@ export default withLayout((props) => {
40 40
     queryLiveDetail(id).then(res=>{
41 41
         setData(res)
42 42
         if (res?.liveRoomParam) {
43
-          getLivingCode(res.liveRoomParam).then((liveInfo) => {
43
+          const { livingid } = JSON.parse(res.liveRoomParam)
44
+          getLivingCode(livingid).then((liveInfo) => {
44 45
             livingRef.current = liveInfo
45 46
           })
46 47
         }

+ 1
- 1
src/services/activity.js View File

@@ -112,4 +112,4 @@ export const getGroupDetail = (id, recordId, payload, header) => fetch({ url: `$
112 112
 export const createGroupActivity = payload => fetch({ url: API_GROUP_CREATE, method: 'POST', payload })
113 113
 export const joinGroupBuy = payload => fetch({ url: API_GROUP_JOIN, method: 'POST', payload })
114 114
 
115
-export const getLivingCode = user => fetch({ url: `${API_LIVING_CODE}?user=${encodeURIComponent(user)}` })
115
+export const getLivingCode = livingId => fetch({ url: `${API_LIVING_CODE}?livingId=${encodeURIComponent(livingId)}` })