예제 #1
0
파일: httpuser.py 프로젝트: lordsky/hall0
    def doLoginByAccount(cls, rpath):

        __ret__ = TyContext.ServerControl.checkLoginForbid(rpath)
        if __ret__ != False:
            return __ret__
        msg = TyContext.RunHttp.convertToMsgPack(
            ['deviceId', 'clientId', 'appId', 'userAccount', 'userPwd'])
        mo = TyContext.Cls_MsgPack()
        Account.doLogin(msg, mo)
        return mo
예제 #2
0
파일: httpuser.py 프로젝트: lordsky/hall0
    def doLoginBySnsId(self, rpath):

        __ret__ = TyContext.ServerControl.checkLoginForbid(rpath)
        if __ret__ != False:
            return __ret__

        msg = TyContext.RunHttp.convertToMsgPack(
            ['deviceId', 'clientId', 'appId', 'snsId', 'snsToken'])
        mo = TyContext.Cls_MsgPack()
        Account.doLogin(msg, mo)
        return mo