xixi
2024-08-30 d8824ad6212d5b8dc0bb5a2834d10e5c636675e5
优化dy设备用户信息
1 files renamed
5 files modified
54 ■■■■■ changed files
rpa/build/jar/main.clz 2 ●●● patch | view | raw | blame | history
rpa/build/jar/main.jar patch | view | raw | blame | history
rpa/build/release.iec patch | view | raw | blame | history
rpa/build/tmp.iec patch | view | raw | blame | history
rpa/build/uijar/ui.jar patch | view | raw | blame | history
rpa/src/js/dy_deviceUserMessage.js 52 ●●●●● patch | view | raw | blame | history
rpa/build/jar/main.clz
@@ -1 +1 @@
com.js.dy_toUserPrivateMessage
com.js.dy_deviceUserMessage
rpa/build/jar/main.jar
Binary files differ
rpa/build/release.iec
Binary files differ
rpa/build/tmp.iec
Binary files differ
rpa/build/uijar/ui.jar
Binary files differ
rpa/src/js/dy_deviceUserMessage.js
File was renamed from rpa/src/message/dy_deviceUserMessage.js
@@ -165,28 +165,38 @@
 */
function isHome() {
    let result = false;
    while (true) {
        var home_selectors = text("首页").getOneNodeInfo(3000); //首页按钮
        var message_selectors = text("消息").getOneNodeInfo(3000); //消息按钮
        //判断是否在首页
        if (home_selectors && message_selectors) {
            var follow_selectors = text("关注"); //关注按钮
            var recommend_selectors = text("推荐"); //推荐按钮
            if (has(follow_selectors) && has(recommend_selectors)) {
                toast('已定位首页');
                randomSleep("已定位到首页", "", "", "", "", "");
                result = true;
                break;
            } else {
                home_selectors.click();
                sleep(3000);
            }
        } else {
            toast('返回首页...');
            //返回上一页
            go_back(1);
        }
    let map = { "uri": "snssdk1128://feed/" };
    if (utils.openActivity(map)) {
        toast('已定位首页');
        randomSleep("已定位到首页", "", "", "", "", "");
        result = true;
    } else {
        // home_selectors.click();
        // sleep(3000);
    }
    // while (true) {
    //     var home_selectors = text("首页").getOneNodeInfo(3000); //首页按钮
    //     var message_selectors = text("消息").getOneNodeInfo(3000); //消息按钮
    //     //判断是否在首页
    //     if (home_selectors && message_selectors) {
    //         var follow_selectors = text("关注"); //关注按钮
    //         var recommend_selectors = text("推荐"); //推荐按钮
    //         if (has(follow_selectors) && has(recommend_selectors)) {
    //             toast('已定位首页');
    //             randomSleep("已定位到首页", "", "", "", "", "");
    //             result = true;
    //             break;
    //         } else {
    //             home_selectors.click();
    //             sleep(3000);
    //         }
    //     } else {
    //         toast('返回首页...');
    //         //返回上一页
    //         go_back(1);
    //     }
    // }
    return result;
}