qsh-webview-sdk 2.4.0 → 2.4.1

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/README.md CHANGED
@@ -145,9 +145,9 @@ qsh.getEnv(function(result) {
145
145
  // 获取当前环境信息
146
146
  const env = qsh.environment;
147
147
 
148
- console.log('环境类型:', env.type); // 'weixin' | 'plus' | 'nvue' | 'uvue' | 'UniApp' | 'h5'
148
+ console.log('环境类型:', env.type); // 'weixin' | 'webview' | 'offline'
149
149
  console.log('是否微信小程序:', env.isWeixinMiniProgram);
150
- console.log('是否 APP:', env.isAppPlus);
150
+ console.log('是否在 App 基座中:', env.isUniApp);
151
151
  ```
152
152
 
153
153
  <!-- 加密能力(SM2/SM3/SM4)已在 v2.1.0 起移除,如需相关能力请在业务侧引入专用加密库。 -->
@@ -4098,7 +4098,7 @@ function bt(t = {}) {
4098
4098
  return (o = e.fail) == null || o.call(e, w), (d = e.complete) == null || d.call(e, w), Promise.reject(w);
4099
4099
  }
4100
4100
  const n = ii(r);
4101
- if (r.isAppPlus)
4101
+ if (r.isUniApp)
4102
4102
  return ui(e).then((w) => {
4103
4103
  var ue, je;
4104
4104
  const B = p(g({}, (w == null ? void 0 : w.data) || {}), { hint: n });
@@ -4141,14 +4141,14 @@ function vt(t = {}) {
4141
4141
  return (s = t.fail) == null || s.call(t, R), Promise.reject(R);
4142
4142
  }
4143
4143
  const r = H(!0);
4144
- if (r.isAppPlus)
4144
+ if (r.isUniApp)
4145
4145
  try {
4146
4146
  e = di(e);
4147
4147
  } catch (R) {
4148
4148
  return (o = e.fail) == null || o.call(e, R), (d = e.complete) == null || d.call(e, R), Promise.reject(R);
4149
4149
  }
4150
4150
  const n = r.isWeixinMiniProgram ? "已同步小程序卡片内容,请点击右上角“···”后发送给朋友。" : "正在拉起微信发送给朋友面板,请继续完成小程序卡片分享。";
4151
- if (r.isAppPlus)
4151
+ if (r.isUniApp)
4152
4152
  return pi(e).then((R) => {
4153
4153
  var w, B;
4154
4154
  const F = p(g({}, R || {}), { hint: n });