吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1498|回复: 15
收起左侧

[Java 原创] JAVA某奇异签到抽奖

[复制链接]
zhuoxin99 发表于 2023-5-12 17:35
仅供学习参考
请勿用于非法用途!!!

ck 获取 :https://m.iqiyi.com/u/

搜索请求头关键字 psp_cki= 或 P00001= 或 authcookie= 都可以


[Java] 纯文本查看 复制代码
package com.xxl.job.executor.service.test;

import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

public class test_iqy {
    public static final RestTemplate re = new RestTemplate();
    public static final HttpHeaders headers = new HttpHeaders();
    public static final String CK = "";

    public static void main(String[] args) {
        StringBuffer log = new StringBuffer();
        String url = "https://tc.vip.iqiyi.com/taskCenter/task/queryUserTask?autoSign=yes&P00001=" + CK;
        String url1 = "https://iface2.iqiyi.com/aggregate/3.0/lottery_activity?app_k=0&app_v=0&platform_id=0&dev_os=0&dev_ua=0&net_sts=0&qyid=0&psp_uid=0&psp_cki=" + CK + "&psp_status=0&secure_p=0&secure_v=0&req_sn=0";
        String url2 = "https://tc.vip.iqiyi.com/growthAgency/growth-records?appname=growthValueDetail&P00001=" + CK + "&platform=97ae2982356f69d8&lang=zh_cn&pageNo=1&pageSize=1";
        ResponseEntity<String> url_reponse = null;
        url_reponse = re.exchange(url, HttpMethod.GET, new HttpEntity<String>(headers), String.class);
        log.append("签到状态 :" + JSONObject.parseObject(url_reponse.getBody()).getString("msg") + "\n");
        url_reponse = re.exchange(url1, HttpMethod.GET, new HttpEntity<String>(headers), String.class);
        if (JSONObject.parseObject(url_reponse.getBody()).getString("code").equals("0")) {
            log.append("奖品    :" + JSONObject.parseObject(url_reponse.getBody()).getString("awardName") + "\n");
        } else {
            log.append("奖品    :" + "今日抽过奖了" + "\n");
        }
        url_reponse = re.exchange(url2, HttpMethod.GET, new HttpEntity<String>(headers), String.class);
        log.append("签到内容    :" + JSONObject.parseObject(url_reponse.getBody()).getJSONObject("data").getJSONObject("growthRecords").getJSONArray("result").getJSONObject(0).getString("description") + "\n");
        log.append("获得经验    :" + JSONObject.parseObject(url_reponse.getBody()).getJSONObject("data").getJSONObject("growthRecords").getJSONArray("result").getJSONObject(0).getString("amount") + "\n");
        log.append("获得时间    :" + JSONObject.parseObject(url_reponse.getBody()).getJSONObject("data").getJSONObject("growthRecords").getJSONArray("result").getJSONObject(0).getString("createTime") + "\n");

        System.out.println(log.toString());
    }
}


执行

执行

ck

ck

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

dingqh 发表于 2023-5-12 19:07
可以云函数吗?
weiyanli 发表于 2023-5-12 20:04
 楼主| zhuoxin99 发表于 2023-5-12 21:50
头像被屏蔽
moruye 发表于 2023-5-12 23:16
提示: 作者被禁止或删除 内容自动屏蔽
hwjiejie 发表于 2023-5-13 01:39
可以弄在青龙吗
AnonHedgehog 发表于 2023-5-13 02:00
可以可以。
 楼主| zhuoxin99 发表于 2023-5-13 11:11

可以的 固定传参数就行
ArthurXDDD 发表于 2023-5-13 18:45
很彳亍 参考学习
yjj15870173081 发表于 2023-5-15 11:03
很好,谢谢楼主分享学习!
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-24 21:36

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表