function RegisterAssist(udid)--------------辅助
		--local path = "http://604560.ichengyun.net"
		WLog('平台辅助验证')
		shibai = false
		if assistU then
			if fzschuan == '手机号上传' then
				if CountryG == '中国' then
					Type = '3'
				else
					Type = '4'
				end
				local uri = getnum
			elseif fzschuan == '二维码上传' then
				if CountryG == '中国' then
					Type = '1'
				else
					Type = '2'
				end
				local ts = require("ts")-----需要打开触动--更多--插件--官方插件--下载ts.so
				uri = ts.qrDecode("/storage/emulated/0/TouchSprite/1.png") ---二维码解析
				WLog(uri)
			end
			local phone = Regionqnum..'-'..getnum
			
			--{"code":"0003","assistUuid":"201804302234429921202"}
			while uri do
				local str2 = httpGet("http://api.wj.ink/uploadAssist.action?userName="..userNamept .."&userPwd="..userPwdpt.."&uri="..uri.."&phone="..phone.."&grade="..grade.."&type="..Type)
				WLog("http://api.wj.ink/uploadAssist.action?userName="..userNamept .."&userPwd="..userPwdpt.."&uri="..uri.."&phone="..phone.."&grade="..grade.."&type="..Type)
			--	toast("http://api.wj.ink/uploadAssist.action?userName="..userNamept .."&userPwd="..userPwdpt.."&uri="..uri.."&phone="..phone.."&grade="..grade.."&type="..Type)
				if str2 ~= '' and str2 ~= nil and str2 ~= false then
					WLog('finishAssist'..tostring(str2))
					if json.decode(str2).code == "0100" then
						toast("失败，参数不正确")
						WLog("失败，参数不正确")
					elseif json.decode(str2).code == "0101" then
						toast("失败，账号不存在")
						WLog("失败，账号不存在")
					elseif json.decode(str2).code == "0102" then
						toast("失败，密码不正确")
						WLog("失败，密码不正确")
					elseif json.decode(str2).code == "0103" then
						toast("失败，账户异常")
						WLog("失败，账户异常")
					elseif json.decode(str2).code == "0500" then
						toast("成功率过低金额没达到要求")
						WLog("成功率过低金额没达到要求")
					elseif json.decode(str2).code == "0505" then
						toast("连续辅助失败被限制")
						WLog("连续辅助失败被限制")
					elseif json.decode(str2).code == "0250" then
						toast("您的余额不足了!"..json.decode(str2).code)
						WLog("您的余额不足了!"..json.decode(str2).code)
					elseif json.decode(str2).code == "0300" then
						toast("设置任务的金额为零，上传失败!")
						WLog("设置任务的金额为零，上传失败!")	
					elseif json.decode(str2).code == "0003" then
						WLog("上传成功")
						toast("上传成功")
						assistU = false
						Register_Assist = true
						WLog(json.decode(str2).assistUuid)
						assistUuid = json.decode(str2).assistUuid
						Timesucc = os.time()
						return Register_Assist,assistUuid
					elseif json.decode(str2).code == "0301" then
						WLog("上传重复")
						assistU = false
						Register_Assist = true
						return Register_Assist,assistUuid
					else
						assistU = false
						toast("什么鬼"..json.decode(str2).code)
						WLog("什么鬼"..json.decode(str2).code)
					end
				else
					toast("网络异常,请检查本机网络状态正常,或联系客服人员!!!")
				end
				Sleep(800,1000)
			end
		else
			
				Sleep(4000,5000)
				local body = httpGet("http://api.wj.ink/dataState.action?userName="..userNamept.."&userPwd="..userPwdpt.."&script=8f6834b7cfed4438a79932662f776647&uid="..udidudid)
					--toast(body)
				pcall(function()
					body = json.decode(body)
					if body.code == '参数错误,失败' then
						WLog('参数错误,失败')
						toast('参数错误,失败')
					elseif body.code == '不存在该识别码,失败' then
						WLog('不存在该识别码,失败')
						toast('不存在该识别码,失败')
					elseif body.code == '账号不存在,失败' then
						WLog('账号不存在,失败')
						toast('账号不存在,失败')
					elseif body.code == '密码不正确,失败' then
						WLog('密码不正确,失败')
						toast('密码不正确,失败')
					elseif body.code == '账户异常,失败' then
						WLog('账户异常,失败')
						toast('账户异常,失败')
					elseif body.code == '找不到该任务,失败' then
						WLog('找不到该任务,失败')
						toast('找不到该任务,失败')
						shibai = true
						return shibai
					elseif body.code == '该任务不是该用户的任务' then
						WLog('该任务不是该用户的任务')
						toast('该任务不是该用户的任务')
					elseif body.code == '该任务正在等待领取,可能是你的任务佣金设置过低，提高佣金可加快任务领取' then
						WLog('该任务正在等待领取,可能是你的任务佣金设置过低，提高佣金可加快任务领取')
						toast('该任务正在等待领取,可能是你的任务佣金设置过低，提高佣金可加快任务领取')
					elseif body.code == '该任务正在等待领取，如无人领取请提高佣金金额' then
						WLog('该任务正在等待领取，如无人领取请提高佣金金额')
						toast('该任务正在等待领取，如无人领取请提高佣金金额')
					elseif body.code == '该任务正在执行中...' then
						WLog('该任务正在执行中')
						toast('该任务正在执行中')
					elseif body.code == '该任务执行方已完成,请确认' then
						WLog('该任务执行方已完成')
						toast('该任务执行方已完成')
					elseif body.code == '该任务已经完成' then
						WLog('该任务已经完成')
						toast('该任务已经完成')
						time1122 = os.time()
					else
					--	toast("网络异常,请检查本机网络状态正常,或联系客服人员!!!")
					end
				end)	
			
		end	
		toast('跳出')
	end
	local ts = require("ts")-----需要打开触动--更多--插件--官方插件--下载ts.so
