Ejemplo n.º 1
0
def iot_login(r, _system_name_list, _proxies, _auth):
    header = {
        'User-Agent':
        'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0',
        'Accept':
        'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
        'Accept-Language': 'en-US,en;q=0.5',
        'Accept-Encoding': 'gzip, deflate'
    }

    # TODO:看一下改密码后是否都是一样    _system_name_list = '物联网系统前台|e228568c23b8443a927555a6e5a423d2|cb26fbcb34ae463fb1f9ec41ca2057a9'
    appResAccountList = _system_name_list.split('|')[1]
    id_num = _system_name_list.split('|')[2]
    r.post('https://4a.gmcc.net/page/resource/resourceQuery.do?',
           data={
               'method':
               'isAuthDateValid',
               'subaccName':
               setting.load_config_setting('Auth4a',
                                           'self_conode_id',
                                           type='item')
           },
           headers=header,
           verify=False,
           proxies=_proxies,
           auth=_auth)

    param = {
        'method': 'checkPolicy4JK',
        'resId': id_num,
        'resAccId': appResAccountList,
        'date': str(time.time()).replace('.', '') + str(random.randint(1, 9))
    }
    r.post('https://4a.gmcc.net/page/jk/sso/appJKLogin.do',
           data=param,
           headers=header,
           verify=False,
           proxies=_proxies,
           auth=_auth)

    param = {'method': 'wantGetMACAddress', 'resId': id_num}
    r.post('https://4a.gmcc.net/sso.do',
           data=param,
           headers=header,
           verify=False,
           proxies=_proxies,
           auth=_auth)

    url = 'https://4a.gmcc.net/sso.do?method=appssoData&accID=' + appResAccountList + '&resID=' + id_num + '&softname=webAppByIE&date=' + str(
        time.time()).replace('.', '') + str(random.randint(1, 9))
    s = r.get(url,
              headers=header,
              allow_redirects=True,
              verify=False,
              proxies=_proxies,
              auth=_auth)
    return 'iot登录成功'
