4,836,706 th visitor since 2017.2.1 ( Today : 1585 )
Programming
No. 652
Name. swindler
Subject. AppSales에서 데이터를 못 받아오는 경우 (2009/8/2 이후)
Main Cate. iOS
Sub Cate.
Date. 2009-08-03 18:02
Hit. 3554 (211.36.27.24)
File.
AppSales어플의 경우 itunes 사이트를 통해서 데이터를 가져오는데 이 사이트 구조가 좀 변했다.
(사실 이런 파트는 내가 좀 전문이다.)

일단 로그인폼에 name이 사라졌다.
따라서 소스를 아래와 같이 수정

    [scanner scanUpToString:@"method=\"post\" action=\"" intoString:NULL];
    [scanner scanString:@"method=\"post\" action=\"" intoString:NULL];
    [scanner scanUpToString:@"\"" intoString:&loginAction];

    //[scanner scanUpToString:@"name=\"appleConnectForm\" action=\"" intoString:NULL];
    //[scanner scanString:@"name=\"appleConnectForm\" action=\"" intoString:NULL];
    //[scanner scanUpToString:@"\"" intoString:&loginAction];

참고로 RootViewController.m파일이다.

그리고 로그인시에 필드도 몇개가 변해서 로그인이 정상적으로 안 된다.
        //NSDictionary *loginDict = [NSDictionary dictionaryWithObjectsAndKeys:username, @"theAccountName", password, @"theAccountPW", nil];
        NSDictionary *loginDict = [NSDictionary dictionaryWithObjectsAndKeys:username, @"theAccountName", password, @"theAccountPW", @"", @"theAuxValue", @"54", @"1.Continue.x", @"25",@"1.Continue.y",nil];

아래와 같이 필드 3개 추가.
1.Continue.x 와 y는 값이 변하는지 확인못했으나 그냥 넣으면 된다.

그리고 wosid 라는 값이 하나 추가되긴 했는데, 없어도 들어가지는것 같다.
사실 이 소스를 본지가 얼마 안 되서 원래도 있던 건지 알수 없다 ㅠㅠ



[바로가기 링크] : http://coolx.net/cboard/develop/652



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog