コード例 #1
0
    def test(self, context=ServantProxy.mapcls_context()):
        oos = tafcore.JceOutputStream()

        rsp = self.taf_invoke(ServantProxy.JCENORMAL, "test", oos.getBuffer(),
                              context, None)

        ios = tafcore.JceInputStream(rsp.sBuffer)
        ret = ios.read(tafcore.int32, 0, True)

        return (ret)
コード例 #2
0
    def oidb0x70f(self, req, context=ServantProxy.mapcls_context()):
        oos = tafcore.JceOutputStream()
        oos.write(Oidb0x70fReq, 1, req)

        rsp = self.taf_invoke(ServantProxy.JCENORMAL, "oidb0x70f",
                              oos.getBuffer(), context, None)

        ios = tafcore.JceInputStream(rsp.sBuffer)
        ret = ios.read(tafcore.int32, 0, True)
        rsp = ios.read(Oidb0x70fRsp, 2, True)

        return (ret, rsp)
コード例 #3
0
    def wxLoginVerify(self, head, req, context=ServantProxy.mapcls_context()):
        oos = tafcore.JceOutputStream()
        oos.write(SessionBusiHead, 1, head)
        oos.write(WxLoginVerifyReq, 2, req)

        rsp = self.taf_invoke(ServantProxy.JCENORMAL, "wxLoginVerify",
                              oos.getBuffer(), context, None)

        ios = tafcore.JceInputStream(rsp.sBuffer)
        ret = ios.read(tafcore.int32, 0, True)
        rsp = ios.read(WxLoginVerifyRsp, 3, True)

        return (ret, rsp)
コード例 #4
0
    def getXcxSessionKeyByCode(self,
                               head,
                               req,
                               context=ServantProxy.mapcls_context()):
        oos = tafcore.JceOutputStream()
        oos.write(SessionBusiHead, 1, head)
        oos.write(GetXcxSessionKeyByCodeReq, 2, req)

        rsp = self.taf_invoke(ServantProxy.JCENORMAL, "getXcxSessionKeyByCode",
                              oos.getBuffer(), context, None)

        ios = tafcore.JceInputStream(rsp.sBuffer)
        ret = ios.read(tafcore.int32, 0, True)
        rsp = ios.read(GetXcxSessionKeyByCodeRsp, 3, True)

        return (ret, rsp)