import { EErrorCode } from "../Config/_error_" import { BaseHallController } from "../Controller/BaseHallController" export function UserValidate(target: any, propertyName: string, descriptor: TypedPropertyDescriptor) { let method = descriptor.value descriptor.value = function () { var self = this as BaseHallController if(!self.isLogin) { this.showJson({errcode:EErrorCode.Session_InValid}) return } return method.apply(this, arguments) } }