@uxda/appkit 4.3.23 → 4.3.24

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.
package/dist/index.js CHANGED
@@ -3479,36 +3479,12 @@ function isWechat() {
3479
3479
  let ua = window.navigator.userAgent.toLowerCase();
3480
3480
  return ua.includes("micromessenger");
3481
3481
  }
3482
- function isAlipay() {
3483
- let ua = window.navigator.userAgent.toLowerCase();
3484
- return ua.includes("alipayclient");
3485
- }
3486
3482
  const isIOS = () => {
3487
3483
  if (typeof window !== "undefined") {
3488
3484
  return /iPhone|iPad|iPod/i.test(window.navigator.userAgent);
3489
3485
  }
3490
3486
  return false;
3491
3487
  };
3492
- const isAndroid = () => {
3493
- if (typeof window !== "undefined") {
3494
- return /Android/i.test(window.navigator.userAgent);
3495
- }
3496
- return false;
3497
- };
3498
- function getBrowser() {
3499
- if (typeof window === "undefined") return "other";
3500
- const ua = window.navigator.userAgent.toLowerCase();
3501
- if (/edg\/|edge\//.test(ua) || /opr\/|opera/.test(ua)) return "other";
3502
- if (/chrome\/|crios\//.test(ua)) return "chrome";
3503
- if (/safari\//.test(ua) && !/chrome|crios/.test(ua)) return "safari";
3504
- return "other";
3505
- }
3506
- function isSafari() {
3507
- return getBrowser() === "safari";
3508
- }
3509
- function isChrome() {
3510
- return getBrowser() === "chrome";
3511
- }
3512
3488
 
3513
3489
  const _hoisted_1$B = { class: "view recharge-view" };
3514
3490
  const _hoisted_2$r = { class: "flex-grow" };
@@ -3606,10 +3582,8 @@ var script$E = /* @__PURE__ */ defineComponent({
3606
3582
  function getChannelCode() {
3607
3583
  if (isWechat()) {
3608
3584
  return "centergzh";
3609
- } else if (isAlipay() || isAndroid() || isIOS() && !isChrome() && !isSafari()) {
3610
- return "YundouZfb";
3611
3585
  } else {
3612
- return "distributor";
3586
+ return "YundouZfb";
3613
3587
  }
3614
3588
  }
3615
3589
  const payResultCheck = () => {
@@ -4103,10 +4077,8 @@ var script$A = /* @__PURE__ */ defineComponent({
4103
4077
  function getChannelCode() {
4104
4078
  if (isWechat()) {
4105
4079
  return "centergzh";
4106
- } else if (isAlipay() || isAndroid() || isIOS() && !isChrome() && !isSafari()) {
4107
- return "YundouZfb";
4108
4080
  } else {
4109
- return "distributor";
4081
+ return "YundouZfb";
4110
4082
  }
4111
4083
  }
4112
4084
  const onPayClick = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.3.23",
3
+ "version": "4.3.24",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -154,10 +154,8 @@ const onPayClick = () => {
154
154
  function getChannelCode() {
155
155
  if (isWechat()) {
156
156
  return 'centergzh';
157
- } else if (isAlipay() || isAndroid() || (isIOS() && !isChrome() && !isSafari())) {
158
- return 'YundouZfb';
159
157
  } else {
160
- return 'distributor';
158
+ return 'YundouZfb';
161
159
  }
162
160
  }
163
161
 
@@ -352,10 +352,8 @@ function proceedWechatPayment() {
352
352
  function getChannelCode() {
353
353
  if (isWechat()) {
354
354
  return 'centergzh';
355
- } else if (isAlipay() || isAndroid() || (isIOS() && !isChrome() && !isSafari())) {
356
- return 'YundouZfb';
357
355
  } else {
358
- return 'distributor';
356
+ return 'YundouZfb';
359
357
  }
360
358
  }
361
359