def _moveHall51DataBack(self, userId, gameId, clientId): try: flag = DaoGameDataHall.HGET(userId, 'userChipMoveGame') ftlog.info('_moveHall51DataBack', userId, gameId, flag) if flag > 0: # 当前用户登录过HALL51 chip, exp, charm, coupon = DaoGameDataHall.HMGET( userId, ['chip', 'exp', 'charm', 'coupon']) chip, exp, charm, coupon = ftstr.parseInts( chip, exp, charm, coupon) ftlog.info('_moveHall51DataBack data->', userId, gameId, chip, exp, charm, coupon) if charm > 0: self.incrCharm(userId, charm) if exp > 0: self.incrExp(userId, exp) if coupon > 0: trueDelta, finalCount = self.incrCoupon( userId, gameId, coupon, ChipNotEnoughOpMode.NOOP, 'SYSTEM_REPAIR', 0) ftlog.info('_moveHall51DataBack data coupon->', userId, gameId, coupon, trueDelta, finalCount) if chip > 0: trueDelta, finalCount = self.incrChip( userId, gameId, chip, ChipNotEnoughOpMode.NOOP, 'SYSTEM_REPAIR', 0) ftlog.info('_moveHall51DataBack data chip->', userId, gameId, chip, trueDelta, finalCount) DaoGameDataHall.HDEL( userId, ['chip', 'exp', 'charm', 'coupon', 'userChipMoveGame']) pluginCross.halldatanotify.sendDataChangeNotify( userId, gameId, 'chip') except: ftlog.error()
def delNewUserFlg(self, userId): ''' 删除新用户的标记(新用户标记,主要用与发放启动资金) ''' return DaoGameDataHall.HDEL(userId, HallKeys.ATT_NEW_USER)