@myun/gimi-chat 0.9.39 → 0.9.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,6 +64,9 @@ var VideoPlayer = function VideoPlayer(_ref2) {
|
|
|
64
64
|
apiService = _useContext.apiService;
|
|
65
65
|
var _ref3 = apiService,
|
|
66
66
|
getVideoType = _ref3.getVideoType;
|
|
67
|
+
var baseUrl = useAppSelector(function (state) {
|
|
68
|
+
return state.gimiMenu.baseUrl;
|
|
69
|
+
});
|
|
67
70
|
|
|
68
71
|
// 初始化高顿播放器
|
|
69
72
|
var initGdVideo = /*#__PURE__*/function () {
|
|
@@ -91,7 +94,7 @@ var VideoPlayer = function VideoPlayer(_ref2) {
|
|
|
91
94
|
container: document.getElementById('player-box1'),
|
|
92
95
|
protype: 'b',
|
|
93
96
|
video: {},
|
|
94
|
-
env: '
|
|
97
|
+
env: (baseUrl === null || baseUrl === void 0 ? void 0 : baseUrl.split('mgateway')[0]) || '',
|
|
95
98
|
accessToken: ' ',
|
|
96
99
|
// 为了兼容g2内部报错,必传空格字符串
|
|
97
100
|
resourceId: item.fileToken,
|