Esempio n. 1
0
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQHttpRequest req     = createHttpRequest("GET", QQConstants.URL_GET_USER_LEVEL);
            QQSession     session = getContext().getSession();

            req.addGetValue("tuin", user.getUin() + "");
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            return(req);
        }
Esempio n. 2
0
        public override QQHttpRequest onBuildRequest()
        {
            QQSession     session = getContext().getSession();
            QQHttpRequest req     = createHttpRequest("GET", QQConstants.URL_GET_STRANGER_INFO);

            req.addGetValue("tuin", user.getUin() + "");
            req.addGetValue("verifysession", "");       // ?
            req.addGetValue("gid", "0");
            req.addGetValue("code", "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            return(req);
        }
Esempio n. 3
0
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQSession session = getContext().getSession();

            QQHttpRequest req = createHttpRequest("GET",
                                                  QQConstants.URL_GET_USER_SIGN);

            req.addGetValue("tuin", buddy.getUin() + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");

            req.addHeader("Referer", QQConstants.REFFER);
            return(req);
        }
Esempio n. 4
0
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQSession     session = getContext().getSession();
            QQHttpRequest req     = createHttpRequest("GET",
                                                      QQConstants.URL_GET_USER_FACE);

            req.addGetValue("uin", group.getCode() + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            req.addGetValue("cache", "0");
            req.addGetValue("type", "4");
            req.addGetValue("fid", "0");
            return(req);
        }
Esempio n. 5
0
        public override QQHttpRequest onBuildRequest()
        {
            QQSession     session = getContext().getSession();
            QQHttpRequest req     = createHttpRequest("GET", QQConstants.URL_GET_USER_FACE);

            req.addGetValue("uin", user.getUin() + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            req.addGetValue("cache", 0 + "");   // ??
            req.addGetValue("type", 1 + "");    // ??
            req.addGetValue("fid", 0 + "");     // ??

            req.addHeader("Referer", QQConstants.REFFER);
            return(req);
        }
Esempio n. 6
0
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQSession session = getContext().getSession();
            // tuin=4245757755&verifysession=&type=1&code=&vfwebqq=**&t=1361631644492
            QQHttpRequest req = createHttpRequest("GET",
                                                  QQConstants.URL_GET_USER_ACCOUNT);

            req.addGetValue("tuin", buddy.getUin() + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            req.addGetValue("verifysession", "");     // 验证码??
            req.addGetValue("type", 1 + "");
            req.addGetValue("code", "");

            req.addHeader("Referer", QQConstants.REFFER);
            return(req);
        }
Esempio n. 7
0
        public override QQHttpRequest onBuildRequest()
        {
            QQSession session = getContext().getSession();

            JSONObject json = new JSONObject();

            json.put("vfwebqq", session.getVfwebqq());
            json.put("clientid", session.getClientId());
            json.put("psessionid", session.getSessionId());

            QQHttpRequest req = createHttpRequest("POST", QQConstants.URL_GET_RECENT_LIST);

            req.addPostValue("r", json.ToString());
            req.addPostValue("clientid", session.getClientId() + "");
            req.addPostValue("psessionid", session.getSessionId());

            return(req);
        }
Esempio n. 8
0
	/** {@inheritDoc} */
    public override QQHttpRequest onBuildRequest()
    {
		QQSession session = getContext().getSession();
        QQAccount account = (QQAccount)getContext().getAccount();
		ApacheHttpService httpService = getContext().getSerivce();
		Cookie ptwebqq = httpService.getCookie("ptwebqq", QQConstants.URL_GET_USER_CATEGORIES);
		
		JSONObject json = new JSONObject();
		json.put("h", "hello");
		json.put("vfwebqq", session.getVfwebqq()); // 同上
		json.put("hash", QQEncryptor.getHash(account.getUin() + "", ptwebqq.Value));

		QQHttpRequest req = createHttpRequest("POST",
				QQConstants.URL_GET_USER_CATEGORIES);
		req.addPostValue("r", json.ToString());

		req.addHeader("Referer", QQConstants.REFFER);

		return req;
	}
Esempio n. 9
0
        /* (non-Javadoc)
         * @see iqq.im.action.AbstractHttpAction#onBuildRequest()
         */
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQHttpRequest req = createHttpRequest("GET", QQConstants.URL_GET_GROUP_PIC);

//		fid	3648788200
//		gid	2890126166
//		pic	{F2B04C26-9087-437D-4FD9-6A0ED84155FD}.jpg
//		rip	123.138.154.167
//		rport	8000
//		t	1365343106
//		type	0
//		uin	3559750777
//		vfwebqq	70b5f77bfb1db1367a2ec483ece317ea9ef119b9b59e542b2e8586f7ede6030ff56f7ba8798ba34b
//		"cface",
//        {
//            "name": "{F2B04C26-9087-437D-4FD9-6A0ED84155FD}.jpg",
//            "file_id": 3648788200,
//            "key": "pcm4N6IKmQ852Pus",
//            "server": "123.138.154.167:8000"
//        }

            QQSession session = getContext().getSession();

            req.addGetValue("fid", cface.getFileId() + "");
            req.addGetValue("gid", (msg.getGroup() != null ?
                                    msg.getGroup().getCode(): msg.getDiscuz().getDid()) + "");
            req.addGetValue("pic", cface.getFileName());
            String[] parts = cface.getServer().Split(':');
            req.addGetValue("rip", parts[0]);
            req.addGetValue("rport", parts[1]);
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");
            req.addGetValue("type", msg.getGroup() != null ? "0" : "1");
            req.addGetValue("uin", msg.getFrom().getUin() + "");
            req.addGetValue("vfwebqq", session.getVfwebqq());

            //req.setOutputStream(picOut);
            return(req);
        }
Esempio n. 10
0
        /** {@inheritDoc} */
        public override QQHttpRequest onBuildRequest()
        {
            QQSession session = getContext().getSession();

            /*
             * tuin	236557647
             * verifysession
             * code
             * vfwebqq	efa425e6afa21b3ca3ab8db97b65afa0535feb4af47a38cadcf1a4b1650169b4b4eee9955f843990
             * t	1346856270187*/



            QQHttpRequest req = createHttpRequest("GET", QQConstants.URL_GET_FRIEND_INFO);

            req.addGetValue("tuin", buddy.getUin() + "");
            req.addGetValue("verifysession", "");       //难道有验证码???
            req.addGetValue("code", "");
            req.addGetValue("vfwebqq", session.getVfwebqq());
            req.addGetValue("t", DateTime.Now.Ticks / 1000 + "");

            req.addHeader("Referer", QQConstants.REFFER);
            return(req);
        }