Exemplo n.º 1
0
def onlineauthentication(user_id): #在线身份验证
    method = 'com.aop.method.onlineauthentication'
    config = {'password':'******'}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 2
0
def gethistoryaccquiry(user_id): #历史账单查询
    method = 'com.aop.method.historyaccquiry'
    config = {'billdate':'201601'}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 3
0
def getcurrentfeequiry(user_id): #当月话费查询
    method = 'com.aop.method.currentfeequiry'
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 4
0
def getbalancereport(user_id): #统一余额播报
    method = 'com.aop.method.balancereport'
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 5
0
def getfourgpackageqry(user_id): #4G套餐变更查询
    method = 'com.aop.method.fourgpackageqry'
    config = {'targetproducttype':'01'}

    result = getuinfo.getresult(method,user_id,**config)

    print demjson.encode(result)
Exemplo n.º 6
0
def getflowqry(user_id): #流量包2.0购买查询
    method = 'com.aop.method.flowqry'
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 7
0
def getscore(user_id): #积分查询
    method = 'com.aop.method.score'
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 8
0
def index(user_id):

    method = 'com.aop.method.mobilenetdata'
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    userflow = {}

    usernumber = {'user_id':user_id}

    userflow.update(usernumber)

    if result['respcode'] == '0000':
        flowinf =  result['flowinf']

        detailenddate = {'detailenddate':result['detailenddate']} #截止
        userflow.update(detailenddate)


        for s in flowinf:
            packageusedflow = s['packageusedflow'] #主套餐已用
            packageleavingsflow = s['packageleavingsflow'] #主套餐剩余
            packageflow = float(packageusedflow) + float(packageleavingsflow) #总量

            packflow = {'packageusedflow':packageusedflow,
                        'packageleavingsflow':packageleavingsflow,
                        'packageflow':packageflow}
            userflow.update(packflow)
    else:
        pass
    return render_template('hb_index.html',userflow=userflow)
Exemplo n.º 9
0
def flowchg(user_id,resourcecode): #流量包2.0购买办理
    method = 'com.aop.method.flowchg'
    config = {'resourcecode':resourcecode,
              'busiorder':'BUSI001603010857398370101117'}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 10
0
def getpaymentrecord(user_id): #交费记录查询
    method = 'com.aop.method.paymentrecord'
    config = {'begindate':'20151001',
              'enddate':'20160228'}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 11
0
def setpasswdchange(user_id): #修改密码
    method = 'com.aop.method.passwdchange'
    config = {'passwdchangetype' :'00',
              'oldpasswd':'868629',
              'newpasswd':'782911'}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 12
0
def getuserinfo(user_id):
    method = 'com.aop.method.custinfo' #客户信息查询
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    for s in result:
        print s,result[s]
Exemplo n.º 13
0
def getprodpackage(user_id) : #产品套餐查询
    method = 'com.aop.method.prodpackage'
    config = {}

    result = getuinfo.getresult(method,user_id,**config)
    print result

    for s in result['produinf']:
        for i in s :
            print i + s[i]
Exemplo n.º 14
0
def mobilebusichange(user_id): #移动业务变更
    method = 'com.aop.method.mobilebusichange'
    config = {'mobilebusinesstype':'00',
              'featcode':'13022000020',
              'servicestatus':'00',
              'busiorder':'BUSI001602291305595800109428',
              'businesstype':'0'}

    result = getuinfo.getresult(method,user_id,**config)

    print result
Exemplo n.º 15
0
def getflow(user_id):

    method = 'com.aop.method.mobilenetdata'  #上网流量查询
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    for s in result:
        print s,result[s]
Exemplo n.º 16
0
def getscorerecord(user_id): #积分产生记录
    method = 'com.aop.method.scorerecord'
    config = {'begindate': '20151201',
              'enddate' : '20151231'}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    for s in  result['record']:
        for i in s :
            print i + " : " + s[i]
Exemplo n.º 17
0
def getmobileinfo(user_id): #移动业务信息查询
    method = 'com.aop.method.mobileinfo'
    config = {'mobilebusinesstype':'00',
              'businesstype':'0'}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    for s in result['record']:
        for i in s:
            print i + " : " + s[i]
Exemplo n.º 18
0
def getbusiacceptrecord(user_id): #业务受理记录查询
    method = 'com.aop.method.busiacceptrecord'
    config = {'begindate':'20151001',
              'enddate':'20160101'}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    for s in result['record']:
        for i in s :
            print i + ' : ' + s[i]
Exemplo n.º 19
0
def getcontractperiodqry(user_id):  #合约计划
    method = 'com.aop.method.contractperiodqry'
    config = {}

    result = getuinfo.getresult(method,user_id,**config)
    print result

    rinfo =  result['activityinfo']

    for i in range(len(rinfo)):
        print '------------'
        for s in rinfo[i]:
            print s + " : " + rinfo[i][s]
Exemplo n.º 20
0
def getflowanalysisdetail(user_id): #移动手机上网流量分析查询-新业务
    method = 'com.aop.method.flowanalysisdetail'
    config = {'proctime':datetime.datetime.now().strftime("%Y%m%d%H%M%S"),
              'querytype':'02',
              'begindate':'20160228000000',
              'enddate':'20160228235959'}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    for s in result:
        print s + " : " + result[s]
Exemplo n.º 21
0
def getpackage(user_id):
    method = 'com.aop.method.combospare'  #4G套餐余量查询
    config = {'billdate':'201601'}

    result = getuinfo.getresult(method,user_id,**config)
    rinfo = result['feepolicyaddupinfo']

    print result

    for i in range(len(rinfo)):
        print '---------------------'
        for s in rinfo[i]:
            print s + " : " + rinfo[i][s]
Exemplo n.º 22
0
def getresourceremainqry(user_id):
    method = 'com.aop.method.resourceremainqry' #资源余量查询
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    resinfo =  result['resourceinfo']
    dinfo = resinfo[0]
    rinfo = dinfo['detailresourceinfo'][1]

    for s in rinfo:
        print s + " : " + rinfo[s]
Exemplo n.º 23
0
def getleavepackagedata(user_id):
    method = 'com.aop.method.leavepackagedata'  #套餐余量查询
    config = {}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    rinfo =  result['flowinf']

    for i in range(len(rinfo)):
        print '-------------------'
        for s in rinfo[i]:
            print s + " : " + rinfo[i][s]
Exemplo n.º 24
0
def getphonenetflowdetail(user_id): #移动手机上网记录查询
    method = 'com.aop.method.phonenetflowdetail'
    config = {'proctime':datetime.datetime.now().strftime("%Y%m%d%H%M%S"),
              'querytype':'02',
              'begindate':'20160229000000',
              'enddate':datetime.datetime.now().strftime("%Y%m%d%H%M%S")}

    result = getuinfo.getresult(method,user_id,**config)

    print result

    rinfo = result['record']

    for i in range(len(rinfo)):
        print '-'*20
        for s in rinfo[i]:
            print s + " : " + rinfo[i][s]