Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V8.1.1 #668

Merged
merged 20 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: 修复股票NaN
  • Loading branch information
1zilc committed Aug 18, 2023
commit e9de1f0e4b167bd36d02d98f9cc23811310f5a74
2 changes: 1 addition & 1 deletion src/renderer/helpers/fund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function CalcFund(fund: Fund.ResponseItem & Fund.FixData, codeMap: Fund.C
const isFix = fund.fixDate && fund.fixDate === gzrq;
const gsz = isFix ? fund.fixDwjz! : fund.gsz!;
const dwjz = isFix ? fund.fixDwjz! : fund.dwjz!;
const bjz = NP.minus(gsz!, fund.dwjz!);
const bjz = NP.minus(gsz!, fund.dwjz!) || 0;
const jrsygz = NP.times(cyfe, bjz);
const gszz = NP.times(gsz!, cyfe);
const cyje = NP.times(fund.dwjz!, cyfe);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/helpers/stock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function CalcStock(stock: Stock.ResponseItem, codeMap: Stock.CodeMap) {

const gsz = stock.zx;
const dwjz = stock.zs;
const bjz = NP.minus(gsz, dwjz);
const bjz = NP.minus(gsz, dwjz) || 0;
const jrsygz = NP.times(cyfe, bjz);
const gszz = NP.times(gsz!, cyfe);
const cyje = NP.times(dwjz, cyfe);
Expand Down