@zkwq/business 0.2.43 → 0.2.44

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
@@ -28018,6 +28018,25 @@ const j7 = {
28018
28018
  return 0;
28019
28019
  },
28020
28020
  links() {
28021
+ if (this.readable.type === Ls) {
28022
+ let e = Array.isArray(this.readable.links) ? [...this.readable.links] : [];
28023
+ if (!xt(this.readable.local_links))
28024
+ e.unshift({
28025
+ name: "原文下载",
28026
+ url: this.readable.local_links[0],
28027
+ logo: Hn
28028
+ });
28029
+ else {
28030
+ const s = (this.readable.attachments || []).filter((t) => t.file_name.endsWith(".pdf"))[0];
28031
+ s && e.unshift({
28032
+ name: "原文下载",
28033
+ url: `https://file.scholarin.cn/files?fastdfspath=${s.file_link}`,
28034
+ logo: Hn
28035
+ });
28036
+ }
28037
+ if (e.length > 0)
28038
+ return e;
28039
+ }
28021
28040
  if (xt(this.readable.links)) {
28022
28041
  if (this.readable.link) {
28023
28042
  if (this.readable.type === Fs)
@@ -28048,26 +28067,8 @@ const j7 = {
28048
28067
  url: this.readable.link
28049
28068
  }];
28050
28069
  }
28051
- } else {
28052
- if (this.readable.article_type === "学位论文")
28053
- return this.readable.links.filter((e) => e.name === "中国科学院学位论文数据库");
28054
- if (this.readable.type === Ls)
28055
- if (!xt(this.readable.local_links))
28056
- this.readable.links.unshift({
28057
- name: "原文下载",
28058
- url: this.readable.local_links[0],
28059
- logo: Hn
28060
- });
28061
- else {
28062
- const e = (this.readable.attachments || []).filter((s) => s.file_name.endsWith(".pdf"))[0];
28063
- e && this.readable.links.unshift({
28064
- name: "原文下载",
28065
- url: `https://file.scholarin.cn/files?fastdfspath=${e.file_link}`,
28066
- logo: Hn
28067
- });
28068
- }
28069
- return this.readable.links;
28070
- }
28070
+ } else
28071
+ return this.readable.article_type === "学位论文" ? this.readable.links.filter((e) => e.name === "中国科学院学位论文数据库") : this.readable.links;
28071
28072
  return [];
28072
28073
  },
28073
28074
  isOpenAccess() {
@@ -28213,7 +28214,7 @@ var V7 = /* @__PURE__ */ S(
28213
28214
  H7,
28214
28215
  !1,
28215
28216
  z7,
28216
- "28aab8c2"
28217
+ "1b7f7cd7"
28217
28218
  );
28218
28219
  function z7(e) {
28219
28220
  for (let s in wu)