Ejemplo n.º 2
0
def login_4a_2(r, cn_pwd_saw, sms_pwd, loginForm2, _proxies, _auth):
    # 验证

    cn_name = setting.load_config_setting('Auth4a', 'username', type='item')
    header = {
        'User-Agent':
        'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0;  TheWorld 7)',
        'Accept': '*/*',
        'Accept-Language': 'zh-CN',
        'Accept-Encoding': 'gzip, deflate'
    }
    url = 'https://4acasp.gmcc.net/loginServlet.do?target=https://4a.gmcc.net/first.do?method=login&authType=noteAuth&appCode=IAM000'
    param = {
        'compInfo': '',
        'random_form': loginForm2,
        'loginPage': '/auth/nextUserLogin.jsp',
        'userName': cn_name,
        'passWord': '',
        'tokenName': cn_name,
        'isUsePin': 'true',
        'updatePin': 'false',
        'tokenpassword': '',
        'pinCode': '',
        'smsName': cn_name,
        'smsPwd': cn_pwd_saw,
        'dynamic_smsPwd': sms_pwd,
        'checkCodeTemp': '',
        'figerName': '',
        'challengeName': 'cn_name',
        'challegePassword': '',
        'vpn': ''
    }
    result = r.post(url,
                    data=param,
                    headers=header,
                    verify=False,
                    proxies=_proxies,
                    auth=_auth)

    param = {
        'method': 'pageQuery',
        '_gt_json':
        '{"recordType":"object","pageInfo":{"totalRowNum":-1,"pageSize":50,"pageNum":1,"totalPageNum":0,"startRowNum":0,"endRowNum":0},"columnInfo":[{"id":"id","header":"资源ID","fieldName":"id","fieldIndex":"id","sortOrder":null,"hidden":true,"exportable":true,"printable":true},{"id":"hasDueAcc","header":"hasDueAcc","fieldName":"hasDueAcc","fieldIndex":"hasDueAcc","sortOrder":null,"hidden":true,"exportable":true,"printable":true},{"id":"groupName","header":"资源组","fieldName":"groupName","fieldIndex":"groupName","sortOrder":null,"hidden":false,"exportable":true,"printable":true},{"id":"name","header":"资源名称","fieldName":"name","fieldIndex":"name","sortOrder":null,"hidden":false,"exportable":true,"printable":true},{"id":"ip","header":"IP地址","fieldName":"ip","fieldIndex":"ip","sortOrder":null,"hidden":false,"exportable":true,"printable":true},{"id":"restype","header":"资源类型","fieldName":"restype","fieldIndex":"restype","sortOrder":null,"hidden":true,"exportable":true,"printable":true},{"id":"appResAccountList","header":"从帐号列表","fieldName":"id","fieldIndex":"id","sortOrder":null,"hidden":false,"exportable":true,"printable":true},{"id":"ssoMode","header":"ssoMode","fieldName":"ssoMode","fieldIndex":"ssoMode","sortOrder":null,"hidden":"true","exportable":true,"printable":true},{"id":"sysResClientList","header":"登录","fieldName":"id","fieldIndex":"id","sortOrder":null,"hidden":false,"exportable":true,"printable":true},{"id":"opt","header":"操作","fieldName":"id","fieldIndex":"id","sortOrder":null,"hidden":false,"exportable":true,"printable":true}],"sortInfo":[],"filterInfo":[],"parameters":{},"action":"load"}',
        'queryName': '',
        'queryIP': '',
        'isQuerySubTree': '1'
    }
    result = r.post(
        'https://4a.gmcc.net/page/resource/appres/appresourceQuery.do',
        data=param,
        headers=header,
        verify=False,
        proxies=_proxies,
        auth=_auth)
    if result.url == 'https://4a.gmcc.net/error/error.jsp':
        return None
    json2 = json.loads(result.text)
    _system_name_list = ''
    for i in json2.get('data'):
        _name = i.get('name')
        _appResAccountList = i.get('appResAccountList').split('|')[0][:-1]
        _id_num = i.get('id')
        _system_name_list = _system_name_list + _name + '|' + _appResAccountList + '|' + _id_num + ";"

    return _system_name_list
Ejemplo n.º 3
0
def login_4a_1(r, send_sms1, send_sms2, _proxies, _auth):
    cn_name = setting.load_config_setting('Auth4a', 'username', type='item')
    header = {
        'User-Agent':
        'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0;  TheWorld 7)',
        'Accept': '*/*',
        'Accept-Language': 'zh-CN',
        'Accept-Encoding': 'gzip, deflate'
    }
    # sendsms2会变的
    userInfo = send_sms2

    url = 'https://4a.gmcc.net'
    result = r.get(url,
                   headers=header,
                   verify=False,
                   proxies=_proxies,
                   auth=_auth)
    soup = BeautifulSoup(result.text, 'lxml')
    loginForm1 = soup.select('#loginForm')[0].find(attrs={
        "name": 'random_form'
    }).attrs['value']
    # 获取random_form
    # 登陆界面

    url = 'https://4acasp.gmcc.net/jk.do?method=checkUserType&userId=' + cn_name
    result = r.post(url,
                    data={
                        'method': 'checkUserType',
                        'userId': cn_name
                    },
                    headers=header,
                    verify=False,
                    proxies=_proxies,
                    auth=_auth)

    url = 'https://4acasp.gmcc.net/loginForward.do?target=https://4a.gmcc.net/first.do?method=login&appCode=IAM000&sendsms=' + send_sms1
    parma = {
        'random_form': loginForm1,
        'loginPage': '/auth/nextlogin.jsp',
        'smsNameText': cn_name,
        'smsName': cn_name
    }
    result = r.post(url,
                    data=parma,
                    headers=header,
                    verify=False,
                    proxies=_proxies,
                    auth=_auth)
    soup = BeautifulSoup(result.text, 'lxml')
    loginForm2 = soup.select('#loginForm')[0].find(attrs={
        "name": 'random_form'
    }).attrs['value']
    parma = {'sendsms': send_sms2}
    result = r.post(
        'https://4acasp.gmcc.net/jk.do?method=checkSMSUser&appCode=IAM000',
        data=parma,
        headers=header,
        verify=False,
        proxies=_proxies,
        auth=_auth)

    url = 'https://4acasp.gmcc.net/jk.do?method=checkSMSJK&target=https://4a.gmcc.net/first.do?method=login&authType=noteAuth&appCode=IAM000&loginPage=/auth/nextlogin.jsp&userInfo=' + userInfo
    r.post(url, headers=header, verify=False, proxies=_proxies, auth=_auth)
    url = 'https://4acasp.gmcc.net/sendSms.do?smsfrom=send&target=https://4a.gmcc.net/first.do?method=login&authType=noteAuth&appCode=IAM000&loginPage=/auth/nextlogin.jsp'

    # 下面这一步获取短信验证码
    _thread.start_new_thread(sms_4a, (r, url, parma, header, _proxies, _auth))
    #     这里应该要做检查
    return loginForm2
