Ejemplo n.º 1
0
                    pass
            try:
                ipaHistoryDownloads = sort_dict_keys(tmp_download_list)
            except Exception, ex:
                print ex
            try:
                key = ipaHistoryDownloads.keys()[0]
                ipaHash = ipaHistoryDownloads[key][0]['ipaHash']
                ipaVersion = ipaHistoryDownloads[key][0]['version']
            except Exception, ex:
                traceback.print_exc()
                pass

        #网盘下载数据
        netdisk = AppDownloadNetDiskController()
        res = netdisk.get_by_bundleid(bundle_id, sign)
        if res:
            for down in res:
                try:
                    tmp = {'webURL': down['downloadUrl'], 'version': down['version'],
                           'addTime': str(down['addTime'])}
                    if down['version'] not in tmp_download_list:
                        tmp_download_list[down['version']] = []
                    tmp_download_list[down['version']].append(tmp)
                except Exception, ex:
                    print ex
                    pass
            try:
                ipaHistoryDownloads = sort_dict_keys(tmp_download_list)
            except Exception, ex:
                print ex