snapshot("/storage/emulated/0/TouchSprite/1.png") ----截图
str = ts.qrDecode("/storage/emulated/0/TouchSprite/1.png") ---二维码解析
dialog(str)

		UINew("脚本设置","运行脚本","退出脚本") --方式一，宽高为屏幕的 90%
		------------------------------
		UILabel("号码归属国家:",15,"left","200,0,0",-1,0) 
		UIEdit("CountryG","号码归属国家","中国",15,"left","000,0,0")
		UILabel("号码归属国家区号:",15,"left","200,0,0",-1,0) 
		UIEdit("Regionqnum","号码归属国家区号","+86",15,"left","000,0,0")
		UILabel("注册辅助平台账号:",15,"left","255,0,0",-1,0)
		UIEdit("userNamept","注册辅助平台账号","userName",15,"left","000,0,0")
		UILabel("注册辅助平台密码:",15,"left","255,0,0",-1,0)
		UIEdit("userPwdpt","注册辅助平台密码","userPwd",15,"left","000,0,0")
		UILabel("辅助方等级限制:",15,"left","255,0,0",-1,0)
		UIEdit("grade","辅助方等级限制","1",15,"left","000,0,0")
		UILabel("辅助上传方式:",15,"left","200,0,0",-1,0) --宽度写 -1 为一行，自定义宽度可写其他数值
		UICombo("fzschuan","二维码上传,手机号上传")--默认选择：下拉框1
		UIShow()
	
			x10,y10 = findMultiColorInRegionFuzzy( 0x000000, "9|0|0xffffff,22|1|0x000000,44|1|0xffffff,52|1|0x000000,-79|-159|0xc5c5cb,18|-102|0x000000,17|-108|0xffffff,17|-110|0x000000,18|-116|0xffffff", 90, 0, 0, 719, 1279)
			----- 辅助验证页面	
			x11,y11 = findMultiColorInRegionFuzzy( 0x000000, "-5|-1|0xffffff,-9|-2|0x000000,0|-171|0xffffff,4|-233|0x09bb07,34|-132|0x09bb07,150|132|0x1aad19,43|112|0xffffff,39|111|0x1aad19,35|112|0xffffff", 90, 0, 0, 719, 1279)
			----- 辅助成功返回
	if x11 ~= -1 and y11 ~= -1 then
					WLog('辅助成功返回'); 	 
					ClickClick(349, 620)
					while true do
						body = httpGet("http://api.wj.ink/onFinish.action?userName="..userNamept.."&userPwd="..userPwdpt.."&script=8f6834b7cfed4438a79932662f776647&uid="..udidudid)
						if body ~= '' and body ~= nil then	
							toast(body)
							body = json.decode(body)
							WLog('辅助成功')
						break
						else
						toast("网络异常,请检查本机网络状态正常,或联系客服人员!!!")
						end
					end
	elseif x10 ~= -1 and y10 ~= -1 then
			if fzschuan == '手机号上传' then
				ClickClick(110,  1202)
			elseif fzschuan == '二维码上传' then
				snapshot("/storage/emulated/0/TouchSprite/1.png") ----截图
			end
						if Register_Assist then
						RegisterAssist(udidudid)
						if shibai then
							toast('辅助失败')
							while true do
								body = httpGet("http://api.wj.ink/onFail.action?userName="..userNamept.."&userPwd="..userPwdpt.."&script=8f6834b7cfed4438a79932662f776647&uid="..udidudid)
								if body ~= '' and body ~= nil then
									toast(body)
									body = json.decode(body)
									WLog('辅助成功')
								break
								else
								toast("网络异常,请检查本机网络状态正常,或联系客服人员!!!")
								end
							end
							break
						end
						if os.difftime(os.time(),Timesucc) > 330 then
							toast('超时辅助失败')
							while true do
								body = httpGet("http://api.wj.ink/onFail.action?userName="..userNamept.."&userPwd="..userPwdpt.."&script=8f6834b7cfed4438a79932662f776647&uid="..udidudid)
								if body ~= '' and body ~= nil then	
									toast(body)
									body = json.decode(body)
									WLog('辅助成功')
								break
								else
								toast("网络异常,请检查本机网络状态正常,或联系客服人员!!!")
								end
							end
							break
						end
					else
						Register_Assist,udidudid = RegisterAssist()
						Timesucc = os.time()
					end
					
				end
	