0
点赞
收藏
分享

微信扫一扫

钉钉自动打卡

在网上看到的很多关于钉钉自动打卡的文章,无一例外都是使用java或者js编程实现的,今天我来使用一个完全不同的方法,不编程直接通过配置参数来实现,实现步骤如下:

创建自动构建

进入冰狐智能辅助,在网页端「移动端」/「自动构建脚本」中新建一个“构建”。

粘贴“元数据”

通过元数据可以直接复制一个完全一样的构建。在上一步创建的构建右边点击“元数据”按钮,将如下元数据拷贝进入并保存,此时系统会根据元数据自动完成模块参数配置。

{
    "type": "root",
    "children": [{
        "type": "declareVar",
        "var": [{
            "name": "temp",
            "type": "normal",
            "initType": "null",
            "initValue": "null"
        }, {
            "name": "ret",
            "type": "normal",
            "initType": "null",
            "initValue": "null"
        }, {
            "name": "view",
            "type": "normal",
            "initType": "null",
            "initValue": "null"
        }, {
            "name": "viewContainer",
            "type": "normal",
            "initType": "null",
            "initValue": "null"
        }, {
            "name": "tag",
            "type": "normal",
            "initType": "null",
            "initValue": "null"
        }, {
            "name": "item",
            "type": "normal",
            "initType": "null",
            "initValue": "null"
        }, {
            "name": "index",
            "type": "normal",
            "initType": "null",
            "initValue": "null"
        }, {
            "name": "data",
            "type": "normal",
            "initType": "string",
            "initValue": ""
        }, {
            "name": "text",
            "type": "normal",
            "initType": "string",
            "initValue": ""
        }]
    }, {
        "type": "main",
        "desc": "业务逻辑入口",
        "debug": false,
        "params": [],
        "children": [{
            "type": "launchApp",
            "desc": "启动APP",
            "debug": false,
            "packageName": "com.alibaba.android.rimet",
            "tag": "txt:消息|txt:我的#",
            "failed": "",
            "maxStep": "30",
            "children": [{
                "type": "clickAndEnter",
                "desc": "进入工作台",
                "class": 1,
                "debug": false,
                "clickTag": "txt:工作台#",
                "root": "",
                "clickWidgetIndex": "0",
                "family": [],
                "descendant": [],
                "checkTag": "txt:应用中心#",
                "mode": "2",
                "failed": "",
                "duration": "500",
                "maxStep": "5",
                "beforeWait": "0",
                "afterWait": "5000",
                "children": [{
                    "type": "clickAndEnter",
                    "desc": "进入考勤页面",
                    "class": 1,
                    "debug": false,
                    "clickTag": "txt:考勤打卡#",
                    "root": "",
                    "clickWidgetIndex": "0",
                    "family": [],
                    "descendant": [],
                    "checkTag": "txt:统计|txt:打卡#",
                    "mode": "2",
                    "failed": "",
                    "duration": "500",
                    "maxStep": "15",
                    "beforeWait": "0",
                    "afterWait": "5000",
                    "children": [{
                        "type": "click",
                        "desc": "点击打卡",
                        "class": 1,
                        "debug": false,
                        "tag": "txt:上班打卡|txt:下班打卡#",
                        "root": "",
                        "widgetIndex": "0",
                        "family": [],
                        "descendant": [],
                        "mode": "2",
                        "failed": "",
                        "maxStep": "15",
                        "longClick": false,
                        "random": true,
                        "duration": "500",
                        "beforeWait": "0",
                        "afterWait": "1000"
                    }]
                }]
            }]
        }]
    }],
    "desc": "根模块",
    "debug": false
}

编译运行

  1. 在网页端「移动端」/「自动构建脚本」点击右边的“编译”按钮,将自动构建编译成与自动构建名称相同的js脚本。
  2. 在网页端「移动端」/「移动端脚本」点击右边的“发布”按钮发布脚本。
  3. 在网页端「移动端」/「移动端脚本」点击右边的“运行”按钮,并选择设备,然后执行。
举报

相关推荐

0 条评论