天意密码登录
This commit is contained in:
parent
4553d42d99
commit
1925fe1cc1
|
|
@ -202,6 +202,12 @@ public class TianYiHandler {
|
|||
// Step 7: 处理登录结果
|
||||
processLoginResult(loginResult);
|
||||
|
||||
//保存的账号密码
|
||||
JsonObject jsonObject = new JsonObject();
|
||||
jsonObject.addProperty("username", uname);
|
||||
jsonObject.addProperty("password", passwd);
|
||||
cache.setTianyiUser(new User(Json.toJson(jsonObject)));
|
||||
|
||||
} catch (Exception e) {
|
||||
SpiderDebug.log("登录失败: " + 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 frame = new LinearLayout(Init.context());
|
||||
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);
|
||||
EditText username = new EditText(Init.context());
|
||||
username.setHint("请输入天翼用户名");
|
||||
|
|
@ -564,10 +570,7 @@ public class TianYiHandler {
|
|||
dismiss();
|
||||
Init.execute(() -> {
|
||||
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.
|
|
@ -1 +1 @@
|
|||
2f3091291794d6dab72646691f48a850
|
||||
d06e5321a30e789d70ce9df6231d0518
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue