GithubHelp home page GithubHelp logo

alipay-credits's People

Contributors

tonyjiangwj 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

Watchers

 avatar  avatar  avatar

alipay-credits's Issues

家庭积分领取不了

进入家庭积分后,不能自动点击积分泡泡。把\core\CreditRunner.js132行的“家庭积分” 改为“家庭共享积分” 即可。

领不到家庭积分

每次领完普通积分以后下半部分上移,然后家庭积分判断位置就会错,上次更新之前点进错的位置会退出来再找一遍家庭积分,上次更新之后在错的位置一直找不到家庭积分控件然后等半天就判断领取完毕退出了?
是我哪里没设置对还是除了其他问题呢?
查找控件超时设置的是1s
检测控件是否存在超时设置了8s
获取截图等待时间设置的是0.5s

[功能缺陷] 当支付宝积分过多时, 积分不会全部领取

# 问题描述

当支付宝积分过多时, 领取完第一批后, 积分会再次刷新, 此时积分不会被全部领取 , 文件
core\CreditRunner.js :

  this.collectCredits = function (position, regex) {
    // 等待稳定
    sleep(1000)
// fix :   此处只会取得第一屏积分
    let widgets = widgetUtils.widgetGetAll(regex, null, true)  
    if (widgets) {
      logUtils.logInfo(['总数:{}', widgets.target.length])
      let targets = widgets.target
      let isDesc = widgets.isDesc
      let totalCollect = 0
// fix :  获得积分的相关逻辑只针对第一屏积分生效
      targets.forEach(val => {
        let contentInfo = isDesc ? val.desc() : val.text()
        if (this.canCollect(val)) {
          automator.clickCenter(val)
          logUtils.logInfo([
            'value: {}', contentInfo
          ])
          totalCollect += parseInt(regex.exec(contentInfo)[1])
          sleep(500)
        }
      })
      logUtils.infoLog(['{} 总共领取:「{}」分', position, totalCollect])
    }
  }

# 环境

❀ OPPO R15
❀ Android 9
❀ Auto.js Pro 8.00-5

领积分页面有更新

"未找到目标",不知道是不是我的问题,以前也有遇到过但是过几天自己又好了

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.