z.input(verifycode) if (args["time_delay"]): z.sleep(int(args["time_delay"])) def getPluginClass(): return QLRegister if __name__ == "__main__": import sys reload(sys) sys.setdefaultencoding('utf8') clazz = getPluginClass() o = clazz() d = Device("8HVSMZKBEQFIBQUW") z = ZDevice("8HVSMZKBEQFIBQUW") z.server.install() d.server.adb.cmd("shell", "ime set com.zunyun.qk/.ZImeService").communicate() z.input('177751880') z.input('13141314abcd') args = { "repo_number_id": "44", "repo_material_id": "118", "add_count": "100", "time_delay": "3" } #cate_id是仓库号,length是数量 o.action(d, z, args)
# d.server.adb.cmd( "shell", "ime set com.zunyun.qk/.ZImeService" ).wait( ) # args = {"repo_number_id": "190", 'repo_save_exist_id': '189', "run_lock": "500", "check_count": "10", # "repo_save_not_exist_id": "183"} # cate_id是仓库号,length是数量 # o.action( d, z, args ) # str = d.info # 获取屏幕大小等信息 # height = str["displayHeight"] # width = str["displayWidth"] numbers = Repo().GetAccount("318", 5, 1) if len(numbers) == 0: print "号仓库没有数据" QQNumber = numbers[0]['number'] # 即将登陆的QQ号 QQPassword = numbers[0]['password'] print d d.click(641, 1234) #我的 d.click(413, 217) z.sleep(2) if d(index=1, resourceId="com.tencent.mobileqq:id/password").exists: z.input(QQNumber) d(index=1, resourceId="com.tencent.mobileqq:id/password").click() z.input(QQPassword) else: pass d.click(87, 212) #帐号管理 d.click(367, 817) #登陆方式 if d(text="登 录").exists: d(text="登 录").click() #
info = '{"buildManufacturer":"ZTE","buildModel":"ZTE G720C","buildSerial":"ytz0fad63hkensm","buildVersionRelease":"Android 2.2.3","empty":false,"settingsSecureAndroidId":"wwx31wo6hhxbkrw","telephonyGetDeviceId":"864948416091531","telephonyGetLine1Number":"+8615015541026","telephonyGetNetworkType":"12","telephonyGetSimSerialNumber":"84508614357292636763","telephonyGetSubscriberId":"48313995020377949279","wifiInfoGetMacAddress":"00:03:6C:6B:B2:EA","wifiInfoGetSSID":"TP-ZPBZEBM7"}' z.set_serial(pkg, info) source = '/tmp/xxx.png' d.screenshot(source) width = 540.0 height = 960.0 p = { "x1": 37 / width, "y1": 380 / height, "x2": 502 / width, "y2": 473 / height } z.img_crop(source, p) out = d.server.adb.run_cmd('shell', 'ls') z.input("xxx") # d.server.adb.cmd("shell", "ime set com.zunyun.zime/.ZImeService").communicate() z.server.install() slot = Slot('cda0ae8d', 'mobileqq') print(slot.getSlots()) slot.backup('21', '22221111') print(slot.getSlots()) slot.clear('21') z.generateSerial() #z.input("6565wv=1027&k=48KHKLm") #d.server.adb.cmd("shell", "am", "start", "-a", "zime.clear.contacts").communicate() d.server.adb.cmd("shell",