Skip to content

Commit c012058

Browse files
author
Taois
committed
fix: 修复可转债获取问题
1 parent d704f2e commit c012058

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

public/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</head>
99
<body>
1010
<h1 id="drpysdrpy-node">drpyS(drpy-node)</h1>
11-
<p>nodejs作为服务端的drpy实现。全面升级异步写法<br><del>积极开发中,每日一更</del>,当前进度 <code>77%</code><br><del>找工作中,随缘更新</del><br>上班当牛马,下班要带娃,阶段性佛系趁娃睡觉熬夜更新</p>
11+
<p>nodejs作为服务端的drpy实现。全面升级异步写法<br><del>积极开发中,每日一更</del>,当前进度 <code>78%</code><br><del>找工作中,随缘更新</del><br>上班当牛马,下班要带娃,阶段性佛系趁娃睡觉熬夜更新</p>
1212
<ul>
1313
<li><a href="docs/apidoc.md">接口文档</a> | <a href="docs/apiList.md">接口列表如定时任务</a> | <a href="https://github.com/waifu-project/movie/pull/135">小猫影视-待对接T4</a></li>
1414
<li><a href="/config?pwd=dzyyds">本地配置接口-动态本地</a></li>
@@ -29,6 +29,8 @@ <h1 id="drpysdrpy-node">drpyS(drpy-node)</h1>
2929
<li><a href="/cat/index.html">在线猫ds源主页</a></li>
3030
</ul>
3131
<h2 id="更新记录">更新记录</h2>
32+
<h3 id="20250819">20250819</h3>
33+
<p>更新至V1.2.15</p>
3234
<h3 id="20250818">20250818</h3>
3335
<p>更新至V1.2.14</p>
3436
<h3 id="20250817">20250817</h3>

scripts/mjs/kzz-util.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,13 @@ function processKzzData(data, dayeExtra) {
179179
}
180180

181181
const dateStr = publicDate.format('YYYY-MM-DD');
182+
const dateStrNow = dayjs().format('YYYY-MM-DD');
183+
// console.log(dateStr, targetDateStr, dateStrNow);
182184

183185
// 检查是否匹配目标日期
184186
// if (dateStr === targetDateStr) {
185-
if (compareDates(dateStr, targetDateStr) >= 0) {
187+
if (compareDates(dateStr, targetDateStr) >= 0 || compareDates(dateStr, dateStrNow) >= 0) {
188+
// console.log('成功匹配:', dateStr, targetDateStr, dateStrNow);
186189
kzzList.push({
187190
name: item.SECURITY_NAME_ABBR,
188191
code: item.SECURITY_CODE,

scripts/mjs/kzz.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function main() {
4545
const kzzData = await getNowKzz(
4646
`test_7`,
4747
'http://data.eastmoney.com/kzz/',
48-
-7
48+
7
4949
);
5050
console.log(kzzData);
5151
console.log('程序执行完成');

0 commit comments

Comments
 (0)