Git Product home page Git Product logo

alipay_antforest's Introduction

Alipay_AntForest

iOS版支付宝,一键收取蚂蚁森林全部好友能量,一键帮好友收取能量,定时收取能量,为好友浇水

19-06-11 更新

本次更新适配支付宝10.1.65版本,解决收能量和浇水失败问题,并提高稳定性。

请关注公众号,在公众号 "逆向APP" 的文章 "iOS逆向_蚂蚁森林收能量更新_2" 内获取新版本deb包下载地址。

功能概况

  • 本文是根据网友的 iOS逆向-手把手教你写支付宝蚂蚁森林收集能量助手 做了功能完善和扩展,详细的分析过程,请参见该文章。

  • 新增功能:一键收取蚂蚁森林全部好友能量,一键帮好友收取能量,定时收取能量。2018-10-05,新增“一键浇水”功能

  • 代码仅供学习交流,感谢您 帮忙在右上角 点个“⭐️”,非常感谢。

内容:

  • 1、遍历全部好友,筛选出可收取能量的好友和可被帮助收取能量的好友。

好友排名数组:

friendRanking : [
		{
		realName : 0,
		forestUser : 0,
		treeAmount : 10,
		rank : 1,
		canCollectLaterTime : -1,
		userId : 2088xxxxxxxxxxx11,
		canCollectEnergy : 0,
		collectableBubbleCount : 0,
		energySummation : 216671,
		headPortrait : ,
		displayName : ,
		canHelpCollect : 0
	}]

其中canCollectEnergy为1时,可收取;canHelpCollect为1时,可被帮助收取。

  • 2、遍历单个好友的全部能量,筛选出能被收取或能被帮助收取的能量。

好友的能量气泡数组:

bubbles : [
		{
		collectStatus : INSUFFICIENT,		//收取状态,INSUFFICIENT 不足的,AVAILABLE 可收取,
		userId : 2088xxxxxxxxxx384,			//用户的id
		canHelpCollect : 1,					//是否可被帮助收取
		id : 76012195,						//气泡的id
		produceTime : 1536934343000,
		fullEnergy : 52,
		overTime : 1537193543000,
		business : {
		nightIconUrl : https://zos.alipayobjects.com/rmsportal/GydawUvGZiOzxMM.png,
		id : 2,
		bizType : ditie,
		smallIconDisplayName : 地铁出行,
		bigIconDisplayName : 地铁出行,
		dayIconUrl : https://zos.alipayobjects.com/rmsportal/ulnllVtPwKlmuEb.png
	}]
  • 3、根据当前能量的collectStatus为AVAILABLE则可被收取,执行收取;根据当前能量的canHelpCollect为1则可被帮助收取,执行帮助收取。

  • 4、定时收取能量 点击“定时”则开启定时器。

2018-12-27更新,优化了能量收取逻辑。使用数据库保存好友排名和能量气泡,每10秒执行一次收取,数据库中的能量气泡的produceTime字段与当前时间戳比较。

2018-12-28更新,跟新界面UI,更新功能逻辑,提高收取能量成功率。

  • 5、一键为多个好友浇水 在好友的界面点击“加入浇水”才能把当前好友加入浇水数组,可添加多个好友。点击“一键浇水”可同时为多个好友浇水,为每位好友浇水三次。自行到各个好友界面查看,可看到你为该好友的浇水记录。

操作说明

  • 1、先“收集好友”,请求网络获取全部好友并保存到本地数据库。如果以后好友没有变化,都不需要再收集好友了。
  • 2、“收集气泡”,根据本地好友信息,逐个查询好友的可用气泡,保存到本地数据库。
  • 3、“定时收取”,每10秒执行一次,根据本地数据库中的气泡信息,逐个判断气泡是否可收取,可收取则请求网络收取能量。如果本地数据库中已无能量气泡,可点击“定时收取”更新气泡。
  • 4、“加入浇水”,进入好友的蚂蚁森林,点击“加入浇水”,把当前好友加入浇水队列。
  • 5、“清空浇水”,可清空全部浇水队列。
  • 6、“执行浇水”,可为浇水队列中的好友浇水3次。

开发环境

  • Xcode 8.2
  • MonkeyDev

测试环境

  • 越狱手机 iOS 9.3.3
  • 支付宝版本 10.1.32

多谢支持 ^_^

关注公众号:逆向APP

alipay_antforest's People

Contributors

luoyanbei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alipay_antforest's Issues

新的版本的deb包没有更新

新的版本的deb包没有更新。10.5的包没更新。
而且现在的版本好像也有一些问题,就是进入支付宝的时候,有时候收集图标会丢失

支付宝 修改__RESTRICT/__restrict后闪退

大佬好,我这边修改过后,也执行了ldid -S 二进制文件,也添加Appsync了,但是依然闪退。我这边的版本是8.1.2,请问大佬如何解决,非常感谢!

10.1.28 或者最新版 同样出现以下问题

收集好友点击后无任何提示,希望可以提示收集到的好友个数,用于判断后续收不够能量的问题
本人150好友,手动确认能量球大于60,点击收集能量后永远提示30-50个
执行1+2后应该有个一键收取功能,但只找到了定时收取(需要等倒计时)。。
执行定时收取后有如下两种结果:
4.1 倒计时10s后闪退
4.2 执行收取,但不论之前搜到了多少能量球,提示“已无成熟的能量球”后查看结果只收到20-30点能量,此时好友列表里手动确认还有60+等待收取的球
重复执行上述操作,平均每次收取都是10-30点能量

我好友20个 但情况一样 点收集气泡 显示收取但实际没有收取 我觉得获取好友后要实时刷新才能准确收取
总之有漏的 非常感谢 希望继续更新

希望作者常更新,不断改进

感觉现在版本还是有些小问题,有些好友的能量收不到,提示收到多少气泡好像也不准确等等,期待作者改进更新

IOS 11.3.1失效

IOS11.3.1安装完之后没有出现一键收取以及定时那些页面。

10.1.52 最新版本DEB

原先是1.32版本的支付宝,闪退,升到1.52后还是一样,执行收集好友,气泡后,定时收取,容易闪退

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.