Ejemplo n.º 4
0
def stop_and_open(_r, _type, phone, _proxies, _auth):
    iot_phone_query_base_setp1(_r, phone, _proxies, _auth)

    url = 'http://10.253.61.8/ngcustcare/common/submits/unitCommonSubmit.action?flow=productOrientedFlow&version=1.01'
    s = _r.get(url, auth=_auth, proxies=_proxies)
    soup = BeautifulSoup(s.text, 'lxml')
    _submits = soup.find(attrs={
        'name': 'submits/unitCommonSubmit'
    }).attrs['value']

    url = 'http://10.253.61.8/ngcustcare/custsvc/stopopen/stopOpenCommit.action'
    param = ''
    if _type == '申请开机':
        param = {
            'stopOpenType': '00030000',
            'stopOpenReason': 'd',
            'stopOpenMemo': '',
            'hiddenTokenName': 'submits/unitComamonSubmit',
            'submits/unitCommonSubmit': _submits
        }
    cn_cookies3 = cn_cookies2(_r.cookies, phone)
    s = _r.post(url,
                data=param,
                auth=_auth,
                proxies=_proxies,
                cookies=cn_cookies3)
    soup = BeautifulSoup(s.text, 'lxml')
    _hiddenTokenName_value = soup.find(attrs={
        "name": "fee/calculate"
    }).attrs['value']

    url = 'http://10.253.61.8/ngcustcare/common/fee/pay.action'
    param = {
        'PreBussOrderId':
        '',
        'withdrawGoods':
        '',
        'payTypeBean.cashAmt':
        '',
        'payTypeBean.chequeAmt':
        '',
        'payTypeBean.bankId':
        '',
        'payTypeBean.bankName':
        '',
        'payTypeBean.chequeNum':
        '',
        'payTypeBean.cardAmt':
        '',
        'payTypeBean.posNum':
        '',
        'payTypeBean.confirmPosNum':
        '',
        'payTypeBean.weiXinPayAmt':
        '',
        'payTypeBean.weiXinPayNum':
        '',
        'payTypeBean.aliPayAmt':
        '',
        'payTypeBean.orderId':
        '',
        'payTypeBean.aliPayPayNum':
        '',
        'payTypeBean.newSeparatePayAmt':
        '',
        'payTypeBean.orderId':
        '',
        'payTypeBean.newSeparatePayNum':
        '',
        'payTypeBean.preAuthSeparatePayAmt':
        '',
        'payTypeBean.orderId':
        '',
        'payTypeBean.preAuthSeparatePayNum':
        '',
        'payTypeBean.acctCash':
        '',
        'payTypeBean.acctId':
        '-1',
        'payTypeBean.acctPayCash':
        '',
        'payTypeBean.acctPayId':
        '-1',
        'payTypeBean.scoreCash':
        '',
        'payTypeBean.score':
        '',
        'payTypeBean.scoreTransRule':
        '1/1',
        'payTypeBean.m':
        '0',
        'payTypeBean.mTransRule':
        '1/1',
        'payTypeBean.bankAmt':
        '',
        'payTypeBean.posautocardAmt':
        '',
        'payTypeBean.posautocardNum':
        '',
        'payTypeBean.posautoTerminalno':
        '',
        'payTypeBean.posautoReferno':
        '',
        'payTypeBean.posautoMerchantno':
        '',
        'payTypeBean.posnotautoAmt':
        '',
        'payTypeBean.posnotautocardNum':
        '',
        'payTypeBean.posnotautoTerminalno':
        '',
        'payTypeBean.posnotautoReferno':
        '',
        'payTypeBean.posnotautoMerchantno':
        '',
        'payTypeBean.separateAmt':
        '',
        'payTypeBean.separateBankId':
        'GH',
        'payTypeBean.separateBankName':
        '%E5%B7%A5%E8%A1%8C',
        'payTypeBean.separateBankAcct':
        '',
        'payTypeBean.separateBankUserName':
        '',
        'payTypeBean.separatePosNum':
        '',
        'payTypeBean.limitCash':
        '',
        'payTypeBean.unlimitCash':
        '',
        'BARGAINFEEXML':
        '',
        'CHANGEFEEBYBARGAINXML':
        '@260@263xml@232version@261@2341@2460@234@232encoding@261@234UTF@2458@234@263@262@260huawei@295call@262@260i@262common@247fee@247@242@260@247i@262@260e@262changeFeeByBargain@260@247e@262@260p@262@260m@262@260n@2620@260@247n@262@260t@262a@260@247t@262@260v@262@260@247v@262@260@247m@262@260m@262@260n@2621@260@247n@262@260t@262a@260@247t@262@260v@262@260@247v@262@260@247m@262@260@247p@262@260@247huawei@295call@262&UPDATEPAYTYPEBYPAGEDATAXML=@260@263xml@232version@261@2341@2460@234@232encoding@261@234UTF@2458@234@263@262@260huawei@295call@262@260i@262common@247fee@247@242@260@247i@262@260e@262updatePayTypeByPageData@260@247e@262@260p@262@260m@262@260n@2620@260@247n@262@260t@262a@260@247t@262@260v@262@260@247v@262@260@247m@262@260@247p@262@260@247huawei@295call@262',
        'reccustinfo_name':
        '',
        'reccustinfo_phone':
        '',
        'reccustinfo_certificateType':
        'IdCard',
        'reccustinfo_certificateNum':
        setting.load_config_setting('Auth4a',
                                    'self_certificate_num',
                                    type='item'),
        'reccustinfo_address':
        '',
        'emergencyContactNo':
        '',
        'reccustinfo_note':
        '',
        'invoicePrintMode':
        '',
        'hiddenTokenName':
        'fee%2Fcalculate',
        'fee%2Fcalculate':
        _hiddenTokenName_value,
        'receiptNumber':
        '00000000',
        'assembleInvoice':
        '0',
        'invoiceNumber':
        '00000000',
        'elecInvoiceServNumber':
        phone,
        'isForPaging':
        'OLD',
        'changeEnumRecType':
        ''
    }
    s = _r.post(url,
                data=param,
                auth=_auth,
                proxies=_proxies,
                cookies=cn_cookies3)
    return ''.join(s.text).split()[0]
