Skip to content

Commit

Permalink
Fix Hash Length Problem
Browse files Browse the repository at this point in the history
  • Loading branch information
JingHai-Lingyun committed Aug 19, 2024
1 parent 2b0fd5a commit acce662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JMBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ const main = async () => {
}
// <end> 1.ii.b
// <begin> 1.iii
const hash = process.env.GITHUB_SHA || "Unknown";
const hash = process.env.HASH || "Unknown";
console.log("(1.iii): 开始生成 Footer");
const Footer = await (await new Generator().initalize()).generateXaml("Footer", hash, hash === "Unknown" ? "" : `EventType="打开网页"`, `https://github.com/HomePlaza-Of-PCL2/Homepage-Market/commit/${hash}`);
const Footer = await (await new Generator().initalize()).generateXaml("Footer", hash === "Unknown" ? hash : hash.slice(0, 7), hash === "Unknown" ? "" : `EventType="打开网页"`, `https://github.com/HomePlaza-Of-PCL2/Homepage-Market/commit/${hash}`);
// <end> 1.iii
// <begin> 1
console.log("(1): 开始生成完整主页");
Expand Down

0 comments on commit acce662

Please sign in to comment.