facade/events/user/relogin.js
function handle(event) {
    if(event.data.type == 1 || event.data.type == 3 || event.data.type == 7){
        facade.models.login().findCreateFind({
            where:{
                uid: event.user.id,
                type: event.data.type,
            },
            defaults: {
                uid: event.user.id, 
                type: event.data.type, 
                time: event.data.time
            },
        });
    }
}
function handle(event) {
    if(event.data.type == 1 || event.data.type == 3 || event.data.type == 7){
        facade.models.login().findCreateFind({
            where:{
                uid: event.user.id,
                type: event.data.type,
            },
            defaults: {
                uid: event.user.id, 
                type: event.data.type, 
                time: event.data.time
            },
        });
    }
}
function handle ( event ) { if ( event . data . type == 1 || event . data . type == 3 || event . data . type == 7 ) { facade . models . login ( ) . findCreateFind ( { where : { uid : event . user . id , type : event . data . type , } , defaults : { uid : event . user . id , type : event . data . type , time : event . data . time } , } ) ; } }
Created by admin on 2017-05-26.
@param {EventData} event
Created by admin on 2017 - 05 - 26 .