From e6220cb4ffc8093a6ec4295fdfbac42014a5bf6c Mon Sep 17 00:00:00 2001 From: super1207 Date: Wed, 9 Oct 2024 14:22:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E8=BF=9Bsatori?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/botconn/satoriv1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/botconn/satoriv1.rs b/src/botconn/satoriv1.rs index ed817ff..73b2466 100644 --- a/src/botconn/satoriv1.rs +++ b/src/botconn/satoriv1.rs @@ -191,9 +191,9 @@ impl Satoriv1Connect { lk.clear(); for item in logins { let platform = read_json_str(item, "platform"); - let self_id = read_json_str(item, "self_id"); + let self_id = item["user"]["id"].as_str().ok_or("login中不存在user-id字段")?; cq_add_log_w(&format!("add account:`{}`:`{}`",platform,self_id)).unwrap(); - lk.push((platform,self_id)); + lk.push((platform,self_id.to_owned())); } }else if op == "0" { // 业务