学习通自动打卡

本文最后更新于:2021年8月17日 晚上

上学期开学前一段时间,学校就让我们在学习通上打卡,用来确定每个同学返校前的健康状况?这学期又是这样的操作,而且要求的更严格了,放寒假还天天被人催着打卡,就很无语。讲道理哪个同学有异常情况的话,当地相关部门会直接通报到学校的吧。所以我个人觉得这个打卡没什么意义,而且我天天宅在家里,应该也不会有什么异常情况,所以搞一个自动打卡应该没问题吧😂。

20220817一更

昨天晚上通知多了个“每日健康上报”

代码已改,需要填写更多个人信息,签名那个地址需要手动抓包提取(应该可以自动从历史记录中获取,但是没时间写了)

20220817二更

改为从提交记录中获取信息,故只需要填写账号密码即可(之前的两个模块没有修改)

20220213更正

昨天晚上测试的时候学生健康登记这个模块在首页是没有显示的,当时我以为不用打卡这个模块,只需要定位签到就行了,没想到今天它又回来了(佛了。

解决这个问题只需要将注释的代码取消注释就可以了(下面代码已改

直接用我这个代码的同学需要注意

  • 代码前面需要填写账号密码和地址(这个地址是用来定位打卡的
  • 学生健康登记打卡里面的formData中也有内容需要自己修改,我把需要改动的地方用‘📌’这个标签括起来了,这样比较显眼😂
  • formData内容比较多,建议复制代码到本地,然后在编辑器中打开自动换行再修改(不然比较伤眼

分析打卡流程

要自动打卡应该分为两个步骤

  1. 登录
  2. 打卡

平时打卡都是在学习通APP上进行的,所以直接在手机抓包分析。

登录流程

APP到登录页面,然后打开抓包,然后登录,分析抓取到的请求,在众多请求包中一眼看到这个域名是passport开头的,点进来一看,好家伙,设置了13个cookie,多半是这个api没错了,再确认一下,看看请求内容,带了账号密码,那就是这个包在做登录操作了。

image-20210211110139434

image-20210211105918543

测试看看,把这个api拿到浏览器上试试,验证通过,那没问题了。

image-20210211110359697

image-20210211110509172

同时在刚刚手机上抓到的包中找到了学习通首页的url,后面的操作就可以在电脑上完成了,体验+。

image-20210212013902597

再然后就是一步一步的模拟打卡过程(其实就用浏览器的f12里面的network功能就行了

整个打卡过程貌似有四次post请求。

从域名上看😂😂

  • 第一个是获取表单内容的(后面发现同时还设置了一个CheckCode来控制每天打卡一次
  • 第二个是用来计数的(并不知道计数什么,但是貌似不影响
  • 第三个是用来校验填写的内容是否合法的(不用校验也能进行第四步
  • 第四个是保存我们填写的信息的

image-20210212015254019

image-20210212014858781

image-20210212015405610

image-20210212015539797

经过一些测试,得出结论,我们只需要访问第一个api获取checkCode,然后用这个checkCode去第四个api保存我们的打卡信息就可以了。

代码

# -*- coding: utf8 -*-
import requests
import re
import json
from urllib.parse import quote

params_login = {
    'uname': '账号',
    'code': '密码',
    'loginType': '1',
    'roleSelect': 'true'
}

api_save = 'http://office.chaoxing.com/data/apps/forms/fore/user/save?lookuid=%s'
api_login = 'https://passport2-api.chaoxing.com/v11/loginregister?cx_xxt_passport=json'
api_apply = 'http://office.chaoxing.com/front/web/apps/forms/fore/apply?uid=83260789&code=2iVkZKN1&mappId=3820629&appId=92610a6cf5e6415c8b4c2ac9c6a9a0f1&appKey=DhXDEM4W331834H2&id=1651&enc=3e98bd89c8ce6bcabf08dbad8553f3c1&state=1432&formAppId=&fidEnc=49b6a032fb2a0f2b'
api_last = 'http://office.chaoxing.com/data/apps/forms/fore/user/list?cpage=1&formId=92597&enc=e8a70d13bac504a2ec42ad5d72aa8abd&formAppId='


def login():
    resp = requests.post(api_login, params=params_login)
    if (resp.status_code == 403):
        raise Exception('403登录失败')
    return resp.cookies


def get_checkCode(resp):
    code = re.findall(r"checkCode.*'(.*)'", resp.text)
    if code:
        return code[0]
    else:
        raise Exception("checkCode解析失败")


# 学生健康登记
# 已弃用
def checkin1(cookies):
    checkCode = get_checkCode(requests.get(api_apply, cookies=cookies))
    params_c1 = {
        'formId': '1651',
        'formAppId': '',
        'version': '2',
        'formData':
        '[{"linkInfo":{"linkFormType":"","condFields":[],"linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false,"currFormCondFieldId":0},"compt":"selectbox","otherAllowed":false,"layoutRatio":1,"latestValShow":true,"id":13,"optionsLoadFromUrl":{"isLoadFromUrl":false,"response":[],"url":[],"urlHeaders":[]},"fields":[{"visible":true,"editable":true,"values":[{"val":"数学与计算机学院"}],"options":[{"idArr":[],"checked":false,"title":"钒钛学院"},{"idArr":[],"checked":false,"title":"经济与管理学院"},{"idArr":[],"checked":false,"title":"交通与汽车工程学院"},{"idArr":[],"checked":false,"title":"康养学院"},{"idArr":[],"checked":false,"title":"人文社科学院"},{"idArr":[],"checked":false,"title":"生物与化学工程学院"},{"idArr":[],"checked":true,"title":"数学与计算机学院"},{"idArr":[],"checked":false,"title":"土木与建筑工程学院"},{"idArr":[],"checked":false,"title":"外国语学院"},{"idArr":[],"checked":false,"title":"艺术学院"},{"idArr":[],"checked":false,"title":"医学院"},{"idArr":[],"checked":false,"title":"智能制造学院"},{"idArr":[],"checked":false,"title":"研究生处"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"二级学院","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"optionBindInfo":{"bindFieldId":0,"bindFieldIdx":-1,"isBinded":false,"bindFormId":0,"originalOptions":[{"idArr":[],"checked":false,"title":"选项1"},{"idArr":[],"checked":false,"title":"选项2"},{"idArr":[],"checked":false,"title":"选项3"}]},"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"linkFormType":"","condFields":[],"linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false,"currFormCondFieldId":0},"compt":"editinput","layoutRatio":1,"formula":{"selIndex":-1,"calculateFieldId":0,"status":false},"latestValShow":false,"id":1,"fields":[{"visible":true,"values":[{"val":"2018级计算机科学与技术1班"}],"verify":{"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""},"required":{}},"tip":{"imgs":[],"text":""},"label":"年级、专业、班级","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false,"editable":true}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"latestValShow":true,"id":2,"fields":[{"visible":true,"values":[{"val":"健康","isOther":false}],"options":[{"idArr":[],"checked":true,"title":"健康"},{"idArr":[11],"checked":false,"title":"有发烧/咳嗽等症状"},{"idArr":[],"checked":false,"title":"其他"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"健康状况","fieldType":{"type":"string"},"editable":true}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"linkFormType":"","condFields":[],"linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false,"currFormCondFieldId":0},"compt":"editinput","layoutRatio":1,"formula":{"selIndex":-1,"calculateFieldId":0,"status":false},"latestValShow":false,"id":3,"fields":[{"visible":true,"values":[{"val":"四川省成都市新都区"}],"verify":{"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""},"required":{}},"tip":{"imgs":[],"text":""},"label":"当前所在省、市、县(区)","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false,"editable":true}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"latestValShow":true,"id":14,"fields":[{"visible":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[11],"checked":false,"title":"是"},{"idArr":[],"checked":true,"title":"否"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"14天内是否曾前往疫情防控重点区域","fieldType":{"type":"string"},"editable":true}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"latestValShow":true,"id":4,"fields":[{"visible":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[11],"checked":false,"title":"是"},{"idArr":[],"checked":true,"title":"否"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"14天内是否有与高危人员有密切接触历史","fieldType":{"type":"string"},"editable":true}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"latestValShow":true,"id":5,"fields":[{"visible":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[11],"checked":false,"title":"是"},{"idArr":[],"checked":true,"title":"否"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"家中或亲人是否有感染者或疑似感染者","fieldType":{"type":"string"},"editable":true}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"latestValShow":true,"id":6,"fields":[{"visible":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[11,7,8],"checked":false,"title":"是"},{"idArr":[],"checked":true,"title":"否"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"自己是否为疑似病例","fieldType":{"type":"string"},"editable":true}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"latestValShow":true,"id":7,"fields":[{"visible":true,"values":[],"options":[{"idArr":[11],"checked":false,"title":"是"},{"idArr":[],"checked":false,"title":"否"}],"verify":{},"tip":{"imgs":[],"text":""},"label":"是否被隔离","fieldType":{"type":"string"},"editable":true}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"linkInfo":{"linkFormType":"","condFields":[],"linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false,"currFormCondFieldId":0},"compt":"editinput","layoutRatio":1,"formula":{"selIndex":-1,"calculateFieldId":0,"status":false},"latestValShow":false,"id":8,"fields":[{"visible":true,"values":[{"val":""}],"verify":{"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""}},"tip":{"imgs":[],"text":""},"label":"隔离地点","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false,"editable":true}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"latestValShow":true,"id":9,"fields":[{"visible":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[11,10],"checked":false,"title":"是"},{"idArr":[],"checked":true,"title":"否"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"是否已确诊病例","fieldType":{"type":"string"},"editable":true}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"linkFormType":"","condFields":[],"linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false,"currFormCondFieldId":0},"compt":"editinput","layoutRatio":1,"formula":{"selIndex":-1,"calculateFieldId":0,"status":false},"latestValShow":false,"id":10,"fields":[{"visible":true,"values":[{"val":""}],"verify":{"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""}},"tip":{"imgs":[],"text":""},"label":"住院地点","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false,"editable":true}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"linkInfo":{"linkFormType":"","condFields":[],"linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false,"currFormCondFieldId":0},"compt":"edittextarea","layoutRatio":1,"latestValShow":false,"id":11,"fields":[{"visible":true,"values":[{"val":""}],"verify":{},"tip":{"imgs":[],"text":""},"label":"需要说明的情况","fieldType":{"type":"string"},"editable":true}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true}]',
        'uniqueCondition': '[]',
        't': '1',
        'enc': '3e98bd89c8ce6bcabf08dbad8553f3c1',
        'checkCode': checkCode,
        'gatherId': '0',
        'gverify': ''
    }
    url = api_save % (cookies['_uid'])
    resp = requests.post(url, params=params_c1, cookies=cookies)
    if '每个用户每日填写1次,您的提交已达上限哦~' in resp.text or '"success":true' in resp.text:
        return '健康登记打卡成功或已打卡过'
    else:
        print(resp.text)
        return '健康登记打卡失败'


# 定位打卡
# 已弃用
def checkin2(cookies):
    checkCode = get_checkCode(requests.get(api_apply, cookies=cookies))
    params_c2 = {
        'formId':
        '8273',
        'formAppId':
        '',
        'version':
        '1',
        'formData':
        '[{"compt":"location","id":1,"fields":[{"verify":{},"tip":{"imgs":[],"text":""},"label":"定位","fieldType":{"type":"point"},"editable":true,"visible":true,"values":[{"address":"%s","lng":104.083898,"lat":30.759099}]}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true}]'
        % (address),
        'uniqueCondition':
        '[]',
        't':
        '1',
        'enc':
        '61d91ce3a502d4f32332ed15d8c42e33',
        'checkCode':
        checkCode,
        'gatherId':
        '0',
        'gverify':
        ''
    }
    url = api_save % (cookies['_uid'])
    resp = requests.post(url, params=params_c2, cookies=cookies)
    if '每个用户每日填写1次,您的提交已达上限哦~' in resp.text or '"success":true' in resp.text:
        return '定位打卡成功或已打卡过'
    else:
        print(resp.text)
        return '定位打卡失败'


# 每日健康上报
def checkin3(cookies):
    checkCode = get_checkCode(requests.get(api_apply, cookies=cookies))
    form = json.loads(requests.post(
        api_last,
        cookies=cookies).text)['data']['formsUserList'][0]['formData']
    params_c3 = quote(
        '[{"compt":"captiontext","layoutRatio":1,"alias":"1","id":1,"fields":[{"visible":true,"editable":false,"tip":{"imgs":[],"text":"<p style=\\"text-align: center;\\"><span style=\\"font-size: x-large;\\">学生基本信息</span></p><p style=\\"text-align: center;\\"><span style=\\"font-size: medium;\\">以下信息涉及公共安全,要求每位学生如实填报</span></p>"},"label":"说明文字","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":false},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"contact","loginUserForValue":true,"layoutRatio":1,"alias":"44","id":44,"fields":[{"hasDefaultValue":true,"visible":true,"editable":false,"values":[{"puid":%s,"uname":"%s"}],"name":"点击选择人员","verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[]","label":"学生姓名","sweepCode":false,"fieldType":{"multiple":false,"type":"contact"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"editinput","layoutRatio":1,"alias":"45","formula":{"selIndex":-1,"calculateFieldId":0,"status":false},"latestValShow":false,"id":45,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[{"val":"%s"}],"verify":{"charLimit":{"size":20,"open":false},"regularExpress":{"errorTip":"格式错误!","express":""},"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"学号","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"editinput","layoutRatio":1,"alias":"46","formula":{"selIndex":-1,"calculateFieldId":0,"status":false},"latestValShow":false,"id":46,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[{"val":"%s"}],"verify":{"charLimit":{"size":20,"open":false},"regularExpress":{"errorTip":"格式错误!","express":""},"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"学院","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"editinput","layoutRatio":1,"alias":"48","formula":{"selIndex":-1,"calculateFieldId":0,"status":false},"latestValShow":false,"id":48,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[{"val":"%s"}],"verify":{"charLimit":{"size":20,"open":false},"regularExpress":{"errorTip":"格式错误!","express":""},"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"专业班级","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[{"linkFormCondFieldId":6,"linkFormCondFieldCompt":"contact","currFormCondFieldId":44}],"linkFormType":"customForm","linkFormId":92598,"linkFormValueFieldCompt":"editinput","linkFormIdEnc":"6490576bf20c15e2b37ff7e6b44cf382","linkFormValueFieldId":7,"linked":true,"currFormValueFieldId":3,"currFormValueFieldCompt":"editinput"},"compt":"editinput","layoutRatio":1,"alias":"3","formula":{"selIndex":-1,"calculateFieldId":"0","status":false},"latestValShow":false,"id":3,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[{"val":"%s"}],"verify":{"charLimit":{"size":20,"open":false},"regularExpress":{"errorTip":"格式错误!","express":""},"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"身份证号","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[{"linkFormCondFieldId":6,"linkFormCondFieldCompt":"contact","currFormCondFieldId":44}],"linkFormType":"customForm","linkFormId":92598,"linkFormValueFieldCompt":"editinput","linkFormIdEnc":"6490576bf20c15e2b37ff7e6b44cf382","linkFormValueFieldId":5,"linked":true,"currFormValueFieldId":4,"currFormValueFieldCompt":"editinput"},"compt":"editinput","layoutRatio":1,"alias":"4","formula":{"selIndex":-1,"calculateFieldId":"0","status":false},"latestValShow":false,"id":4,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[{"val":"%s"}],"verify":{"charLimit":{"size":20,"open":false},"regularExpress":{"errorTip":"格式错误!","express":""},"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":"mobile"},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"联系电话","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"location","layoutRatio":1,"alias":"6","distanceRange":100,"id":6,"fields":[{"visible":true,"editable":true,"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"当前位置","fieldType":{"type":"point"},"values":[{"address":"%s","lng":%s,"lat":%s}]}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[{"linkFormCondFieldId":1,"linkFormCondFieldCompt":"contact","currFormCondFieldId":44}],"linkFormType":"customForm","linkFormId":92596,"linkFormValueFieldCompt":"numberinput","linkFormIdEnc":"dfd6989f283227cde9e82fee8033771a","linkFormValueFieldId":2,"linked":true,"currFormValueFieldId":58,"currFormValueFieldCompt":"numberinput"},"compt":"numberinput","layoutRatio":1,"alias":"58","latestValShow":false,"id":58,"fields":[{"hasDefaultValue":false,"capital":false,"visible":false,"editable":false,"values":[{"val":""}],"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"上报次数","placeholderMsg":"","micrometer":false,"statsable":false,"verify":{"minValue":{"errMsg":"输入的值不能小于","range":""},"realNumber":{"isInteger":false,"precision":"","errMsg":"请输入正确的数字类型值"},"maxValue":{"errMsg":"输入的值不能大于","range":""}},"tip":{"imgs":[],"text":"(选填)"},"fieldType":{"type":"number"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":false},{"compt":"captiontext","layoutRatio":1,"alias":"7","id":7,"fields":[{"visible":true,"editable":false,"tip":{"imgs":[],"text":"<p style=\\"text-align: center;\\"><span style=\\"font-size: x-large;\\">健康状态填写</span></p>"},"label":"说明文字","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":false},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"8","latestValShow":true,"id":8,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"自测体温是否超过37.3℃","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"checklist","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"9","latestValShow":true,"id":9,"optionColor":false,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"健康"}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"","title":"健康"},{"idArr":[],"score":0,"color":"","checked":false,"className":"","title":"出现发热、咳嗽、乏力、咽痛、腹泻、呼吸困难"},{"idArr":[10],"score":0,"color":"","checked":false,"className":"","title":"其他身体不适"}],"verify":{"minValue":{"errMsg":"输入的值不能小于","range":"0"},"maxValue":{"errMsg":"输入的值不能大于","range":"0"},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"健康\\"}]","label":"当前身体状况","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"10","latestValShow":true,"id":10,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"其他身体不适情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"11","latestValShow":true,"id":11,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[12],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"本人近14天内是否为确诊/疑似患者或无症状感染者","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"12","latestValShow":true,"id":12,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"13","latestValShow":true,"id":13,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[14],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"本人近14天内是否接触过确诊/疑似病例或无症状感染者","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"14","latestValShow":true,"id":14,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"15","latestValShow":true,"id":15,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[16],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"本人近14天内是否有国内疫情防控中高风险区旅居史","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"16","latestValShow":true,"id":16,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"17","latestValShow":true,"id":17,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[18],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"本人近14天内是否接触国内疫情防控中高风险区返乡人员","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"18","latestValShow":true,"id":18,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"19","latestValShow":true,"id":19,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[20],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"本人近14天内是否有国(境)外旅居史","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"20","latestValShow":true,"id":20,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"21","latestValShow":true,"id":21,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[22],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"本人近14天内是否接触过国(境)外返回人员","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"22","latestValShow":true,"id":22,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"23","latestValShow":true,"id":23,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[24],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"共同生活亲属近14天内是否出现发热、咳嗽、乏力、咽痛、腹泻、等身体症状","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"24","latestValShow":true,"id":24,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"25","latestValShow":true,"id":25,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[26],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"共同生活亲属近14天内是否为确诊/疑似患者或无症状感染者","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"26","latestValShow":true,"id":26,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"27","latestValShow":true,"id":27,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[28],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"共同生活亲属近14天内是否接触过确诊/疑似病例或无症状感染者","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"28","latestValShow":true,"id":28,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"29","latestValShow":true,"id":29,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[30],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"共同生活亲属近14天内是否有国内疫情防控中高风险区旅居史","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"30","latestValShow":true,"id":30,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"31","latestValShow":true,"id":31,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[32],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"共同生活亲属近14天内是否接触国内疫情防控中高风险区返乡人员","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"32","latestValShow":true,"id":32,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"33","latestValShow":true,"id":33,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[34],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"共同生活亲属近14天内是否有国(境)外旅居史","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"34","latestValShow":true,"id":34,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"35","latestValShow":true,"id":35,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[36],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"共同生活亲属近14天内是否接触过国(境)外返回人员","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"edittextarea","layoutRatio":1,"alias":"36","latestValShow":true,"id":36,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":200,"open":false},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"情况说明","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"captiontext","layoutRatio":1,"alias":"37","id":37,"fields":[{"visible":true,"editable":false,"tip":{"imgs":[],"text":"<p style=\\"text-align: center;\\"><span style=\\"font-size: x-large;\\">出行情况&nbsp;&nbsp;&nbsp;&nbsp;</span><br></p>"},"label":"说明文字","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":false},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"38","latestValShow":true,"id":38,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"否","isOther":false}],"options":[{"idArr":[],"score":0,"color":"","checked":true,"className":"color6","title":"否"},{"idArr":[39,41,42,43],"score":0,"color":"","checked":false,"className":"color2","title":"是"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"否\\"}]","label":"当日是否有外出活动(跨市)","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"datetimerange","visible":true,"editable":true,"layoutRatio":1,"alias":"39","verify":{"dateRange":{"isInclude":false,"errMsg":"开始时间不能晚于结束时间","format":"yyyy-MM-dd HH:mm"},"validateRange":{"beginDate":"","dynamicRangeStartValue":1,"dynamicRangeEndValue":1,"rangeType":0,"endDate":"","errMsg":"请输入合法的日期范围","dynamicRangeStartType":1,"dynamicRangeEndType":3},"required":{}},"id":39,"fields":[{"tip":{"imgs":[],"text":"请选择"},"label":"外出开始时间","fieldType":{"format":"yyyy-MM-dd HH:mm","type":"date"},"values":[]},{"tip":{"imgs":[],"text":"请选择"},"label":"预计结束时间","fieldType":{"format":"yyyy-MM-dd HH:mm","type":"date"},"values":[]},{"label":"时长","fieldType":{"unit":"hour","calculate":true,"type":"timerange"},"values":[]}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"areamultiselect","level":3,"layoutRatio":1,"alias":"41","latestValShow":true,"id":41,"fields":[{"hasDefaultValue":false,"visible":true,"multiOptions":[],"editable":true,"values":[],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"},{\\"val\\":\\"\\"},{\\"val\\":\\"\\"},{\\"val\\":\\"\\"}]","label":"外出目的地","fieldType":{"type":"multibox"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"areamultiselect","level":2,"layoutRatio":1,"alias":"42","latestValShow":false,"id":42,"fields":[{"hasDefaultValue":false,"visible":true,"multiOptions":[],"editable":true,"values":[],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"},{\\"val\\":\\"\\"}]","label":"外出途径地","fieldType":{"type":"multibox"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"editinput","layoutRatio":1,"alias":"43","formula":{"selIndex":-1,"calculateFieldId":"0","status":false},"latestValShow":false,"id":43,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":20,"open":false},"regularExpress":{"errorTip":"格式错误!","express":""},"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"外出交通工具(例:自驾、长途汽车、火车、飞机等)","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"captiontext","layoutRatio":1,"alias":"49","id":49,"fields":[{"visible":true,"editable":false,"tip":{"imgs":[],"text":"<p style=\\"text-align: center;\\"><font size=\\"5\\">疫苗接种信息采集</font></p>"},"label":"说明文字","fieldType":{"type":"string"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":false},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"50","latestValShow":true,"id":50,"optionColor":true,"fields":[{"hasDefaultValue":true,"visible":true,"editable":true,"values":[{"val":"是","isOther":false}],"options":[{"idArr":[52,53],"score":0,"color":"","checked":true,"className":"color6","title":"是"},{"idArr":[54],"score":0,"color":"","checked":false,"className":"color2","title":"否"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"是\\"}]","label":"是否已接种新冠疫苗","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":false,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"dateinput","layoutRatio":1,"alias":"52","latestValShow":true,"id":52,"fields":[{"hasDefaultValue":false,"dayIndex":0,"visible":true,"editable":true,"values":[{"val":"%s"}],"appoint":false,"verify":{"validateRange":{"beginDate":"","dynamicRangeStartValue":1,"dynamicRangeEndValue":1,"rangeType":0,"endDate":"","errMsg":"请输入合法的日期范围","dynamicRangeStartType":1,"dynamicRangeEndType":3},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"第一针接种时间","fieldType":{"format":"yyyy-MM-dd","type":"date"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"dateinput","layoutRatio":1,"alias":"53","latestValShow":true,"id":53,"fields":[{"hasDefaultValue":false,"dayIndex":0,"visible":true,"editable":true,"values":[{"val":"%s"}],"appoint":false,"verify":{"validateRange":{"beginDate":"","dynamicRangeStartValue":1,"dynamicRangeEndValue":1,"rangeType":0,"endDate":"","errMsg":"请输入合法的日期范围","dynamicRangeStartType":1,"dynamicRangeEndType":3}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"第二针接种时间","fieldType":{"format":"yyyy-MM-dd","type":"date"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"linkInfo":{"condFields":[],"linkFormType":"","linkFormId":0,"linkFormValueFieldCompt":"","linkFormIdEnc":"","linkFormValueFieldId":0,"linked":false},"compt":"editinput","layoutRatio":1,"alias":"54","formula":{"selIndex":-1,"calculateFieldId":"0","status":false},"latestValShow":true,"id":54,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[],"verify":{"charLimit":{"size":20,"open":false},"regularExpress":{"errorTip":"格式错误!","express":""},"unique":{"errMsg":"此项内容已存在,不允许重复提交","open":false},"format":{"type":""},"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[{\\"val\\":\\"\\"}]","label":"未接种原因","sweepCode":false,"fieldType":{"type":"string"},"codeChangeable":false}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":false,"hasAuthority":true},{"compt":"radiobutton","otherAllowed":false,"comptCombined":true,"layoutRatio":1,"alias":"55","latestValShow":false,"id":55,"optionColor":true,"fields":[{"hasDefaultValue":false,"visible":true,"editable":true,"values":[{"val":"是","isOther":false}],"options":[{"idArr":[],"score":100,"color":"","checked":true,"className":"color6","title":"是"},{"idArr":[],"score":0,"color":"","checked":false,"className":"color2","title":"否"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"defaultValueStr":"[]","label":"本人承诺:以上信息填报真实有效。本人严格遵守相关防疫工作要求,及时、准确向学校申报健康状况、接触情况、出行行程安排等,并认真做好个人防护。","fieldType":{"type":"string"}}],"optionScoreShow":false,"optionScoreUsed":true,"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true},{"compt":"signature","layoutRatio":1,"alias":"56","id":56,"fields":[{"visible":true,"editable":true,"values":[{"val":"%s"}],"verify":{"required":{}},"tip":{"imgs":[],"text":""},"label":"手写签名","fieldType":{"type":"signature"}}],"inDetailGroupIndex":-1,"fromDetail":false,"isShow":true,"hasAuthority":true}]'
        % (cookies['_uid'], form[1]['fields'][0]['values'][0]['uname'],
           form[2]['fields'][0]['values'][0]['val'],
           form[3]['fields'][0]['values'][0]['val'],
           form[4]['fields'][0]['values'][0]['val'],
           form[5]['fields'][0]['values'][0]['val'],
           form[6]['fields'][0]['values'][0]['val'],
           form[7]['fields'][0]['values'][0]['address'],
           form[7]['fields'][0]['values'][0]['lng'],
           form[7]['fields'][0]['values'][0]['lat'],
           form[47]['fields'][0]['values'][0]['val'],
           form[48]['fields'][0]['values'][0]['val'],
           form[51]['fields'][0]['values'][0]['val']), 'utf-8')
    params_c3 = 'formId=92597&formAppId=&version=0&formData=' + params_c3 + '&ext=&t=1&enc=e8a70d13bac504a2ec42ad5d72aa8abd&checkCode=%s&gatherId=0&anonymous=0&uniqueCondition=[]&gverify=' % (
        checkCode)
    url = api_save % (cookies['_uid'])
    resp = requests.post(url, cookies=cookies, params=params_c3)
    if '每个用户只能填写1次,您的提交已达上限哦~' in resp.text or '"success":true' in resp.text:
        return '每日健康上报打卡成功或已打卡过'
    else:
        print(resp.text)
        return '每日健康上报打卡失败'


# 云函数入口
def main_handler(event, context):
    cookies = login()
    return checkin3(cookies)


if __name__ == '__main__':
    print(main_handler(None, None))

本地测试通过

image-20210212020408353

image-20210212020504083

image-20210212020551151

image-20210212020625136

部署到云函数或者github action

我这里选择部署到国内运营商的云函数,因为比较稳定(并不,github action也是可以的。

这里是阿里云函数服务的流程。

image-20210212021739139

image-20210212021756288

image-20210212021835137

翻车😭

image-20210212022307621

没找到原因,直接换了腾讯云函数碰碰运气,结果就可以了??? 为什么啊(腾讯云函数的操作和阿里的大差不差

image-20210212022447353

然后设置一个每天自动打卡的触发器

image-20210212022524763

大年初一凌晨2.26,我居然在搞这个玩意。。。

脑子有点迷迷糊糊的,写的比较混乱,很多地方之前没截图就跳过了😂,有不懂可以发评论😂(会有人看吗😐,同时欢迎大佬指点。

顶不住了,睡了睡了。


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!