修复管理台上传按钮无响应(uploadApk误嵌于genCodes函数域内);推送链路sqlite Row取值兼容(kind/jpush_rid)

This commit is contained in:
2026-11-22 13:31:27 +08:00
committed by ceryuan
parent e7fde51ab8
commit 3b03eb4de7
3 changed files with 3 additions and 17 deletions
-7
View File
@@ -132,13 +132,6 @@ async function login(){
}
}
function logout(){ localStorage.removeItem('xl_admin_token'); location.reload(); }
document.addEventListener('DOMContentLoaded', () => {
const fi = document.getElementById('apkFile');
if (fi) fi.addEventListener('change', () => {
document.getElementById('apkName').textContent = fi.files[0] ? '已选:' + fi.files[0].name : '';
});
});
async function uploadApk() {
const f = document.getElementById('apkFile').files[0];
const ver = document.getElementById('apkVer').value.trim();
+3 -2
View File
@@ -36,7 +36,7 @@ def _push_chunk(chunk: list[dict]) -> dict[int, str]:
for user_id, items in by_user.items():
rids = []
for it in items:
rid = it.get("jpush_rid")
rid = it["jpush_rid"] if "jpush_rid" in it.keys() else None
if rid and rid not in rids:
rids.append(rid)
if not rids:
@@ -65,7 +65,8 @@ _KIND_LABEL = {"long_ignition": "做多起爆点", "short_ignition": "做空起
def _payload(items: list[dict], rids: list[str]) -> dict:
first = items[0]
sig_ids = [it["signal_id"] for it in items]
label = _KIND_LABEL.get(first.get("kind", "divergence"), "量价背离")
row_kind = first["kind"] if "kind" in first.keys() else "divergence"
label = _KIND_LABEL.get(row_kind, "量价背离")
if len(items) > 3:
body = f"本轮新增 {len(items)} 个信号"
extras = {"signal_ids": ",".join(str(s) for s in sig_ids), "kind": "digest"}
-8
View File
@@ -1,8 +0,0 @@
{
"latest_version": "1.2.0",
"min_version": "",
"notes": "三信号正式版:量价背离+做多/做空起爆点、首页筛选、布林轨道",
"filename": "xuanlong-1.2.0.apk",
"size": 58878686,
"uploaded_at": "2026-11-22 00:30:51"
}