Ejemplo n.º 5
0
def iot_phone_query_base_setp2(r, s2, phone_num, _proxies, _auth):
    def cn_soup(temp):
        a = soup.find(attrs={"name": temp}).attrs['value']
        return a

    soup = BeautifulSoup(s2.text, 'lxml')
    cn_cookies3 = cn_cookies1(r, r.cookies, phone_num)
    url3 = 'http://10.253.61.8/nguniteview/bossviewhome.jsp'
    param3 = {
        'ccm_ObjectID':
        '',
        'ccm_RandomNum':
        '',
        'ccdirect':
        soup.find(attrs={
            "name": "ccdirect"
        }).attrs['value'],
        'ccm_EntityID':
        soup.find(attrs={
            "name": "ccm_EntityID"
        }).attrs['value'],
        'ccm_EntityName':
        soup.find(attrs={
            "name": "ccm_EntityName"
        }).attrs['value'],
        'ccm_CreateDate':
        soup.find(attrs={
            "name": "ccm_CreateDate"
        }).attrs['value'],
        'ccm_Status':
        soup.find(attrs={
            "name": "ccm_Status"
        }).attrs['value'],
        'ccm_StatusDate':
        soup.find(attrs={
            "name": "ccm_StatusDate"
        }).attrs['value'],
        'ccm_EditStatus':
        soup.find(attrs={
            "name": "ccm_EditStatus"
        }).attrs['value'],
        'ccm_Region':
        '200',
        'ccm_ShortName':
        '',
        'ccm_Password':
        soup.find(attrs={
            "name": "ccm_Password"
        }).attrs['value'],
        'ccm_CustType':
        'PersonCustomer',
        'ccm_VipType':
        soup.find(attrs={
            "name": "ccm_VipType"
        }).attrs['value'],
        'ccm_Foreigner':
        soup.find(attrs={
            "name": "ccm_Foreigner"
        }).attrs['value'],
        'ccm_CustClass1':
        soup.find(attrs={
            "name": "ccm_CustClass1"
        }).attrs['value'],
        'ccm_CustClass2':
        soup.find(attrs={
            "name": "ccm_CustClass2"
        }).attrs['value'],
        'ccm_National':
        soup.find(attrs={
            "name": "ccm_National"
        }).attrs['value'],
        'ccm_Address':
        '********',
        'ccm_CertID':
        soup.find(attrs={
            "name": "ccm_CertID"
        }).attrs['value'],
        'ccm_CertType':
        soup.find(attrs={
            "name": "ccm_CertType"
        }).attrs['value'],
        'ccm_CertAddr':
        '********',
        'ccm_LinkMan':
        soup.find(attrs={
            "name": "ccm_LinkMan"
        }).attrs['value'],
        'ccm_LinkPhone':
        soup.find(attrs={
            "name": "ccm_LinkPhone"
        }).attrs['value'],
        'ccm_HomeTel':
        '',
        'ccm_OfficeTel':
        '',
        'ccm_MobileTel':
        '',
        'ccm_PostCode':
        soup.find(attrs={
            "name": "ccm_PostCode"
        }).attrs['value'],
        'ccm_LinkAddr':
        '********',
        'ccm_Email':
        '',
        'ccm_HomePage':
        '',
        'ccm_IsMergeBill':
        '1',
        'ccm_CreditLevel':
        soup.find(attrs={
            "name": "ccm_CreditLevel"
        }).attrs['value'],
        'ccm_OwnerAreaID':
        soup.find(attrs={
            "name": "ccm_OwnerAreaID"
        }).attrs['value'],
        'ccm_OrgID':
        soup.find(attrs={
            "name": "ccm_OrgID"
        }).attrs['value'],
        'ccm_RegStatus':
        '1',
        'ccm_Notes':
        soup.find(attrs={
            "name": "ccm_Notes"
        }).attrs['value'],
        'ccm_ResponseCustMgr':
        '',
        'ccm_CurrentCustMgr':
        '',
        'ccm_InLevel':
        soup.find(attrs={
            "name": "ccm_InLevel"
        }).attrs['value'],
        'ccm_TownID':
        '',
        'ccm_VipTypeStateDate':
        soup.find(attrs={
            "name": "ccm_VipTypeStateDate"
        }).attrs['value'],
        'ccm_NetServGrade':
        '',
        'ccm_CustAddrArray':
        '[]',
        'ccm_CustBillArray':
        '[]',
        'ccm_IsEncrypt':
        '1',
        'ccm_starLevel':
        soup.find(attrs={
            "name": "ccm_starLevel"
        }).attrs['value'],
        'ccm_IsFaceChk':
        soup.find(attrs={
            "name": "ccm_IsFaceChk"
        }).attrs['value'],
        'ccregister':
        soup.find(attrs={
            "name": "ccregister"
        }).attrs['value'],
        'ccnotRegister':
        soup.find(attrs={
            "name": "ccnotRegister"
        }).attrs['value'],
        'csm_ObjectID':
        '',
        'csm_RandomNum':
        '',
        'csdirect':
        soup.find(attrs={
            "name": "csdirect"
        }).attrs['value'],
        'csm_EntityID':
        soup.find(attrs={
            "name": "csm_EntityID"
        }).attrs['value'],
        'csm_EntityName':
        cn_soup('csm_EntityName'),
        'csm_CreateDate':
        cn_soup('csm_CreateDate'),
        'csm_Status':
        cn_soup('csm_Status'),
        'csm_StatusDate':
        '******',
        'csm_EditStatus':
        cn_soup('csm_EditStatus'),
        'csm_Region':
        '200',
        'csm_Password':
        cn_soup('csm_Password'),
        'csm_ProductID':
        cn_soup('csm_ProductID'),
        'csm_ServNumber':
        cn_soup('csm_ServNumber'),
        'csm_RegisterOrgID':
        cn_soup('csm_RegisterOrgID'),
        'csm_OwnerOrgID':
        cn_soup('csm_OwnerOrgID'),
        'csm_AccountOid':
        cn_soup('csm_AccountOid'),
        'csm_CustomerOid':
        cn_soup('csm_CustomerOid'),
        'csm_AuthType':
        'AuthCheckB',
        'csm_MobileType':
        'mbtpNml',
        'csm_AreaID':
        '',
        'csm_PayMode':
        '1',
        'csm_StopKey':
        cn_soup('csm_StopKey'),
        'csm_Brand':
        cn_soup('csm_Brand'),
        'csm_StartDate':
        cn_soup('csm_StartDate'),
        'csm_InvalidDate':
        cn_soup('csm_InvalidDate'),
        'csm_SettleDay':
        '1',
        'csm_Enum':
        cn_soup('csm_Enum'),
        'csm_Imsi':
        cn_soup('csm_Imsi'),
        'csm_Credit':
        '0',
        'csm_SubsProduct':
        '[]',
        'csm_IsDefaultTelNum':
        '1',
        'csm_BelongRegion':
        '0',
        'csm_TargetRegion':
        '0',
        'csm_CretLevel':
        '',
        'csgotone':
        cn_soup('csgotone'),
        'csnotGotone':
        cn_soup('csnotGotone'),
        'cam_ObjectID':
        '',
        'cam_RandomNum':
        '',
        'cadirect':
        cn_soup('cadirect'),
        'cam_EntityID':
        cn_soup('cam_EntityID'),
        'cam_EntityName':
        cn_soup('cam_EntityName'),
        'cam_CreateDate':
        cn_soup('cam_CreateDate'),
        'cam_Status':
        cn_soup('cam_Status'),
        'cam_StatusDate':
        cn_soup('cam_StatusDate'),
        'cam_EditStatus':
        '0',
        'cam_Region':
        '200',
        'cam_CustID':
        cn_soup('cam_CustID'),
        'cam_GroupAcctID':
        '',
        'cam_PrePayType':
        'pptpPost',
        'cam_AccountType':
        'actpCmn',
        'cam_OverDraft':
        '0',
        'cam_ControlScheme':
        '0',
        'cam_EntrustTel':
        cn_soup('cam_EntrustTel'),
        'cam_OrgID':
        cn_soup('cam_OrgID'),
        'cam_NotifyType':
        '0',
        'cam_NotifyValue':
        '0',
        'cam_InvPrintType':
        'InvPTbillfee',
        'cam_Notes':
        '',
        'cam_PayChannelArray':
        '[]',
        'cam_CustBillArray':
        '[]',
        'cam_UrgeInfos':
        '[]',
        'cam_SettleAccount':
        '',
        'cam_IsDefault':
        '1',
        'cam_BillInvoiceMailArray':
        '[]',
        'cam_NotifyValueDisplay':
        '0',
        'cam_CreateDateDisplay':
        cn_soup('cam_CreateDateDisplay'),
        'com_ObjectID':
        '',
        'com_RandomNum':
        '',
        'comenuId':
        cn_soup('comenuId'),
        'codirect':
        'FALSE',
        'com_EntityID':
        'AGZGT0000829',
        'com_EntityName':
        cn_soup('com_EntityName'),
        'com_CreateDate':
        cn_soup('com_CreateDate'),
        'com_Status':
        cn_soup('com_Status'),
        'com_StatusDate':
        cn_soup('com_StatusDate'),
        'com_EditStatus':
        '0',
        'com_Region':
        '200',
        'coerrorInfoForControl':
        '',
        'conodeID':
        setting.load_config_setting('Auth4a', 'self_conode_id', type='item'),
        'conodeName':
        cn_soup('conodeName'),
        'conodeParentID':
        cn_soup('conodeParentID'),
        'coentityID':
        setting.load_config_setting('Auth4a', 'self_conode_id', type='item'),
        'cootherParam':
        cn_soup('cootherParam'),
        'cochecked':
        cn_soup('cochecked'),
        'com_MenuID':
        cn_soup('com_MenuID'),
        'com_ServNum':
        '',
        'com_TouchNum':
        '',
        'com_Password':
        cn_soup('com_Password'),
        'com_OrgID':
        cn_soup('com_OrgID'),
        'com_RoamOrgID':
        '',
        'com_PassChangeDate':
        cn_soup('com_PassChangeDate'),
        'com_OperType':
        cn_soup('com_OperType'),
        'com_Manager':
        '0',
        'com_Level':
        '',
        'com_ContactPhone':
        setting.load_config_setting('Auth4a', 'self_phone', type='item'),
        'com_MacAddress':
        cn_soup('com_MacAddress'),
        'com_OnDuty':
        '0',
        'com_ShareStore':
        '',
        'com_BirthDay':
        '',
        'com_WorkDate':
        '',
        'com_CertID':
        '',
        'com_Sex':
        '',
        'com_EducationLevel':
        '',
        'com_TotalLevel':
        '',
        'com_SkillLevel':
        '',
        'com_TrainLevel':
        '',
        'com_ComityLevel':
        '',
        'com_Operator_type':
        '0',
        'com_NativeHome':
        '',
        'com_graduateDate':
        '',
        'com_IsMarray':
        '0',
        'com_PolityFace':
        '',
        'com_HomeAddress':
        '',
        'com_JobLive':
        '',
        'com_NowPostID':
        '',
        'com_BloodType':
        '',
        'com_Healthy':
        '',
        'com_Character':
        '',
        'com_Enjoyful':
        '',
        'com_PriSocietyRelation':
        '',
        'com_FamilyDes':
        '',
        'com_StarLevel':
        '',
        'com_AssessRec':
        '',
        'com_hr_status':
        '1',
        'com_Restrict_time':
        '0',
        'com_Start_time':
        '0',
        'com_End_time':
        '24',
        'com_Enable_gprs':
        '0',
        'com_Gprs_starttime':
        '0',
        'com_Gprs_endtime':
        '0',
        'com_Check_mac':
        '0',
        'com_Mac':
        '',
        'com_IPAddress':
        '10.244.110.143',
        'costartUsingTime':
        cn_soup('costartUsingTime'),
        'coendUsingTime':
        cn_soup('coendUsingTime'),
        'com_QueueID':
        '',
        'com_InvVersion':
        '',
        'com_areaID':
        '',
        'servNumber':
        cn_soup('servNumber'),
        'transmit':
        cn_soup('transmit'),
        'recType':
        '',
        'stopKeyValue':
        cn_soup('stopKeyValue'),
        'remotemac':
        '08-00-27-44-EC-99'
    }
    s = r.post(url3,
               data=param3,
               cookies=cn_cookies3,
               headers=header2,
               auth=_auth,
               proxies=_proxies)
    return s