@fonixtree/magic-design 0.1.89 → 0.1.90

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.
@@ -9,7 +9,7 @@ exports["default"] = AffiliatePlatform;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _antd = require("antd4");
12
+ var _antd = require("antd");
13
13
 
14
14
  var _locale = require("../../../locale");
15
15
 
@@ -336,12 +336,12 @@ var clickUrl = function clickUrl(url) {
336
336
 
337
337
  if ((0, _androidUtil.browserVersion)().isAshitaApp) {
338
338
  (0, _androidUtil.sendToApp)(data);
339
- } else if (params.link && params.link.startsWith('http')) {
339
+ } else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
340
340
  // 跳转链接是个绝对路径
341
341
  if (params.type === 'Gamezop') {
342
342
  // Nuri 对接 Gamezop 特殊情况
343
343
  (0, _androidUtil.sendToApp)(data);
344
- } else if ((0, _androidUtil.browserVersion)().isApp || (0, _androidUtil.browserVersion)().isNuriApp) {
344
+ } else {
345
345
  // Nuri 抽奖系统对接
346
346
  var urlTemp = "" + params.link + (params.link.includes('?') ? '&' : '?') + "userToken=" + (localStorage.getItem('h5Token') || '');
347
347
  (0, _androidUtil.sendToApp)({
@@ -350,14 +350,6 @@ var clickUrl = function clickUrl(url) {
350
350
  url: urlTemp
351
351
  }
352
352
  });
353
- } else {
354
- // 新开浏览器打开
355
- (0, _androidUtil.sendToApp)({
356
- type: 'jumpBrowser',
357
- params: {
358
- url: params.link
359
- }
360
- });
361
353
  }
362
354
  } else {
363
355
  // 视频
@@ -9,7 +9,7 @@ exports["default"] = AffiliatePlatform;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _antd = require("antd4");
12
+ var _antd = require("antd");
13
13
 
14
14
  var _locale = require("../../../locale");
15
15
 
@@ -336,12 +336,12 @@ var clickUrl = function clickUrl(url) {
336
336
 
337
337
  if ((0, _androidUtil.browserVersion)().isAshitaApp) {
338
338
  (0, _androidUtil.sendToApp)(data);
339
- } else if (params.link && params.link.startsWith('http')) {
339
+ } else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
340
340
  // 跳转链接是个绝对路径
341
341
  if (params.type === 'Gamezop') {
342
342
  // Nuri 对接 Gamezop 特殊情况
343
343
  (0, _androidUtil.sendToApp)(data);
344
- } else if ((0, _androidUtil.browserVersion)().isApp || (0, _androidUtil.browserVersion)().isNuriApp) {
344
+ } else {
345
345
  // Nuri 抽奖系统对接
346
346
  var urlTemp = "" + params.link + (params.link.includes('?') ? '&' : '?') + "userToken=" + (localStorage.getItem('h5Token') || '');
347
347
  (0, _androidUtil.sendToApp)({
@@ -350,14 +350,6 @@ var clickUrl = function clickUrl(url) {
350
350
  url: urlTemp
351
351
  }
352
352
  });
353
- } else {
354
- // 新开浏览器打开
355
- (0, _androidUtil.sendToApp)({
356
- type: 'jumpBrowser',
357
- params: {
358
- url: params.link
359
- }
360
- });
361
353
  }
362
354
  } else {
363
355
  // 视频
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.89",
4
+ "version": "0.1.90",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",