Beispiel #1
0
def init():

    LOG.info("NetEase Plugin init")

    ControllerApi.api = netease_normalize

    user = UserDb.get_last_login_user()
    if user is not None:
        netease_normalize.set_uid(user.uid)
        user_data = user.basic_info
        if user.cookies is not None:
            netease_normalize.ne.load_cookies(user.cookies)
            if netease_normalize.login_by_cookies():
                ControllerApi.set_login()
                ViewOp.load_user_infos(user_data)
Beispiel #2
0
def init():

    LOG.info("NetEase Plugin init")

    ControllerApi.api = netease_normalize

    user = UserDb.get_last_login_user()
    if user is not None:
        netease_normalize.set_uid(user.uid)
        user_data = user.basic_info
        if user.cookies is not None:
            netease_normalize.ne.load_cookies(user.cookies)
            if netease_normalize.login_by_cookies():
                ControllerApi.set_login()
                ViewOp.load_user_infos(user_data)
Beispiel #3
0
 def on_login_success(self, data):
     ControllerApi.set_login()
     ViewOp.load_user_infos(data)
Beispiel #4
0
 def on_login_success(self, data):
     ControllerApi.set_login()
     ViewOp.load_user_infos(data)