天意密码登录

This commit is contained in:
“lushunming” 2025-05-18 21:50:33 +08:00
parent 4553d42d99
commit 1925fe1cc1
4 changed files with 10 additions and 7 deletions

View File

@ -202,6 +202,12 @@ public class TianYiHandler {
// Step 7: 处理登录结果 // Step 7: 处理登录结果
processLoginResult(loginResult); processLoginResult(loginResult);
//保存的账号密码
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("username", uname);
jsonObject.addProperty("password", passwd);
cache.setTianyiUser(new User(Json.toJson(jsonObject)));
} catch (Exception e) { } catch (Exception e) {
SpiderDebug.log("登录失败: " + e.getMessage()); SpiderDebug.log("登录失败: " + e.getMessage());
Notify.show("天翼登录失败: " + e.getMessage()); Notify.show("天翼登录失败: " + e.getMessage());
@ -546,7 +552,7 @@ public class TianYiHandler {
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
LinearLayout frame = new LinearLayout(Init.context()); LinearLayout frame = new LinearLayout(Init.context());
frame.setOrientation(LinearLayout.VERTICAL); frame.setOrientation(LinearLayout.VERTICAL);
frame.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); // frame.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
// params.setMargins(margin, margin, margin, margin); // params.setMargins(margin, margin, margin, margin);
EditText username = new EditText(Init.context()); EditText username = new EditText(Init.context());
username.setHint("请输入天翼用户名"); username.setHint("请输入天翼用户名");
@ -564,10 +570,7 @@ public class TianYiHandler {
dismiss(); dismiss();
Init.execute(() -> { Init.execute(() -> {
loginWithPassword(username, password); loginWithPassword(username, password);
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("username", username);
jsonObject.addProperty("password", password);
cache.setTianyiUser(new User(Json.toJson(jsonObject)));
}); });
} }

Binary file not shown.

View File

@ -1 +1 @@
2f3091291794d6dab72646691f48a850 d06e5321a30e789d70ce9df6231d0518

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/refs/heads/tianyiPassword/jar/custom_spider.jar;md5;2f3091291794d6dab72646691f48a850", "spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/refs/heads/tianyiPassword/jar/custom_spider.jar;md5;d06e5321a30e789d70ce9df6231d0518",
"lives": [ "lives": [
{ {
"name": "电视直播", "name": "电视直播",