| | |
| | | /** |
| | | * 指定用户私信 |
| | | * |
| | | * 指定用户邀约留资 |
| | | */ |
| | | let packageName = 'com.ss.android.ugc.aweme'; |
| | | let searchUserIds = []; |
| | |
| | | "height": 200, |
| | | } |
| | | |
| | | /** |
| | | * description 脚本入口 |
| | | * launch中调用getUserId方法,逐一发送邀约留资 |
| | | */ |
| | | run() |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * description 逐一获取用户id,准备发送邀约留资 |
| | | */ |
| | | function getUserId() { |
| | | randomNum = Math.floor(Math.random() * (96 - 90 + 1)) + 90; |
| | | for (let i = 0; i < devices.length; i++) { |
| | |
| | | } |
| | | alert(); //应用启动后处理弹窗 |
| | | operaLog(1, null); |
| | | /** |
| | | * 逐一获取用户id,准备发送邀约留资 |
| | | */ |
| | | getUserId(); |
| | | } |
| | | } else { |
| | |
| | | return times; |
| | | } |
| | | |
| | | /** |
| | | * description 搜索指定抖音号,准备私信 |
| | | * @param userId |
| | | * @returns {boolean} |
| | | */ |
| | | function sendMessage(userId) { |
| | | let result = false; |
| | | //定位到首页 |
| | |
| | | } |
| | | |
| | | /** |
| | | * description 发私信消息 |
| | | * description 发邀约留资 |
| | | * @return {boolean} : 返回是否成功 |
| | | */ |
| | | function send(userId) { |