<?php
defined('IN_WEB') or die('Include Error!');

class okeys {
    static function ipStatus(){
        return "IP_STATUS";
    }
    static function slotTypeLimit($type,$uid){
        return "USER_SLOTTYPE:{$type}-{$uid}";
    }

    //ios兑换码版本
    static function openOlineVersion(){
        return 'OPENONLINE:VER';
    }

    static  function openOline(){
        return 'OPENONLINE';
    }

    static function isOpenMaple() {
        return 'ISOPENMAPLE';
    }

    /**
     * AB分组开关
     */
    static function abSwitch() {
        return 'ABSWTICH';
    }

    public static function writeList(){
        return "SYS_WRITE_LIST";
    }
    public static function InviteUrl(){
        return "https://crazyspin.vip/";
    }

    public static function teDayLimit($id,$subkey){
        return "LIMIT_DEDAY:{$id}-{$subkey}";
    }
    /**
     * 好友之间发送筹码
     * @param $uid
     * @param $touid
     * @return string
     */
    public static function userSendFri($uid, $touid, $gid) {
        return "SENDPROP:F:{$uid}T:{$touid}G:{$gid}";
    }

    /**
     * 用户恢复体力记录
     * @return string
     */
    public static function userRestoreTime($uid) {
        return "USERRESTORETIME:$uid";
    }
    /**
     * 用户卡片领取记录
     * @return string
     */
    public static function userCardReward($uid,$key) {
        return "USERCARDREWARD:".$uid.$key;
    }

    /**
     * 用户卡片进度领取记录
     * @return string
     */
    public static function userCardGroupReward($uid,$key) {
        return "USERCARDGROUPREWARD:".$uid.$key;
    }

    //用户帐号
    public static function account($siteuid) {
        return "POKDENGHALL_ACCOUNT|{$siteuid}";
    }
    //用户好友

    public static function userfriends($uid,$type = "all") {
        return "USERFRIENDS:{$uid}-{$type}";
    }

    public static function t_userinfo($uid) {
        return "POKDENGHALL_T_USERINFO:{$uid}";
    }

    /**
     * 玩家体力消耗情况(保留最近4天记录)
     */
    public static function userspinconsume($uid, $day) {
        return "USPC:{$uid}:{$day}";
    }

    /**
     * 基于golang友好,1.10用户缓存字段替换成hash字段
     */
    public static function t_userinfoNew($uid) {
        return "TIF:{$uid}";
    }


    //记录一下该用户可以偷的金币(------wsc-6.29后面合并偷请求后删除--------)

    public static function recordUserSteal($uid,$toUid = 0) {
        if($toUid != 0){
            return "RECORDUSERSTEAL:{$uid}-{$toUid}";
        }
        return "RECORDUSERSTEAL:{$uid}";
    }
    /**
     * 记录richestking可偷取金币
     * @param $uid
     * @param $touid
     * @return string
     * Created by: Owen
     * Created on: 2019/12/12 16:51
     */
    public static function richestKingCoin($uid,$touid){
        return "RICHESTKINGCOIN:{$uid}-{$touid}";
    }

    /**
     * Notes:用户绑定的king详细信息
     * User: wsc
     * Time: 2021/2/23 10:20
     * @param $uid
     */
    static function richestKingInfo($uid){
        return "RICHESTKINGINFO:{$uid}";
    }
    /**
     * Notes:用户高倍率》=30时旋转次数
     * User: wsc
     * Time: 2020/8/13 10:55
     * @param $uid
     */
    public static function userBetToSlotLimit($uid){
        return "USERBET_TO_SLOTLIMIT:{$uid}";
    }
    /**
     * 记录玩家的消息系统及好友消息(没用-可以用)
     * @param $uid
     */
    public static function getusernews($uid, $type = 1) {  // 未引用，删除redis缓存即可删除
        return "POKDENGHALL_GETUNEWS:{$uid}:{$type}";
    }


    //设置好友限制
    public static function setFriends($uid) {// 未引用，删除redis缓存即可删除
        return "POKDENGHALL_SETF|{$uid}";
    }

    //两个用户是否双向好友key
    public static function bidirectionFriends($uid, $suid) {// 未引用，删除redis缓存即可删除
        $key = $uid < $suid ? $uid . "_" . $suid : $suid . "_" . $uid;
        return $key;
    }

    //兑换码尝试错误次数
    public static function exchangeErr($uid) {
        $date = date('Ymd');
        return "POKDENGHALL_EXCERR|{$uid}:{$date}";
    }
    //玩家领取兑换码
    public static function exchangecode($uid, $code) {
        return "POKDENGHALL_EXCODE{$uid}_{$code}";
    }

    //领取兑换码玩家列表
    public static function exchangecodelist($code) {
        return "POKDENGHALL_{$code}_uidList";
    }

    //兑换码发放游戏币统计
    public static function exchangecodechips($code) {// 未引用，删除redis缓存即可删除
        return "POKDENGHALL_{$code}_SendChip";
    }

    //每日任务
    public static function task($uid, $type) {
        return 'TEXASTASK:'."|{$uid}|{$type}";
    }

    //每日任务 已领奖
    public static function taskRewarded($uid) {
        return 'TEXASTASKRW:'."|{$uid}";
    }


    //成就系统条件值
    public static function achi($uid) {
        return "ACHI|{$uid}";
    }

    //成就系统需要更新到数据的条件差值
    public static function achiDiff($uid) {
        return "ACHIDIFF|{$uid}";
    }


    //幸运大转盘
    public static function bigwheel($uid) {
        //return "BIGWHEEL_" . date('Ymd') . "_{$uid}";
        return "BIGWHEEL_{$uid}";
    }

    //幸运大转盘--支付模式
    public static function bigwheelPay($uid) {
        return "BIGWHEELPAY:".$uid;
    }

    public static function bigwheelLuckNum($uid){
        return "BIGWHEEL_LOCKNUM:{$uid}";
    }
    /** FB用户信息缓存类 * */
    public static function php_mtkey($mtkey) {
        return "POKDENGHALL_PHP_MTKEY_V2_{$mtkey}";
    }

    /** 延迟自动设置牌友 * */
    public static function delay_to_set_poker($uid) {// 未引用，删除redis缓存即可删除
        return "POKDENGHALL_DELAY_TO_SET_POKER_{$uid}";
    }

    //商品列表
    public static function goodsList(){
        return "GOODSLIST";
    }

    /** 召回流失好友 - 今日已邀请的好友信息* */
    public static function recall_today_record($uid) {// 未引用，删除redis缓存即可删除
        return "POKDENGHALL_RECALL_RECORD_{$uid}";
    }

    /** 召回流失好友 - 邀请ID* */
    public static function recall_request($recallId) {// 未引用，删除redis缓存即可删除
        return "POKDENGHALL_RECALL_REQ_{$recallId}";
    }



    /** 召回流失好友 - 被邀请者回归发奖记录* */
    public static function recall_rewarded($recaller, $lasttime) {// 未引用，删除redis缓存即可删除
        return "POKDENGHALL_RECALL_REWARD_{$recaller}_{$lasttime}";
    }

    /** 自动召回-回归者发奖记录 * */
    public static function recall_auto_rewarded($uid, $key) {// 未引用，删除redis缓存即可删除
        return "POKDENGHALL_RECALL_AUTO_{$uid}_{$key}";
    }

    /**
     * 被召回玩家返回，值为发生召回推送的玩家
     * @param $uid
     * @return string
     */
    public static function recallUserBack($uid) {// 未引用，删除redis缓存即可删除
        return "POKDENGHALL_RECALLUSERBACK:{$uid}";
    }

    /** 查看当前玩家当天是否已经收到推送
     * @param $uid
     */
    public static function recallToday($uid) {
        return "POKDENGHALL_RECALLTODAY:{$uid}";
    }

    /**
     * api请求短连接替换长连接,sid,lid,lang等基本数据
     */
    public static function userDefinedInfo($uid) {
        return "UDEFINEDINF:{$uid}";
    }

    /**
     * api请求连接开关标志
     * @return string
     */
    public static function apiWsSwitch() {
        return "WSAPIOPEN";
    }

    /**
     * inst/twitter粉丝弹出页
     * @return string
     */
    public static function fansPage() {
        return "FANSPAGE";
    }

    //=======================统计相关=============================

    /**
     *  统计在线在玩
     */
    public static function onlineplaying($id = 1)
    {
        return "ONLINEPLAYING{$id}";
    }

    //统计事件 --- actid
    static public function eventAct($actid)
    {
        $date = date('Ymd');
        return 'EVENT:'.$date.':'.$actid;
    }

    //统计事件 --- 玩家
    static public function eventActUser($actid)
    {
        $date = date('Ymd');
        return 'EVENT:'.$date.':'.$actid.'USER';
    }
    //每日FB发送邀请人数
    static public function dailyInviteNum()
    {
        $date = date('Ymd');
        return 'DAILYINVITENUM:'.$date;
    }
    //该日期的最大在线数
    static public function onlineusermaxnum($date)
    {
        return "ONLINEUSERSMAXNUM:{$date}";
    }
    //当前日期在线统计
    static function onlineCountLog(){
        return "ONLINECOUNTLOG:".date('Ymd');
    }
    //当前日期登录记录统计
    static function loginCountLog(){
        return "LOGINCOUNTLOG:".date('Ymd');
    }
    //当天活跃用户推送开启情况 $status 0未开启 1开启 2新开启
    static function openPushUserLog($status){
        return "OPENPUSHUSERLOG:".date('Ymd').':'.$status;
    }
    /**
     * 上次统计在线人数
     * Created by: Owen
     * Created on: 2019/11/27 19:20
     */
    static public function onlineusernum(){
        return "ONLINEUSERNUM";
    }

    //统计昨日流失玩家(wsc使用未知)
    static public function losestatistics($date)
    {
        return "LOSEUSERSTATISTICS:".$date;
    }
    //统计7天流失玩家(wsc使用未知)
    static public function losestatisticsseven($date)
    {
        return "LOSEUSERSTATISTICSSEVEN:".$date;
    }

    //玩家活动参与率相关日志
    static public function participationLog($date) {
        return "PARTICIPATION:".$date;
    }

    //活动参与率hash key
    static public function participationSubKey($type, $flag) {
        return "{$type}:{$flag}";
    }

    //玩家活动参与key
    static public function participationUidKey($uid, $type, $flag) {
        return "PARTU:{$uid}:{$type}:{$flag}";
    }

    //宠物参与key
    static public function participationPetKey($uid, $petId) {
        return "PETPART:{$uid}:{$petId}";
    }

    //===========================================================


    //==========================配置=============================
    /**
     *   开关缓存
     */
    public static function configSwitch($sid){
        return "CONFIGSWITCH:{$sid}";
    }

    /**
     *   弹框缓存
     */
    public static function configBullet($sid){// 未引用，删除redis缓存即可删除
        return "CONFIGBULLET:{$sid}";
    }
    //任务系统的配置
    static public function taskConfig()
    {
        return "TASKCONFIG";
    }
    //成就系统的配置
    static public function achievementConfig()
    {
        return "ACHIEVEMENTCONFIG";
    }
    //===========================================================
    /**
     *   是否充值过
     */
    public static function bought($uid = 0)
    {
        return "BOUGHT:{$uid}";
    }

    //用户礼物 -队列  谁送的 时间 赠送卡组 赠送卡片 数量
    static public function userGiftList($uid=0){
        return "USERGIFTLIST:{$uid}";
    }

    //矿工升级收益记录
    static public function upgradeIncome($uid=0){
        return "UPGRADEINCOME:{$uid}";
    }

    //玩家矿工总收益
    static public function userCountIncome($uid=0){
        return "USERCOUNTINCOME:{$uid}";
    }

    //玩家矿工离线收益
    static public function userOfflineIncome($uid=0){// 未引用，删除redis缓存即可删除
        return "USEROFFLINEINCOME:{$uid}";
    }

    //礼物文件名
    static public function giftJsonName(){// 未引用，删除redis缓存即可删除
        return "GIFTJSONFILE";
    }

    //设置的礼物过期时间
    static public function giftExpire($uid) {// 未引用，删除redis缓存即可删除
        return "GIFTEXPIRE:{$uid}";
    }

    //等级文件名
    static public function levelJsonName(){// 未引用，删除redis缓存即可删除
        return "LEVELJSONFILE";
    }

    /*
     * 计时宝箱
     */
    static public function chests($uid){// 未引用，删除redis缓存即可删除
        return 'CHEST_'.$uid;
    }

    //计时宝箱当天领取次数
    public static function mkchestnum($uid) {
        $d = date('Ymd');
        return "SP_MKCHESTNUM_{$d}_{$uid}";
    }


    //给全服玩家推送消息
    static public function sendNewsToAllPlayer()// 未引用，删除redis缓存即可删除
    {
        return "SNEWSALLPLAYER";
    }

    //机器人UID列表
    static public function robotUidList()
    {
        return "ROBOTUIDLIST";
    }


    //记录玩家消息可读
    static public function userNewsList($uid, $newstype = 1)// 未引用，删除redis缓存即可删除
    {
        return 'USERNEWSLIST:'.$uid.':'.$newstype;
    }

    //记录玩家消息可读
    static public function userRewardNewsList($uid, $newstype = 2)// 未引用，删除redis缓存即可删除
    {
        return 'USERREWARDNEWSLIST:'.$uid.':'.$newstype;
    }



    // 新玩家渠道 1FB邀请进入 2邀请码进入
    static public function newplayerFrom($type = 1, $device = 1)
    {
        $date = date('Ymd');
        return 'NEWPLAYERFROM:'.$date.':'.$device.':'.$type;
    }
    // 新玩家渠道 1FB邀请进入 2邀请码进入
    static public function newplayerFromDate($type = 1, $device = 1, $date)
    {
        return 'NEWPLAYERFROM:'.$date.':'.$device.':'.$type;
    }

    /**
     * 好友邀请进度领奖统计
     */
    static public function inviteStageSuccReward($day) {
        return 'INVSTAGENUM:'.$day;
    }

    //版本更新信息
    static public function gameupdateinfo($sid)
    {
        return "GAMEUPDATEINFO:".$sid;
    }

//==============不敢动未知================
    //关键数据订单汇总和当天支付实时
    static public function keydatatotal()
    {
        return "KEYDATATOTAL";
    }

    //关键数据订单汇总和当天支付实时
    static public function keydatadetail()
    {
        return "KEYDATADETAIL";
    }
    //关键数据订单汇总和当天支付实时
    static public function keydata($str = 'INFO')
    {
        return "KEYDATA:".$str;
    }
//=====================================

    //活动弹窗状态
    static public function showactivity()
    {
        return "SHOWACTIVITY";
    }


//=============================6.29整理线=================================================
    //活动在哪个包上线
    static public function activityonlinepackage($id)
    {
        return "ACTONLINEPACKAGE:".$id;
    }

    //vip用户
    static public function vipuser($uid)// 未引用，删除redis缓存即可删除
    {
        return "VIPUSER:".$uid;
    }

    //vip用户头像
    static public function vipusericon($uid)// 未引用，删除redis缓存即可删除
    {
        return "VIPUSERICON:".$uid;
    }

    //vip用户头像列表
    static public function vipusericonlist()// 未引用，删除redis缓存即可删除
    {
        return "VIPUSERICONLIST";
    }


    //vip忘记密码
    static public function vipforgetpasswd($uid)// 未引用，删除redis缓存即可删除
    {
        return "VIPFORGETPASSWD:".$uid;
    }


    //兑换商城 --- 商品名称
    static public function mallGoodsName()// 未引用，删除redis缓存即可删除
    {
        return "MALLGOODSNAME";
    }

    //兑换商城 --- 礼品券名称
    static public function mallCouponName()// 未引用，删除redis缓存即可删除
    {
        return "MALLCOUPONNAME";
    }

    //领取绑定邮箱奖励
    static public function viphasbindemail($uid)// 未引用，删除redis缓存即可删除
    {
        return "VIPHASBINDEMAIL:".$uid;
    }

    //支付限制 版本
    static public function limitversion(){// 未引用，删除redis缓存即可删除
        return 'PAYMENT:LIMITVERSION';
    }

    //支付限制 版本
    static public function limitsidversion($sid = 0){// 未引用，删除redis缓存即可删除
        return 'PAYMENT:LIMITVERSION:'.$sid;
    }

    //支付限制 sid列表
    static public function limitsid(){// 未引用，删除redis缓存即可删除
        return 'PAYMENT:LIMITSID';
    }


    //零局玩家列表
    static public function zerouserlist($date = 0){// 未引用，删除redis缓存即可删除
        if (!$date){ $date = date('Ymd');}
        return "ZEROUSERLIST:{$date}";
    }

    //用户钻石列表
    static public function diamonduserlist(){
        return "DIAMONDUSERLIST";
    }

    //用户绑定
    static public function visitorbindrwd($uid){// 未引用，删除redis缓存即可删除
        return "VISITORBINDRWD:$uid";
    }

    //用户累計充值
    static public function recordtotalpayact($uid){
        return "RECORDTOTALPAYACT:$uid";
    }

    //累计充值可能领奖的uid集合
    static public function mayrwdtotalpay()
    {
        return "MAYRWDTOTALPAY";
    }

    //用户最后购买的商品信息
    static public function userlastbought($uid){// 未引用，删除redis缓存即可删除
        return "USERLASTBOUGHT:{$uid}";
    }

    //用户是否是泰国玩家
    static public function isth($uid){// 未引用，删除redis缓存即可删除
        return "ISTH:{$uid}";
    }

    //用户国家
    static public function usercountry($country)
    {
        return  'USERCOUNTRY:'.$country ;
    }


    //国家列表
    static public function countrylist()
    {
        return  'COUNTRYLIST';
    }

    //上一次订阅主题
    static public function lasttopic($uid)// 未引用，删除redis缓存即可删除
    {
        return  'LASTTOPIC:'.$uid;
    }

    //记录首登信息
    static public function todayfirstininfo()// 未引用，删除redis缓存即可删除
    {
        return 'TODAYFIRSTININFO';
    }

    //richestKing
    static public function richestKingTo($uid){
        return 'RICHESTKINGTO:'.$uid;
    }

    //richestKing
    static public function richestKing($uid){
        return 'RICHESTKING:'.$uid;
    }

    static public function richestKingSet(){// 未引用，删除redis缓存即可删除
        return 'RICHESTKINGSET';
    }

    static public function EnemyID($uid){
        return 'ENEMYID:'.$uid;
    }

    static public function EnemyList($uid){
        return 'ENEMYLIST:'.$uid;
    }

    static public function LevelLock($uid){
        return 'LEVELLOCK:'.$uid;
    }
    //玩家每日登陆成就
    public static function loginAchi($uid)// 未引用，删除redis缓存即可删除
    {
        return "LOGINACHI:{$uid}";
    }

  	/**
     * 每日登陆成就
     * @return string
     * Created by: Owen
     * Created on: 2019/11/27 19:48
     */
    public static function LoginUser(){
        return "LOGINUSER";
    }
  
    static public function AttackLock($uid){
        return 'ATTACKLOCK:'.$uid;
    }

    static public function UserAssets($uid){
        return 'USERASSETS:'.$uid;
    }

    static public function beginGuide(){
        return 'BEGINGUIDE';
    }

    static public function levelAttackLock($uid){
        return 'LEVELATTACKLOCK:'.$uid;
    }

    static public function applyFriend($uid){
        return 'APPLYFRIEND:'.$uid;
    }

    static public function recommendFriend($uid){
        return 'RECOMMENDFRIEND:'.$uid;
    }
    //任务红点
    static public function redPointLock($uid,$from){
        return 'REDPOINTLOCK:'.$uid.'-'.$from;
    }

    /**
     * Notes:体力恢复倒计时
     * User: wsc
     * Time: 2020/6/9 16:36
     * @return string
     */
    static public function spinsFirebase(){
        return 'SPINSFIREBASE';
    }

    static public function slotLock($uid){
        return 'SLOTLOCK:'.$uid;
    }

    static public function newcomerProtection($uid){
        return 'NEWCOMERPROTECTION:'.$uid;
    }

    /**
     * 偷取保护
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/7/27 15:35
     * Description:
     */
    static public function stealProtection($uid){// 未引用，删除redis缓存即可删除
        return 'STEALPROTECTION:'.$uid;
    }

    static public function AttackedNum(){// 未引用，删除redis缓存即可删除
        return 'AttackedNum';
    }

    static public function AttackedNumProtect(){// 未引用，删除redis缓存即可删除
        return 'AttackedNumProtect';
    }

    static public function StealHistory($uid){// 未引用，删除redis缓存即可删除
        return 'STEAKHISTORY:'.$uid;
    }

    static public function StealedNum($uid){// 未引用，删除redis缓存即可删除
        return 'STEALEDNUM:'.$uid;
    }

    static public function StealedFullNum(){// 未引用，删除redis缓存即可删除
        return 'STEALEDFULLNUM';
    }

    static public function Adreward($uid){
        return 'ADREWARD:'.$uid;
    }

    static public function UserSetting($uid){
        return 'USERSETTING:'.$uid;
    }

    static public function UserSettingLock($uid){
        return 'USERSETTINGLOCK:'.$uid;
    }

    static public function UserToken($uid){
        return 'USERTOKEN:'.$uid;
    }
    static public function CoinConfig(){
        return 'COINCONFIG';
    }

    static public function upLevelCache($uid){// 未引用，删除redis缓存即可删除
        return 'UPLEVELCACHE:'.$uid;
    }

    /**
     * 首充状态
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/8/18 12:11
     */
    static public function firstPay($uid,$gid){
        return "FIRSTPAY:{$uid}-{$gid}";
    }

    /**
     * 首冲优惠券版本隐藏
     */
    static public function firstPayCouponVersion() {
        return "FSTPCPN";
    }

    static public function UserReward($uid){// 未引用，删除redis缓存即可删除
        return 'USERREWARD:'.$uid;
    }

    static public function SlotConfig(){
        return 'SLOTCONFIG';
    }

    /**
     * Notes:新的等级老虎机旋转概率权重规则
     * User: wsc
     * Time: 2021/2/24 17:31
     * @return string
     */
    static public function slotWeightCfg(){
        return 'SLOTWEIGHTCONFIG';
    }

    static public function slotActivityConfig(){
        return 'SLOTACTIVITYCONFIG';
    }

    /**
     * 推送消息--用户定时器循环缓存
     * @return string
     * Created by: Owen
     * Created on: 2019/7/16 11:46
     * Description:
     */
    static public function PushNew(){
        return 'PUSHNEW';
    }

    /**
     * Notes:fasebase推送配置
     * User: wsc
     * Time: 2020/11/9 21:01
     * @return string
     */
    static  function fasebasePushConf(){
        return "CONF_FASEBASE_PUSH";
    }

    static function fasebasePushTask(){// 未引用，删除redis缓存即可删除
        return "SYS_TASK_FASEBASE_PUSH";
    }

    /**
     * 统计发放量 -- 增值（wsc-6.10-废弃）
     * @return string
     * Created by: Owen
     * Created on: 2019/7/16 15:43
     * Description:
     */
    static public function PropertyAdd($type){
        return 'PROPERTYADD:'.$type;
    }

    /**
     * 统计发放量 -- 减值（wsc-6.10-废弃）
     * @return string
     * Created by: Owen
     * Created on: 2019/7/16 15:43
     * Description:
     */
    static public function PropertyLow($type){
        return 'PROPERTYLOW:'.$type;
    }

    /**
     * 上一次操作對象 -- 用於避免重複攻擊或偷取
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/7/18 12:00
     * Description:
     */
    static public function lastObject($uid,$type){
        return 'LASTOBJECT-'.$type.':'.$uid;
    }

    /**
     * 接口最后一次返回的数据 -- 用于异常返回
     * @param $uid
     * @param $api
     * @return string
     * Created by: Owen
     * Created on: 2019/7/18 15:47
     * Description:
     */
    static public function lastApiReturn($uid){
        return 'LASTAPIRETURM:'.$uid;
    }

    /**
     * 金蛋活动配置
     * @return string
     * Created by: Owen
     * Created on: 2019/7/19 17:56
     * Description:
     */
    static public function SymbolConfig($type = 0,$version = ""){
        if($type == 0){
            return 'SYMBOLCONFIG'.$version;
        }else{
            return 'SYMBOLCONFIG:'.$version.$type;
        }
    }

    /**
     * 金蛋活动
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/7/19 17:35
     * Description:
     */
    static public function Symbol($uid){// 未引用，删除redis缓存即可删除
        return 'SYMBOL:'.$uid;
    }

    /**
     * 收集活动阶段
     * Created by: Owen
     * Created on: 2019/12/25 15:17
     */
    static public function SymbolStage(){
        return 'SYMBOLSTAGE';
    }

    /**
     * 收集活动數量
     * Created by: Owen
     * Created on: 2019/12/25 15:17
     */
    static public function SymbolNum(){
        return 'SYMBOLNUM';
    }

    /**
     * 活動
     * @return string
     * Created by: Owen
     * Created on: 2019/7/30 18:48
     * Description:
     */
    static public function Activity(){
        return 'ACTIVITY';
    }

  	/**
     * 活動数据
     * @return string
     * Created by: Owen
     * Created on: 2019/7/30 18:48
     * Description:
     */
    static public function ActivityData(){
        return 'ACTIVITYDATA';
    }

    /**
     * 单个活动的md5 json下发客户端缓存
     * Created on: 2021/7/17 12:01
     */
    static public function activityM5Json($aid) {
        return "CONACTFMD5:{$aid}";
    }
  	
    /**
     * 氣泡
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/7/31 16:03
     * Description:
     */
    static public function Bubble($uid){
        return 'BUBBLE:'.$uid;
    }

    /**
     * 用户信息
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/8/1 12:20
     * Description:
     */
    static public function userInfo($uid){// 未引用，删除redis缓存即可删除
        return 'USERINFO:'.$uid;
    }

    /**
     * 聊天 P2P
     * @param $uid
     * @param $touid
     * @return string
     * Created by: Owen
     * Created on: 2019/7/31 11:35
     * Description:
     */
    static public function Chat($touid){
        return 'CHAT:'.$touid;
    }

    /**
     * 送出的礼物
     * Created by: Owen
     * Created on: 2019/8/2 15:02
     * Description:
     */
    static public function ChatGift($str){
        return 'CHATGIFT:'.$str;
    }

    /**
     * 用户送出礼物限制
     * Created by: Owen
     * Created on: 2019/8/2 15:02
     * Description:
     */
    static public function ChatGiftSend($uid,$type){
        return 'CHATGIFTSEND-'.$type.':'.$uid;
    }

    /**
     * 用户被领取礼物获得奖励
     * Created by: Owen
     * Created on: 2019/8/2 15:03
     * Description:
     */
    static public function ChatGiftRec($uid,$type){
        return 'CHATGIFTREC-'.$type.':'.$uid;
    }

    /**
     * 礼物领取限制
     * @param $uid
     * @param $GiftId
     * @return string
     * Created by: Owen
     * Created on: 2019/8/24 18:53
     * Description:
     */
    static public function ChatGiftId($uid,$GiftId){
        return 'CHATGIFTID-'.$GiftId.':'.$uid;
    }

    /**
     * 矿工配置
     * @param $levelId
     * @return string
     * Created by: Owen
     * Created on: 2019/8/6 11:57
     * Description:
     */
    static public function MiningConfig(){
        return 'MININGCONFIG';
    }

    /**
     * 异常统计
     * @return string
     * Created by: Owen
     * Created on: 2019/8/12 10:21
     * Description:
     */
    static public function abnormalSta($uid){
        return 'ABNORMALSTA:'.$uid;
    }

    /**
     * 用户建筑信息
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/8/13 16:11
     * Description:
     */
    static public function UserBuildLevel($uid){
        return 'USERBUILDLEVEL:'.$uid;
    }

    /**
     * 用户建筑等級
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/8/13 16:11
     * Description:
     */
    static public function UserBuildLv(){
        return 'USERBUILDLV';
    }
    //用户建筑总total
    static function UserBuildTotal($uid){
        return "USER_BUILD_TOTAL:{$uid}";
    }

    /**
     * 攻击建筑列表
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/8/13 16:11
     * Description:
     */
    static public function enemyBuildLv(){// 未引用，删除redis缓存即可删除
        return 'ENEMYBUILDLV';
    }

    /**
     * 设置机器人建筑和等级信息快照
     * @param $uid 玩家id
     */
    static public function robotEnemyInfo($uid) {
        return "RBTEI:{$uid}";
    }

    /**
     * 建造队列
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/8/13 18:47
     * Description:
     */
    static public function LevelList($uid){
        return 'LEVELLIST:'.$uid;
    }

    /**
     * 等级队列
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/8/13 18:47
     * Description:
     */
    static public function UpLevelList($uid){
        return 'UPLEVELLIST:'.$uid;
    }

    /**
     * 偷队列
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/8/13 18:47
     * Description:
     */
    static public function StealOperationList($uid){
        return 'STEALOPERATIONLIST:'.$uid;
    }

    /**
     * 分享自动添加好友
     * @return string
     * Created by: Owen
     * Created on: 2019/8/15 17:03
     * Description:
     */
    static public function shareAddFriend($shareKey){
        return 'SHAREADDFRIEND:'.$shareKey;
    }

    /**
     * 用戶矿工配置
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/8/19 16:17
     * Description:
     */
    static public function userMining($uid){
        return 'USERMINING:'.$uid;
    }

    /**
     * 静态资源
     * Created by: Owen
     * Created on: 2019/8/22 14:54
     * Description:
     */
    static public function StaticConfig(){
        return 'STATICCONFIG';
    }

    /**
     * 翻译文件静态资源
     * Created by: Owen
     * Created on: 2019/8/22 14:54
     * Description:
     */
    static public function LangStaticConfig(){
        return 'LANGSTATICCONFIG';
    }

    /**
     * 新手体力追加保护
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/9/5 16:27
     */
    static public function newcomerSpinNum($uid){
        return 'NEWCOMERSPINNUM:'.$uid;
    }

    /**
     * 机器人列表
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/9/5 16:27
     */
    static public function GetRobotUserList(){
        return 'GETROBOTUSERLIST';
    }

    /**
     * 活动概率调整
     * @param $id
     * @return string
     * Created by: Owen
     * Created on: 2019/9/5 16:27
     */
    static public function ActivityPro($id){
        return 'ACTIVITYPRO:'.$id;
    }

    /**
     * 用户个人缓存
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/10/10 10:04
     */
    static public function UserCache($uid){
        return 'USERCACHE'.$uid;
    }

    /**
     * 机器人金钱排行
     * Created by: Owen
     * Created on: 2019/10/10 15:33
     */
    static public function rankRobot(){
        return 'RANKROBOT';
    }

    /**
     * 获取版本次数
     * @return string
     * Created by: Owen
     * Created on: 2019/10/11 11:55
     */
    static public function getVersionCount(){
        return 'GETVERSIONCOUNT';
    }

    /**
     * 获取登录次数
     * @return string
     * Created by: Owen
     * Created on: 2019/10/11 11:55
     */
    static public function getLoginCount(){
        return 'GETLOGINCOUNT';
    }

    /**
     * 用戶登录次数
     * @return string
     * Created by: Owen
     * Created on: 2019/10/11 11:55
     */
    static public function LoginCount(){
        return "LOGINCOUNT";
    }

    /**
     * 注册数量
     * @return string
     * Created by: Owen
     * Created on: 2019/10/11 16:47
     */
    static public function getRegCount($sid = 1){
        return "GETREGCOUNT{$sid}";
    }

    /**
     * 新手引导完成数量
     * @return string
     * Created by: Owen
     * Created on: 2019/10/11 16:47
     */
    static public function getGuideCount($sid = 1){
        return "GETGUIDECOUNT{$sid}";
    }

    /**
     * 建筑广告
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/10/12 14:52
     */
    static public function elementSaleId($uid){
        return "ELEMENTSALEID:".$uid;
    }

    /**
     * 建筑广告保护
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/10/12 15:34
     */
    static public function elementSaleProtect($uid){
        return "ELEMENTSALEPROTECT:".$uid;
    }

    /**
     * 事件上报
     * @param $event
     * @param $sid
     * @return string
     * Created by: Owen
     * Created on: 2019/10/14 20:28
     */
    static public function Report($event,$sid = 0){
        if($sid != 0){
            return "REPORT:{$event}-{$sid}";
        }
        return "REPORT:".$event;
    }

    /**
     * 气球奖励
     * Created by: Owen
     * Created on: 2019/10/17 11:51
     */
    static public function BalloonReward($id){
        return "BALLOONREWARD:".$id;
    }

    /**
     * 气球奖励触发次数
     * Created by: Owen
     * Created on: 2019/10/17 11:51
     */
    static public function BalloonCount(){
        return "BALLOONCOUNT";
    }

    /**
     * 当日登录时长环形key
     * @return string
     * Created by: Owen
     * Created on: 2019/10/17 16:56
     */
    static public function LoginTime($uid = null){
        if($uid === null){
            return "LOGINTIME";
        }
        $key = $uid % 24;
        return "LOGINTIME:{$key}";
    }
    /**
     * 登录时长所有环形key
     * @param string $class
     * @return array
     */
    static public function LoginTimes() {
        $keys = [];
        for($i = 0; $i < 24; $i++){
            $keys[] = self::LoginTime($i);
        }
        return $keys;
    }

    /**
     * 当日登录时长拆分key
     */
  
  	/**
     * 广告配置
     * Created by: Owen
     * Created on: 2019/10/18 20:03
     */
    static public function advertisement_config($sid = ""){
        if($sid == ""){
            return "ADVERTISEMENTCONFIG";
        }
        return "ADVERTISEMENTCONFIG:{$sid}";
    }
  
  	/**
     * 广告配置
     * Created by: Owen
     * Created on: 2019/10/18 20:03
     */
    static public function advertisementRemainCount($sid = ""){
        if($sid == ""){
            return "ADVERTISEMENTREMAINCOUNT";
        }
        return "ADVERTISEMENTREMAINCOUNT:{$sid}";
    }



  	/**
     * 充值活动次数
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/10/19 15:03
     */
    static public function promotion($uid,$lv = ""){
        if($lv == ""){
            return "PROMOTION:".$uid;
        }
        return "PROMOTION:".$uid.'-'.$lv;
    }
  
  	/**
     * 用户最后一次签名
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/10/19 17:18
     */
    static public function lastRedisSign($uid){
        return "LASTREDISGIGN:".$uid;  
    }
  
  	/**
     * 聊天禁言
     * Created by: Owen
     * Created on: 2019/10/21 19:45
     */
    static public function chatLock($uid){
        return "CHATLOCK:".$uid;
    }
  
  	/**
     * 聊天最大次数
     * Created by: Owen
     * Created on: 2019/10/21 19:45
     */
    static public function chatMaxNum(){
        return "CHATMAXNUM";
    }
  
  	/**
     * 聊天礼物最大次数
     * Created by: Owen
     * Created on: 2019/10/21 19:45
     */
    static public function chatGitfMaxNum($uid = "",$type = 0){
        if($uid == ""){
            return "CHATGIFTMAXNUM";
        }else{
            return "CHATGIFTMAXNUM:".$uid."-".$type;
        }
    }
  
  	/**
     * 机器人被攻击次数
     * @return string
     * Created by: Owen
     * Created on: 2019/10/23 15:44
     */
    static public function RobotAttackedNum(){
        return "ROBOTATTACKEDNUM:";
    }
  
  	/**
     * 大转盘配置
     * Created by: Owen
     * Created on: 2019/10/23 16:31
     */
    static public function slotTurntable($version = ''){
        return "SLOTTURNTABLE".$version;
    }
  
  	/**
     * 体力大转盘配置
     * Created by: Owen
     * Created on: 2019/10/23 16:31
     */
    static public function spinsTurntable($levelId,$type){
        return "SPINSTURNTABLE:".$levelId.'-'.$type;
    }
  
  	/**
     * 当日最大金币体力值
     * Created by: Owen
     * Created on: 2019/10/24 17:01
     */
    static public function friendGiftMax($id){
        return "FRIENDGIFTMAX:".$id;
    }

  	/**
     * 当日最大金币体力次数
     * Created by: Owen
     * Created on: 2019/10/24 17:01
     */
    static public function friendGiftMaxTimes($id){
        return "FRIENDGIFTMAXTIMES:".$id;
    }
  
  	/**
     * 回归用户
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/10/31 16:08
     */
    static public function recall($uid){
        return "RECALL:".$uid;
    }
  
  	/**
     * 最后在线建筑数据
     * Created by: Owen
     * Created on: 2019/11/1 11:25
     */
    static public function lastOnlineElement($uid){
        return "LASTONLINEELEMENT:".$uid;
    }
  
  	/**
     * 今日数据排行
     * @return string
     * Created by: Owen
     * Created on: 2019/11/1 20:08
     */
    static public function todayDataRank($type){
        return "TODAYDATARANK:".$type;
    }
  
  	/**
     * fb 分享大轉盤
     * @return string
     * Created by: Owen
     * Created on: 2019/11/1 20:08
     */
    static public function fbTurnCount(){
        return "FBTURNCOUNT";
    }
  
  	/**
     * 请求唯一性
     * @param $uid
     * @param $mod
     * @param $act
     * @return string
     * Created by: Owen
     * Created on: 2019/11/5 9:49
     */
    static public function superKey($uid,$mod,$act){// 未引用，删除redis缓存即可删除
        return "SUPERKEY:{$uid}-{$mod}-{$act}";
    }
  
  	/**
     * 请求唯一性 --memcache
     * @param $uid
     * @param $mod
     * @param $act
     * @return string
     * Created by: Owen
     * Created on: 2019/11/5 9:49
     */
    static public function superKeys($uid,$mod,$act,$key){
        return "SUPERKEY:{$uid}-{$mod}-{$act}-{$key}";
    }
  
  	/**
     * 默认攻击对象列表
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/11/5 17:08
     */
    static public function defaultEnemyList($uid){
        return "DEFAULTENEMYLIST:".$uid;
    }
  
  	/**
     * 每日任務進度獎勵
     * @param string $uid
     * @param string $progress
     * @return string
     * Created by: Owen
     * Created on: 2019/11/6 16:37
     */
    static public function taskProgress($uid = "",$progress = ""){
        if($uid === "" && $progress === ""){
            return "TASKPROGRESS";
        }else{
            return "TASKPROGRESS:{$uid}-{$progress}";
        }
    }
  
  	/**
     * 系统公告,1.11添加新版公告
     * Created by: Owen
     * Created on: 2019/11/7 11:50
     */
    static public function announcement($flag = 0){
        return !$flag ? "ANNOUNCEMENT" : "ANNOUNCEMENT2";
    }

    /**
     * 公告更新奖励标志
     * @param int $uid
     * @return string
     */
    static public function announcementReward($uid) {
        return "ANCRWD:{$uid}";
    }

  	/**
     * VIP 每日大转盘
     * @return string
     * Created by: Owen
     * Created on: 2019/11/11 18:59
     */
    static public function vipTurnTable($type = ""){
        if(empty($type)){
            return "vipturntable";
        }else{
            return "vipturntable:{$type}";
        }
    }
  	
  	/**
     * 老虎机次数
     * @return string
     * Created by: Owen
     * Created on: 2019/11/12 20:36
     */
    static public function userSlotNum(){
        return "USERSLOTNUM";
    }
  
  	/**
     * 限时特惠
     * @param $uid
     * @param $stage
     * @return string
     * Created by: Owen
     * Created on: 2019/11/12 20:43
     */
    static public function specialOffer($uid = 0,$stage = 0){
        if($uid != 0 && $stage != 0){
            return "SPECIALOFFER:{$uid}-{$stage}";//判断是否已经弹出
        }
        if($uid != 0){
            return "SPECIALOFFER:{$uid}"; //判断是否在倒计时中
        }
        return "SPECIALOFFER"; // 兼容旧版本
    }
  
  	/**
     * 订阅服务器token
     * @return string
     * Created by: Owen
     * Created on: 2019/11/13 16:51
     */
    static public function subscriptionToken(){
        return "SUBSCRIPTIONTOKEN";
    }
  
  	/**
     * 自增键
     * @param $key
     * @return string
     * Created by: Owen
     * Created on: 2019/11/15 10:06
     */
    static public function incr($key){
        return "INCR:".$key;
    }
  
  	/**
     * 企业微信token
     * @return string
     * Created by: Owen
     * Created on: 2019/11/26 20:41
     */
    static public function enWeChatAccessToken(){
        return "ENWECHATACCESSTOKEN";
    }
  
  	/**
     * 系统配置
     * @return string
     * Created by: Owen
     * Created on: 2019/11/27 16:26
     */
    static public function systemConfig(){
        return "SYSTEMCONFIG";
    }
  
  	/**
     * 七日签到--配置
     * @return string
     * Created by: Owen
     * Created on: 2019/11/29 11:32
     */
    static public function SignInConfig($section_id = 0){
    	if(empty($section_id)){
    		return "SIGNINCONFIG";
    	}
        return "SIGNINCONFIG:{$section_id}";
    }
  
  	/**
     * 当天签到情况
     * Created by: Owen
     * Created on: 2019/11/30 12:21
     */
    static public function SignInToday($uid){
        return "SIGNINTODAY:{$uid}";
    }

    /**
     * 本周签到次数
     * Created by: Owen
     * Created on: 2019/11/30 12:21
     */
    static public function SignInTimes($uid){
        return "SIGNINTIMES:{$uid}";
    }
  
  	/**
     * 分享配置
     * @return string
     * Created by: Owen
     * Created on: 2019/11/29 17:06
     */
    static public function ShareConfig($version = false){
        $version = intval($version);
        return "SHARECONFIG{$version}";
    }

    /**
     * 分享基础配置
     */
    static public function ShareBaseConfig() {
        return "SHAREBASECONFIG";
    }
  
  	/**
     * 每日分享次数
     * Created by: Owen
     * Created on: 2019/11/29 17:31
     */
    static public function userShareTimes($uid,$type){
        return "USERSHARETIMES:{$uid}-{$type}";
    }
  
  	/**
     * 记录每日分享的RewardId
     * Created by: Owen
     * Created on: 2019/11/29 19:59
     */
    static public function ShareRewardId($uid){
        return "SHAREREWARDID:{$uid}";
    }

    /**
     * 每日分享的数据
     * @param $rewardId
     * @return string
     * Created by: Owen
     * Created on: 2019/11/29 20:01
     */
    static public function ShareRewardIdData($rewardId){
        return "SHAREREWARDIDDATA:{$rewardId}";
    }

    /**
     * 分享冷却时间
     * @param $uid $type
     * @return string
     * Created by: HSS
     * Created on: 2020/11/21 15:10
     */
    static public function ShareIntervalTime($uid,$type){
        return "SHAREINTERVALTIME:{$uid}-{$type}";
    }

    /**
     * 金卡交换粉丝页地址
     */
    static function fansUrl() {
        return "FANSURL";
    }
  	
  	/**
     * 系统补偿配置
     * @return string
     * Created by: Owen
     * Created on: 2019/11/30 15:18
     */
    static public function sysCompensateConfig(){
        return "SYSCOMPENSATECONFIG";
    }

    /**
     * 系统补偿
     * @return string
     * Created by: Owen
     * Created on: 2021/1/25 20:00
     */
    static public function SysCompenConfig(){
        return "SYSCOMPENCONFIG";
    }
    /**
     * 系统补偿
     * @return string
     * Created by: Owen
     * Created on: 2021/1/25 20:00
     */
    static public function UserSysCompen($id){
        return "USERSYSCOMPEN:{$id}";
    }
    /**
     * 系统补偿
     * @return string
     * Created by: Owen
     * Created on: 2021/1/25 20:00
     */
    static public function UserSysCompenStatus($uid,$id){
        return "USERSYSCOMPENSTATUS:{$uid}-{$id}";
    }

    /**
     * 系统补偿 -- 记录
     * @return string
     * Created by: Owen
     * Created on: 2019/11/30 15:18
     */
    static public function sysCompensate($id,$uid){
        return "SYSCOMPENSATE:{$id}-{$uid}";
    }
  
  	/**
     * 攻击免费修复
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/12/2 15:23
     */
    static public function AttackedFreeReBuild($uid = 0){
        if($uid){
            return "ATTACKEDFREEREBUILD:{$uid}";
        }
        return "ATTACKEDFREEREBUILD";
    }
  
  	/**
     * 更新礼包
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/12/3 18:51
     */
    static public function versionGitfLog($uid,$version){
        return "VERSIONGIFTLOG:{$uid}-{$version}";
    }
  
  	/**
     * 偷打活动阶段
     * @return string
     * Created by: Owen
     * Created on: 2019/12/4 18:20
     */
    static public function StealAttackStage(){
        return "STEALATTACKSTAGE";
    }

    /**
     * 偷打活动数量
     * @return string
     * Created by: Owen
     * Created on: 2019/12/4 18:20
     */
    static public function StealAttackNum(){
        return "STEALATTACKNUM";
    }
  
  	/**
     * 偷打活动配置
     * @param $version
     * @return string
     * Created by: Owen
     * Created on: 2019/12/4 19:56
     */
    static public function StealAttackConfig($version = 0){
        if($version){
            return "STEALATTACKCONFIG:{$version}";
        }
        return "STEALATTACKCONFIG";
    }

    /**
     * 升级版配置
     * Created by: Owen
     * Created on: 2019/12/5 16:31
     */
    static public function TurntableConfigPlus(){
        return "TURNTABLECONFIGPLUS";
    }

    /**
     * 大转盘倍率领取
     * Created by: Owen
     * Created on: 2019/12/5 16:31
     */
    static public function TurntableBetReward($uid){
        return "TURNTABLEBETREWARD:{$uid}";
    }

    /**
     * 体力月卡
     * @param $uid
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2019/12/10 12:19
     */
    static public function SpinMonthly($uid,$type){
        return "SPINMONTHLY:{$uid}-{$type}";
    }

    /**
     * 体力月卡每日领取记录
     * @param $uid
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2019/12/10 12:19
     */
    static public function SpinMonthlyDaily($uid,$type){
        return "SPINMONTHLYDAULY:{$uid}-{$type}";
    }

    /**
     * 收集活动阶段
     * @return string
     * Created by: Owen
     * Created on: 2019/12/10 16:34
     */
    static public function HolidayCollectStage(){
        return "HOLIDAYCOLLECTSTAGE";
    }

    /**
     * 收集活动数量
     * @return string
     * Created by: Owen
     * Created on: 2019/12/10 16:34
     */
    static public function HolidayCollectNum(){
        return "HOLIDAYCOLLECTNUM";
    }

    /**
     * 节日收集
     * @return string
     * Created by: Owen
     * Created on: 2019/12/10 16:26
     */
    static public function HolidayCollectConfig(){
        return "HOLIDAYCOLLECTCONFIG";
    }
	
	/**
     * 每日分享次数统计
     * Created by: hss
     * Created on: 2019/12/10 16:57
     */
    static public function todayShareStatistics($shareType,$type){
        return "TODAYSHARESTATISTICS:{$shareType}+{$type}";
    }

    /**
     * 赠送金币人数
     * @return string
     * Created by: Owen
     * Created on: 2019/12/13 10:36
     */
    static public function CoinGiftNum(){// 未引用，删除redis缓存即可删除
        return "COINGIFTNUM";
    }

    /**
     * 今日已被赠送用户
     * @return string
     * Created by: Owen
     * Created on: 2019/12/13 10:37
     */
    static public function CoinGiftUser($tbId){// 未引用，删除redis缓存即可删除
        return "COINGIFYUSER:{$tbId}";
    }
	
	/**
     * 体力金币发放消耗关卡统计
     * Created by: hss
     * Created on: 2019/12/13 11:29
     */
    static public function spinsMoneyLevelStatistics($type,$t){
        return "SPINSMONEYLEVELSTATISTICS:{$type}{$t}";
    }

    /**
     * 购买商品数量
     * @param $uid
     * @param $gid
     * @return string
     * Created by: Owen
     * Created on: 2019/12/14 11:49
     */
    static public function GoodBuyNum(){
        return "GOODBUYNUM";
    }
	
	/**
     * 打偷统计
	 * @param $type 
     * Created by: hss
     * Created on: 2019/12/16 12:13
     */
    static public function attackStealSta($type){
        return "ATTACKSTEALSTATISTICS:{$type}";
    }


    /**
     * 建筑大师配置
     * Created by: Owen
     * Created on: 2019/12/17 15:16
     */
    static public function BuildMasterConfig(){
        return "BUILDMASTERCONFIG";
    }

    /**
     * 建筑大师活动
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/12/17 15:16
     */
    static public function BuildMaster($aid=0){
        if($aid){
            return "BUILDMASTER:{$aid}";
        }
        return "BUILDMASTER";

    }
	/**
     * 每日建筑统计
     * @param $type build升级 repair修复
     * Created by: hss
     * Created on: 2019/12/16 17:55
     */
    static public function todayBuildSta($type){
        return "TODAYBUILDSTATISTICS:{$type}";
    }

    /**
     * Notes:每日统计(小众统计,勿滥用)
     * User: wsc
     * Time: 2021/3/27 17:21
     * @param $type
     * @return string
     */
    static function todaySta($type){
        $date = date('Ymd');
        return "TODAY_GET_AND_LOST:{$date}:{$type}";
    }

    /**
     * 推送单一键
     * @return string
     * Created by: Owen
     * Created on: 2019/12/19 16:33
     */
    static public function SinglePush(){// 未引用，删除redis缓存即可删除
        return "SINGLEPUSH";
    }

    /**
     * 卡祝福
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/12/20 17:19
     */
    static public function CardBless($uid,$gid){
        return "CARDBLESS:{$uid}-{$gid}";
    }
	
	/**
     * 新手步骤统计
     * @param $type 0总计 true FB用户统计
     * Created by: hss
     * Created on: 2019/12/24 10:43
     */
    static public function noviceStepsSta($type = 0){
    	return $type?"NOVICESTEPSSTATISTICS:fb":"NOVICESTEPSSTATISTICS";
    }

    /**
     * 熱更新
     * Created by: Owen
     * Created on: 2019/12/25 17:52
     */
    static public function GameUpdateHotFix($sid,$version){
        $version = str_replace('.','',$version);
        return "GAMEUPDATEHOTFIX:{$sid}{$version}";
    }

    /**
     * 夺宝幸運值
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/1/2 19:58
     */
    static public function LuckyValue($uid){
        return "LUCKYVALUE:{$uid}";
    }

    /**
     * 夺宝礼包进度
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/1/3 10:41
     */
    static public function LuckyProgress($uid){
        return "LUCKYPROGRESS:{$uid}";
    }

    /**
     * 夺宝礼包领取进度
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/1/3 12:00
     */
    static public function LuckuRewardProgress($uid,$progress){
        return "LUCKUREWARDPROGRESS:{$uid}-{$progress}";
    }

    static public function CurTaskList($uid){
        return "CURTASKLIST:{$uid}";
    }
	
	/**
     * 游客转FB数量统计
     * Created by: hss
     * Created on: 2020/1/13 10:43
     */
    static public function visitorToFbSta(){
    	return "VISITORTOFBSTA";
    }
	
	/**
     * 赠送情况统计
     * @param $type money金币 spins体力 $t Receive收取 Send发送
     * Created by: hss
     * Created on: 2020/1/14 11:43
     */
    static public function giveSta($type = 'money',$t = 'Send'){
    	return "GIVESTA:{$type}{$t}";
    }
    
    /**
     * 一键赠送 一键领取 人数
     * @param $type money金币 spins体力 $t Receive收取 Send发送
     * Created by: hss
     * Created on: 2020/1/14 14:31
     */
    static public function givesSta($type = 'money',$t = 'Send'){
    	return "GIVESSTA:{$type}{$t}";
    }
	
	/**
     * 赠送卡片排行榜
     * @param $type all全部 today当天
     * Created by: hss
     * Created on: 2020/1/15 10:48
     */
    static public function giveCardSta($type){
    	return "GIVECARDSTA:{$type}";
    }
	
	/**
     * 金矿领取率
     * @return string
     * Created by: hss
     * Created on: 2020/1/17 10:51
     */
    static public function miningReceiveSta(){
    	return "MININGRECEIVESTA";
    }

    /**
     * 宠物配置
     * @param string $id
     * @param bool $versionFlag
     * @return string
     * Created by: owen
     * Created on: 2020/2/4 11:01
     */
    static public function PetConfig($id = "",$versionFlag = false){
        $version = $versionFlag?"2":"";
        if($id == ""){
            return "PETCONFIG{$version}";
        }
        return "PETCONFIG{$version}:$id";
    }

    /**
     * 宠物经验配置
     * @param string $lv
     * @return string
     * Created by: owen
     * Created on: 2020/2/4 11:01
     */
    static public function PetExpConfig($lv = ""){
        if($lv == ""){
            return "PETEXPCONFIG";
        }
        return "PETEXPCONFIG:$lv";
    }

    /**
     * 用户宠物
     * Created by: owen
     * Created on: 2020/2/4 20:04
     */
    static public function UserPet($uid,$id = 0){
        return "USERPET:{$uid}-{$id}";
    }

    /**
     * 用户宠物
     * @param $uid
     * @return string
     * Created by: owen
     * Created on: 2020/2/4 20:04
     */
    static public function UserPet2($uid){
        return "USERPET2:{$uid}";
    }

    /**
     * 用户当前宠物
     * @param $uid
     * @return string
     * Created by: owen
     * Created on: 2020/2/4 21:13
     */
    static public function CurUserPet($uid){
        return "CURUSERPET:{$uid}";
    }

    /**
     * 用户充值总值
     * @param $uid
     * @return string
     * Created by: owen
     * Created on: 2020/2/6 16:54
     */
    static public function UserTotalPayNum($uid){
        return "USERTOTALPAYNUM:{$uid}";
    }

    /**
     * Notes:用户首次支付时间
     * User: wsc
     * Time: 2021/6/8 10:06
     * @param $uid
     * @return string
     */
    static function UserFirstPayTS($uid){
        return "USER_FIRST_PAYTS:{$uid}";
    }
    /**
     * 用户充值总次数
     * @param $uid
     * @return string
     * Created by: owen
     * Created on: 2020/2/6 16:54
     */
    static public function UserPayTimes($uid){
        return "USERPAYTIMES2:{$uid}";
    }

    /**
     * 当天用户充值总值
     * @param $uid
     * @return string
     * Created by: owen
     * Created on: 2020/2/6 16:54
     */
    static public function UserDayPayNum($uid){
        return "USERDAYPAYNUM:{$uid}";
    }

    static function UserDayData($uid,$date){
        return "USER_DAYDATA_NEW:".$date.":{$uid}";
    }
    //每日卡片获得
    static function UserDayObtainCardList($uid,$date){
        return "USER_DAY_OBTAIN_CARD_LIST:{$date}:{$uid}";
    }
    //每日卡片消耗
    static function UserDayCostCardList($uid,$date){
        return "USER_DAY_COST_CARD_LIST:$date:{$uid}";
    }
    /**
     * 偷记录缓存
     * @param $uid
     * @param $toUid
     * @param $optId
     * @return string
     * Created by: owen
     * Created on: 2020/2/9 21:31
     */
    static public function StealOperationCache($uid,$toUid,$optId){
        return "STEALOPERATIONCACHE:{$uid}-{$toUid}-{$optId}";
    }

    /**
     * 老虎机体力转打统计
     * @return string
     * created by owen
     * created at 22:47
     */
    static public function SlotSpinsTurnAttack(){
        return "SLOTSPINSTURNATTACK";
    }

    /**
     * jackpot 奖池
     * @return string
     * created by owen
     * created at 11:45
     */
    static public function JackPotPool(){
        return "JACKPOTPOOL";
    }

    /**
     * jackpot 最后推送时间
     * @return string
     * created by owen
     * created at 11:47
     */
    static public function LastJackPot($type){
        return "LASTJACKPOTPUSH:{$type}";
    }


    /**
     * vip等级配置
     * @param mixed $version
     * @return string
     * created by owen
     * created at 10:39
     */
    static public function VipLvConfig($version = ""){
        if($version != ""){
            return "VIPLVCONFIG:{$version}";
        }
        return "VIPLVCONFIG";
    }

    /**
     * 用户vip周奖励
     * @param $uid
     * @param $version
     * @return string
     * created by owen
     * created at 14:43
     */
    static public function UserVipWeekReward($uid,$version = 0){
        if($version){
            return "USERVIPWEEKREWARD:{$uid}-{$version}";
        }
        return "USERVIPWEEKREWARD:{$uid}";
    }

    /**
     * vip订阅会员每日领取体力/转大转盘数据
     * @param $uid int
     */
    static public function userSubVipDaily($uid){
        return "USUBVIPRWD:{$uid}";
    }

	/**
     * 获取RichestKing统计
     * @return string
     * Created by: hss
     * Created on: 2020/2/14 18:52
     */
    static public function getRichestKingSta(){
    	return "GETRICHESTKINGSTA";
    }

    /**
     * 排行榜活动
     * @return string
     * created by owen
     * created at 15:46
     */
    static public function ActivityRank($roomId){
        return "ACTIVITYRANK:{$roomId}";
    }

    /**
     * 排行榜活动--阶段
     * @return string
     * created by owen
     * created at 17:33
     */
    static public function ActivityRankProgress($type){
        return "ACTIVITYRANKPROGRESS:{$type}";
    }

    /**
     * 当前房间Id
     * @return string
     * created by owen
     * created at 21:51
     */
    static public function AcRankCurMaxRoomId(){
        return "ACRANKCURMAXROOMID";
    }

    /**
     * 房间用户
     * @return string
     * created by owen
     * created at 21:51
     */
    static public function AcRankRoomIdUsers($roomId){
        return "ACRANKROOMIDUSERS:{$roomId}";
    }

    /**
     * 用户当前排行榜活动信息
     * @param $uid
     * @return string
     * created by owen
     * created at 9:37
     */
    static public function AcUserRankData($uid){
        return "ACUSERRANKDATA:{$uid}";
    }

    /**
     * 用户当前房间号
     * @param
     * @return string
     * created by owen
     * created at 9:37
     */
    static public function AcUserRankRoomId(){
        return "ACUSERRANKROOMID";
    }

    /**
     * 排行榜活动领奖状态
     * @return string
     * created by owen
     * created at 11:34
     */
    static public function RewardedAcRank(){
        return "REWARDEDACRANK";
    }

    /**
     * 排行榜活动阶段领奖状态
     * @return string
     * created by owen
     * created at 11:34
     */
    static public function RewardedAcRankProgress(){
        return "REWARDEDACRANKPROGRESS";
    }
	
	/**
     * 签到领取率统计
     * @return string
     * Created by: hss
     * Created on: 2020/2/25 10:30
     */
    static public function signInSta(){
    	return "SIGNINSTA";
    }


    /**
     * 排行榜活动限时奖励
     * @return string
     * Created by: Owen
     * Created on: 2020/2/25 20:31
     */
    static public function AcRankLimitReward($uid = 0){
        if($uid = 0){
            return "ACRANKLIMITREWARD";
        }
        return "ACRANKLIMITREWARD:{$uid}";
    }

    /**
     * 升級关卡等级缓存
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/2/26 14:04
     */
    static public function UpLevelLvCache($uid){
        return "UPLEVELLVCACHE:{$uid}";
    }

    /**
     * 宠物试用技能状况
     * @param $uid
     * @param $petId
     * @return string
     * Created by: Owen
     * Created on: 2020/2/27 21:49
     */
    static public function PetSkill($uid,$petId){
        return "PETSKILL:{$uid}-{$petId}";
    }
	/**
     * 系统补偿领取率
     * @return string
     * Created by: hss
     * Created on: 2020/2/27 22:32
     */
    static public function sysCompensateSta(){
    	return "SYSCOMPENSATESTA";
    }

    /**
     * 矿工小游戏配置
     * @param $versionFlag
     * @return string
     * Created by: Owen
     * Created on: 2020/2/28 23:54
     */
    static public function MiningGameConfig($versionFlag = 0){
        if($versionFlag){
            return "MININGGAMECONFIG-{$versionFlag}";
        }
        return "MININGGAMECONFIG";
    }

    /**
     * 矿工游戏次数
     * @param  $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/2/29 18:52
     */
    static public function MiningGame($uid = 0){
        if($uid){
            return "MININGGAME:{$uid}";
        }
        return "MININGGAME";
    }

    /**
     * 矿工游戏次数
     * @param  $type
     * @param  $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/2/29 18:52
     */
    static public function MiningGameSta($type,$uid){
        return "MININGGAMESTA:{$type}-{$uid}";
    }

    /**
     * 矿工游戏等級
     * @param  $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/2/29 18:52
     */
    static public function MiningGameLevel($uid = 0){
        return "MININGGAMELEVEL:{$uid}";
    }

    /**
     * 矿工游戏关卡奖励
     * @param  $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/2/29 18:52
     */
    static public function MiningGameStateReward($uid){
        return "MININGGAMESTATEREWARD:{$uid}";
    }

    /**
     * 用戶vip体验
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/3/3 19:55
     */
    static public function VipExperience($uid){
        return "VipExperience:{$uid}";
    }

    /**
     * firebase 推送主题
     * @param string $lang
     * @return string
     * Created by: Owen
     * Created on: 2020/3/3 19:55
     */
    static public function FireBaseTopic($lang = ''){
        if ($lang == '') {
            return "FIREBASETOPIC";
        }
        $lang = strtoupper($lang);
        return "FIREBASETOPIC-{$lang}";
    }

    /**
     * firebase 推送主题
     * @param string $header
     * @param string $footer
     * @return string
     * Created by: Owen
     * Created on: 2020/3/3 19:55
     */
    static public function FireBaseTopic2($header,$footer){
        return "{$header}-FIREBASETOPIC-{$footer}";
    }
    //版本更新配置
    static function updateVersionCfg($sid){
        return "UPDATEVERSIONCFG:{$sid}";
    }

	/**
     * 更新公告领取率
     * @return string
     * Created by: hss
     * Created on: 2020/3/3 10:22
     */
    static public function updateVersionSta(){
    	return "UPDATEVERSIONSTA";
    }
	
	/**
     * 聊天的人均金币体力领取次数统计
     * @return string
     * Created by: hss
     * Created on: 2020/3/4 12:24
     */
    static public function chatGiftSta(){
    	return "CHATGIFTSTA";
    }
	
	/**
     * 转盘参与率
     * @return string
     * Created by: hss
     * Created on: 2020/3/5 10:52
     */
    static public function turnTableInSta(){
    	return "TURNTABLEINSTA";
    }
	
	/**
     * 转盘得奖分布
     * @return string
     * @param int $type 类型 2金币转盘 3金币&体力转盘
     * @param int $levelId 等级
     * Created by: hss
     * Created on: 2020/3/5 10:52
     */
    static public function turnTablePrizeSta($type,$levelId){
    	return "TURNTABLEPRIZESTA:{$type}-{$levelId}";
    }

    /**
     * 免費喂食
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/3/10 20:20
     */
    static public function FreeFeedPet($uid){
        return "FREEFEEDPET:{$uid}";
    }

    /**
     * 体力恢复加速活动配置
     * @return string
     * Created by: Owen
     * Created on: 2020/3/11 16:53
     */
    static public function SpeedUpSpinsConfig(){
        return "SPEEDUPSPINSCONFIG";
    }

    static public function SpeedUpSpins($uid,$id = 0){
        if($id != 0){
            return "SPEEDUPSPINS:{$uid}-{$id}";
        }
        return "SPEEDUPSPINS:{$uid}";
    }

    /**
     * 当日购买
     * @param $uid
     * @param $gType
     * @return string
     * Created by: Owen
     * Created on: 2020/3/11 19:51
     */
    static public function TodayBuyGoods($uid,$gType = 0){
        if($gType){
            return "TODAYBUYGOODS:{$uid}-{$gType}";
        }
        return "TODAYBUYGOODS:{$uid}";
    }
	
	/**
     * 客户端日记
     * @return string
     * Created by: hss
     * Created on: 2020/3/13 16:28
     */
    static public function clientlog(){
    	return "CLIENTLOG";
    }

    /**
     * 用户当前倍率
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/3/16 18:15
     */
    static public function curUserBet($uid){
        return "CURUSERBET:{$uid}";
    }

    /**
     * 消息中心显示开关
     * @return string
     * Created by: Owen
     * Created on: 2020/3/23 14:42
     */
    static public function RewardCenterShow(){
        return "REWARDCENTERSHOW";
    }

    /**
     * Notes:奖励中心显示类型
     * User: wsc
     * Time: 2020/8/11 16:18
     * @param $type
     * @return string
     */
    static public function actCenterShowType($type){
        return "RIGHTTOPRSHOW:".$type;
    }
    /**
     * Notes:等级全配置
     * User: wsc
     * Time: 2020/3/19 17:56
     * @return string
     */
    static function LevelConf(){
        return "LEVEL_CONF";
    }

    /**
     * Notes:用户保护期
     * User: wsc
     * Time: 2020/3/19 17:58
     * @param $uid
     * @return string
     */
    static function userProtect($uid){
        return "USER_PROTECT:".$uid;
    }

    /**
     * Notes:用户richestking 缓存列表
     * User: wsc
     * Time: 2020/3/25 17:27
     * @param $uid
     * @return string
     */
    static function userStealListCache($uid){
        return "USER_STEALLIST_CACHE:".$uid;
    }

    /**
     * Notes:从db获取richestKing的查询锁
     * User: wsc
     * Time: 2020/3/25 17:28
     * @param $uid
     */
    static function userStealFromDbLock($uid){
        return "USER_STEAL_FROMDB_LOCK:".$uid;
    }

    /**
     * Notes:被偷者绑定偷取者锁
     * User: wsc
     * Time: 2020/3/26 12:20
     * @param $uid 被偷者uid
     * @return string
     */
    static function  beStealLock($uid)
    {
        return "BE_STEALLOCK:" . $uid;
    }
    /*
     * 流水缓存
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2020/3/23 14:42
     */
    static public function CacheIntoDb($type){
        return "CACHEINTODB:{$type}";
    }

    /**
     * firebase 推送隊列
     * @return string
     * Created by: Owen
     * Created on: 2020/3/25 11:17
     */
    static public function FireBaseList(){
        return "FIREBASELIST";
    }

	/**
     * 打偷排行榜统计
	 * @param $type 
     * Created by: hss
     * Created on: 2020/03/24 12:13
     */
    static public function attackStealRankSta($type){
        return "ATTACKSTEALRANKSTA:{$type}";
    }

    /**
     * 个人老虎机摇奖次数记录
	 * @param $type 
     * Created by: hss
     * Created on: 2020/03/24 12:13
     */
    static public function shakeSta(){
        return "SHAKESTA";
    }

    /**
     * 老虎机类型次数统计
     * @param $type
     * Created by: hss
     * Created on: 2020/4/1 15:37
     */
    static public function slotSta(){
        return "SLOTSTA";
    }

    /**
     * 卡片来源统计
     * @param $type
     * Created by: hss
     * Created on: 2020/4/9 10:12
     */
    static public function cardSourceSta(){
        return "CARDSOURCESTA";
    }

    /**
     * 卡组配置
     * @return string
     * Created by: Owen
     * Created on: 2020/3/25 11:19
     */
    static public function CardGroupConfig(){
        return "CARDGROUPCONFIG";
    }

    /**
     * 卡组进度奖励
     * @return string
     * Created by: Owen
     * Created on: 2020/3/25 19:59
     */
    static public function CardGroupProgressConfig(){
        return "CARDGROUPPROGRESSCONFIG";
    }

    /**
     * 卡片配置
     * @return string
     * Created by: Owen
     * Created on: 2020/3/25 11:19
     */
    static public function CardConfig(){
        return "CARDCONFIG";
    }

    /**
     * 限定卡片
     * @return string
     * Created by: Owen
     * Created on: 2020/3/25 19:36
     */
    static public function SpecialCardConfig(){
        return "SPECIALCARDCONFIG";
    }

    /**
     * 限定卡片配置
     * @return string
     * Created by: Owen
     * Created on: 2020/3/25 19:36
     */
    static public function SpecialCardGroupConfig(){
        return "SPECIALCARDGROUPCONFIG";
    }

    /**
     * 卡片概率
     * @return string
     * Created by: Owen
     * Created on: 2020/3/25 14:36
     */
    static public function CardTypePro($type){
        return "CARDTYPEPRO:{$type}";
    }

    /**
     * 卡片概率，go缓存保存在大hash key中
     */
    static public function CardTypeProAll(){
        return "CARDTYPEPRO";
    }

    /**
     * 最大金卡数量
     * @param  $type
     * @return string
     * Created by: Owen
     * Created on: 2020/3/25 14:36
     */
    static public function MaxGoldCard($type){
        return "MAXGOLDCARD:{$type}";
    }

    /**
     * 用户卡片信息
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/3/26 18:31
     */
    static public function UserCardInfo($uid){
        return "USERCARDINFO:{$uid}";
    }

    /**
     * 数据落地,在环形hash key中获取和更新
     * @param $class
     * @param mixed $uid (int/null)
     * @return string
     * Created by: Owen
     * Created on: 2020/3/26 16:39
     */
    static public function Landing($class, $uid = null){
        if($uid === null){
            return "LANDING:{$class}";
        }
        $key = $uid % 24;
        return "LANDING:{$class}:{$key}";
    }

    /**
     * 落地数据所有环形key
     * @param string $class
     * @return array
     */
    static public function LandingKeys($class) {
        $keys = [];
        for($i = 0; $i < 24; $i++){
            $keys[] = self::Landing($class, $i);
        }
        return $keys;
    }

    /**
     * 每日礼物
     * @param $uid -- 礼物来源UID
     * @param $toUid -- 礼物接收UID
     * @return string
     * Created by: Owen
     * Created on: 2020/3/30 15:08
     */
    static public function SendGiftToday($uid,$toUid,$gid){
        return "SENDGIFTTODAY:{$uid}-{$toUid}-{$gid}";
    }

    /**
     * 每日礼物(被送)
     * @param $uid -- 礼物来源UID
     * @param $toUid -- 礼物接收UID
     * @return string
     * Created by: Owen
     * Created on: 2020/3/30 15:08
     */
    static public function SendEdGiftToday($uid,$toUid,$gid){
        return "SENDEDGIFTTODAY:{$uid}-{$toUid}-{$gid}";
    }

    /**
     * Notes:用户随机可攻击用户缓存
     * @param $uid
     * User: wsc
     * Time: 2020/3/30 18:27
     */
    static function EnemyListCache($uid){
        return "ENEMYLISTCACHE:".$uid;
    }

    /**
     * Notes:用户level_orig信息
     * User: wsc
     * Time: 2020/3/30 19:41
     * @param $uid
     * @return string
     */
    static function userLevelOrig($uid){
        return "USERLEVELORIG:".$uid;
    }

    /**
     * Notes:默认攻击uid列表
     * User: wsc
     * Time: 2020/4/1 15:46
     * @param $uid
     * @return string
     */
    static function defaultAttactList($uid){
        return" DEFAULTATTACTLIST:".$uid;
    }



    /**
     * 成就配置
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/4/7 10:58
     */
    static public function AchieveConfig($aid = ''){
       if($aid === ''){
           return "ACHIEVECONFIG";
       }else{
           return "ACHIEVECONFIG:{$aid}";
       }
    }

    /**
     * 用户成就
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/4/7 10:58
     */
    static public function UserAchieve($uid){
        return "USERACHIEVE:".$uid;
    }

    /**
     * 等级金币
     * @param $level
     * @param $coin
     * @return string
     * Created by: Owen
     * Created on: 2020/4/10 15:56
     */
    static public function GoodsCoin($level,$coin){
        return "USERACHIEVE:{$level}-{$coin}";
    }

    /**
     * Notes:用户GameInfoSteal缓存
     * User: wsc
     * Time: 2020/4/11 20:12
     * @param $uid
     * @return string
     */
    static public function UserGameInfoSteal($uid)
    {
        return "USERGameInfoOrig:" . $uid;
    }
    /**
     * 用户个人统计
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/4/10 15:57
     */
    static public function UserStatistics($uid){
        return "USERSTATISTICS:".$uid;

    }

    /**
     * 当前强制更新版本
     * @return string
     * Created by: Owen
     * Created on: 2020/4/11 20:03
     */
    static public function CurForeVersion($sid){
        return "CURFOREVERSION:{$sid}";
    }

    /**
     * 并发锁
     * @param $uid
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2020/4/21 18:19
     */
    static function concurrentLock($uid,$type){
        return "CONCURRENLOCK:".$uid.'-'.$type;
    }

    /**
     * 倒计时锁
     * @param $uid
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2020/4/21 18:19
     */
    static function countdownLock($uid,$type){
        return "COUNTDOWNLOCK:".$uid.'-'.$type;
    }

    /**
     * 活动排期
     * @return string
     * Created by: Owen
     * Created on: 2020/4/21 18:20
     */
    static function ActivitySchedule(){
        return "ACTIVITYSCHEDULE";
    }

    /**
     * 用户签到进度记录
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/4/24 12:19
     */
    static function UserSignInProgress($uid){
        return "UserSignInProgress:".$uid;
    }

    /**
     * 签到进度配置
     * @param  $version
     * @return string
     * Created by: Owen
     * Created on: 2020/4/24 15:15
     */
    static function SignInProgressConfig($section_id = 0,$version = 0){
        if($version){
            if(empty($section_id)){
                return "SIGNINPROGRESSCONFIG:{$version}";
            }
            return "SIGNINPROGRESSCONFIG:{$version}-{$section_id}";
        }else{
            if(empty($section_id)){
                return "SIGNINPROGRESSCONFIG";
            }
            return "SIGNINPROGRESSCONFIG:{$section_id}";
        }
    }

    /**
     * 签到进度刷新
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/4/27 15:35
     */
    static function SignInProgressRefresh($uid){
        return "SIGNINPROGRESSREFRESH:".$uid;
    }

    /**
     * 登录监控
     * @return string
     * Created by: Owen
     * Created on: 2020/4/24 19:45
     */
    static function LoginMonitor($sid){
        return "LOGINMONITOR:{$sid}";
    }

    /**
     * 是否订阅过
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/4/29 14:47
     */
    static function IsSubscription($uid){
        return "ISSUBSCRIPTION:".$uid;
    }

    /**
     * 用户道具
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/5/7 17:25
     */
    static function UserProps($uid){
        return "USERPROPS:".$uid;
    }

    /**
     * Notes:世界星星排行前5000，有序集合
     * User: wsc
     * Time: 2020/5/18 10:31
     * @return string
     */
    static function worldStaRank(){
        return "WORLDSTRRANK";
    }

    /**
     * Notes:世界50排行详情
     * User: wsc
     * Time: 2020/5/6 17:27
     * @return string
     */
    static function worldRankInfo(){
        return "WORLDRANKINOF";
    }

    /**
     * Notes:
     * User: wsc
     * Time: 2020/5/18 11:57
     * @param $c
     * @return string
     */
    static function countryRank($c){
        return "COUNTRYRANK:".$c;
    }

    /**
     * Notes:新用户ip列表（json队列，右入左出）
     * User: wsc
     * Time: 2020/5/19 15:30
     * @return string
     */
    static function newUserIpList($type=1){
        return "NEWUSERIPLIST:".$type;
    }

    static function userCountryInfo($uid){
        return "USERCOUNTRYINFO:".$uid;
    }

    /**
     * 任务进度
     * @return string
     * Created by: Owen
     * Created on: 2020/5/11 19:34
     */
    static function TaskProgressConfig(){
        return "TASKPROGRESSCONFIG";
    }
	
	/**
     * 付费关卡分析
     * @return string
     * Created by: Hss
     * Created on: 2020/5/11 12:06
     */
    static function levelPaySta($type){
        return "LEVELPAYSTA:{$type}";
    }

    /**
     * ios vip 监听
     * @return string
     * Created by: Owen
     * Created on: 2020/5/12 20:34
     */
    static function VipMonitor(){
        return "VIPMONITOR";
    }

    /**
     * 登陸彈框配置
     * @return string
     * Created by: Owen
     * Created on: 2020/5/19 12:05
     */
    static function LoginBulletBox(){
        return "LOGINBULLETBOX";
    }

    /**
     * 回归倒计时
     * Created by: Owen
     * Created on: 2020/5/25 14:55
     */
    static function RecallTime(){
        return "RECALLTIME";
    }
	
	/**
     * 签到等级区间配置
     * @return string
     * Created by: Hss
     * Created on: 2020/5/25 11:21
     */
    static function signinSection(){
        return "SIGNINSECTIONCONFIG";
    }

    /**
     * 回归配置
     * @return string
     * Created by: Owen
     * Created on: 2020/5/26 17:16
     */
    static function recallConfig(){
        return "RECALLCONFIG";
    }

    /**
     * 回归推送
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2020/5/26 20:08
     */
    static function RecallPush($type){
            return "RECALLPUSH:{$type}";
    }

    /**
     * 付费转盘次数
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/5/27 14:42
     */
    static function TpFeeTimes($uid){
        return "TPFEETIMES:{$uid}";
    }

    /**
     * Fb 账号绑定限时最后登录时间
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/5/29 12:25
     */
    static function FbAccountSynListTime($uid){
        return "FBACCOUNTSYNLISTTIME:{$uid}";
    }
	
	/**
     * 打金币配置
     * @return string
     * Created by: Hss
     * Created on: 2020/5/29 11:42
     */
    static function attackCoinConfig(){
        return "ATTACKCOINCONFIG";
    }
    /**
     * Fb 绑定奖励
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/6/4 20:09
     */
    static function FbBindReward($uid){
        return "FbBindReward:{$uid}";
    }


    //==================用户属性相关=================
    /**
     * Notes:用户属性缓存 hash
     * User: wsc
     * Time: 2020/6/4 17:08
     * @param $uid
     */
    static function userAttr($uid){
        return "NEW_USER_ATTR:".$uid;
    }

    /**
     * Notes:用户常规统计 hash
     * User: wsc
     * Time: 2020/6/6 10:24
     * @param $uid
     * @return string
     */
    static function userBasicsStatistics($uid){
        return "NEW_USER_BASICSSTATISTICS:".$uid;
    }
    //==================用户统计，日志=================
    static function assetsLog($d){
        return "ASSETS_LOG:".$d;
    }
    static function actAssetsLog($d){//活动信息流水
        return "ACTASSETS_LOG:".$d;
    }
    //===================新版活动相关=================
    /**
     * Notes:活动详情
     * User: wsc
     * Time: 2020/7/22 14:13
     * @param $aid
     * @return string
     */
    static function activityInfo($aid){
        return "CONF_ACTIVITY_INFO:".$aid;
    }

    /**
     * Notes:活动奖励配置
     * User: wsc
     * Time: 2020/7/17 11:55
     * @param $aid
     * @return string
     */
    static function activityReward($aid){
        return "CONF_ACTIVITY_REWARD:".$aid;
    }

    static function activityCommonCfg(){
        return "CONF_ACTIVITY_COMMON_CFG";
    }
    /**
     * Notes:线上开启的活动hash,根据type分类
     * User: wsc
     * Time: 2020/7/22 14:15
     * @return string
     */
    static function onlineOpenActivity($type){
        return "CONF_ACTICITY_ONLINE_OPEN:".$type;
    }

    /**
     * Notes:活动等级金币奖励基数
     * User: wsc
     * Time: 2020/7/26 22:42
     * @param $aid
     * @return string
     */
    static function activityCoinRewardByType($type){
        return "CONF_ACTICITY_COIN_REWARD:".$type;
    }
    /**
     * Notes:参加该aid活动的用户列表
     * User: wsc
     * Time: 2020/7/22 19:57
     * @param $aid
     * @return string
     */
    static function bindActivityList($aid){
        return "ACT_USER_BIND_LIST:".$aid;
    }
    /**
     * Notes:用户当前绑定的该类型活动
     * User: wsc
     * Time: 2020/7/22 19:55
     * @param $uid
     * @return string
     */
    static function userBindActivity($type,$uid){
        return "ACT_USER_BIND:".$type.'-'.$uid;
    }

    /**
     * AB Test 活动锁定
     * @param $type
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/11/10 9:54
     */
    static function userBindActAbTest($type,$uid){
        return "USERBINDACTABTEST:{$type}-{$uid}";
    }

    /**
     * Notes:用户绑定的活动奖励配置
     * User: wsc
     * Time: 2020/9/11 11:01
     * @param $uid
     * @param $aid
     * @return string
     */
    static function userBindActivityRewardCfg($uid,$aid){
        return "ACT_USER_BIND_REWARD_CFG:{$uid}-{$aid}";
    }

    /**
     * Notes:用户绑定的奖励id
     * User: wsc
     * Time: 2020/9/11 11:01
     * @param $uid
     * @param $aid
     * @return string
     */
    static function userBindActRid($uid,$aid){
        return "ACT_USER_BIND_RID:{$uid}-{$aid}";
    }

    /**
     * Notes:限时活动限时时间
     * User: wsc
     * Time: 2020/9/11 11:02
     * @param $type
     * @return string
     */
    static function timeLimitAct($type){
        return "ACT_TIME_LIMIT:".$type;
    }

    /**
     * Notes:限时活动限时bet
     * User: wsc
     * Time: 2021/1/23 16:43
     * @param $type
     * @return string
     */
    static function timeLimitBetAct($type){
        return "ACT_TIME_LIMIT_BET:".$type;
    }
    /**
     * Notes:用户当前活动阶段及进度直
     * User: wsc
     * Time: 2020/8/1 18:47
     * @param $uid
     * @param $aid
     * @return string
     */
    static function userActivityStageRate($uid,$aid){
        return "ACT_USER_STAGE_RATE:".$uid.'-'.$aid;
    }

    /**
     * Notes:排行榜活动房间列表
     * User: owen
     * Time: 2020/8/1 18:47
     * @param $aid
     * @param $setId
     * @return string
     */
    static function activityRankRoomList($aid,$setId = ''){
        if($setId||$setId===0){
            return "ACT_ROOM_LIST:{$aid}-{$setId}";
        }
        return "ACT_ROOM_LIST:{$aid}";
    }

    /**
     * Notes:排行榜活动房间用户列表
     * User: wsc
     * Time: 2020/8/1 18:51
     * @param $aid
     * @param $roomId
     * @return string
     */
    static function activityRoomUserList($aid,$roomId){
        return "ACT_ROOM_USER_LIST:{$aid}-{$roomId}";
    }
    /**
     * Notes:排行榜活动房间用户排行
     * User: wsc
     * Time: 2020/8/1 18:48
     * @param $aid
     * @param $roomId
     * @return string
     */
    static function activityUserRankList($aid,$roomId){
        return "ACT_USER_RANK_LIST:{$aid}-{$roomId}";
    }

    /**
     * 排行榜活动满员的房间
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/19 17:58
     */
    static function activityRankRoomFull($aid){
        return "ACTIVITYRANKROOMFULL:{$aid}";
    }


    /**
     * Notes:个人特例活动
     * User: wsc
     * Time: 2020/8/11 15:53
     * @param $uid
     * @param $type
     * @return string
     */
    static function userSpecialAct($uid,$type){
        return "ACT_USER_SPECIAL:{$uid}-{$type}";
    }
    /**
     * Notes:用户绑定活动RoomId
     * User: wsc
     * Time: 2020/8/3 9:42
     * @param $uid
     * @param $aid
     * @return string
     */
    static function activityUserRankBindRoomId($aid){
        return "ACT_USER_BIND_ROOMID:{$aid}";
    }

    /**
     * Notes:排行榜最终结算奖励
     * User: wsc
     * Time: 2020/8/6 16:04
     * @param $uid
     * @return string
     */
    static function activityUserRankEndReward($uid,$type = ''){
        if($type){
            return "ACT_USER_RANK_ENDREWARD:".$uid."-".$type;
        }
        return "ACT_USER_RANK_ENDREWARD:".$uid;
    }

    /**
     * Notes:主动结算的用户集合
     * User: wsc
     * Time: 2020/9/1 10:44
     * @param $aid
     * @return string
     */
    static function activityCheckLock($aid,$uid){
        return "ACT_RANK_CHECK_LOCK:{$aid}_{$uid}";
    }

    /**
     * Notes:活动排行结算记录队列
     * User: wsc
     * Time: 2020/8/6 17:21
     * @param $t 1代表写入 2代表更新
     * @return string
     */
    static function activityRankLog($t){
        return "ACT_RANK_LOG".$t;
    }

    /**
     * Notes:活动进度记录
     * User: wsc
     * Time: 2020/8/20 16:04
     * @return string
     */
    static function activityStageLog(){
        return "ACT_STAGE_LOG";
    }

    /**
     * Notes:活动排行榜奖励进度
     * User: wsc
     * Time: 2020/8/21 17:03
     * @param $uid
     * @param $aid
     * @return string
     */
    static function activityRankRewardStatus($uid,$aid){
        return "ACT_RANK_REWARD_STATUS:{$uid}-{$aid}";
    }

    /**
     * Notes:活动排行榜卡片奖励
     * User: wsc
     * Time: 2020/8/21 17:03
     * @param $uid
     * @param $aid
     * @return string
     */
    static function activityUserRankCard($uid,$aid){
        return "ACT_RANK_USER_CARD:{$uid}-{$aid}";
    }

    /**
     * Notes:用户在第一次参加$aid时候绑定的属性
     * User: wsc
     * Time: 2020/11/5 17:09
     * @param $uid
     * @param $aid
     * @return string
     */
    static function activityBindUserAttr($uid,$aid){
        return "ACT_BIND_USERATTR:{$uid}-{$aid}";
    }

    /**
     * Notes:当前绑定的连环礼包活动aid
     * User: wsc
     * Time: 2020/8/21 17:06
     * @param $uid
     * @return string
     */
    static function bindChainGift($uid){
        return "ACT_BIND_CHAIN_GIFT:".$uid;
    }

    static function buyChainGiftLimit($aid){
        return "ACT_BUY_CHAIN_GIFT_LIMIT:{$aid}";
    }
    static function activityChainGiftBindCfg($aid,$uid){
        return "ACT_CHAIN_GIFT_BIND_CFG:{$aid}-{$uid}";
    }
    //超级连环礼包绑定的活动
    static function bindSuperSerialPack($uid){
        return "ACT_BIND_SUPER_SERIAL_PACK:".$uid;
    }
    //超级连环礼包2绑定的活动
    static function bindSuperSerialPack2($uid){
        return "ACT_BIND_SUPER_SERIAL_PACK_TWO:".$uid;
    }
    //超级连环礼包购买次数
    static function  buySuperSerialPackLimit($aid){
        return "ACT_SUPER_SERIAL_PACK_LIMIT:{$aid}";
    }
    //超级连环礼包购买次数(新的fox)
    static function  buySuperSerialPackTimes($aid,$uid){
        return "ACT_SUPER_SERIAL_PACK_LIMIT:{$aid}_{$uid}";
    }
    /**
     * Notes:报名列表 hash
     * User: wsc
     * Time: 2020/9/12 18:08
     * @param $aid
     * @return string
     */
    static function activityApply($aid){
        return "ACT_APPLY_LIST:{$aid}";
    }

    /**
     * Notes:邀请活动邀请列表 hash
     * User: wsc
     * Time: 2020/9/12 18:40
     * @param $uid
     * @param $aid
     * @return string
     */
    static function activityInviteUserList($uid,$aid){
        return "ACT_INTIVITE_USER_LIST:{$aid}-{$uid}";
    }

    /**
     * Notes:邀请排行榜
     * User: wsc
     * Time: 2020/9/14 11:37
     * @param $aid
     * @return string
     */
    static function activityInviteRank($aid){
        return "ACT_INTIVITE_RANK:{$aid}";
    }
    static function activityInviteRewardStage($aid,$uid){
        return "ACT_INVITE_REWARD_STAGE:{$aid}-{$uid}";
    }
    static function activityInviteUserRate($aid,$uid){
        return "ACT_INVITE_USER_RATE:{$aid}-{$uid}";
    }

    /**
     * Notes:活动期累计充值金额
     * User: wsc
     * Time: 2020/10/13 10:27
     * @param $aid
     * @param $uid
     * @return string
     */
    static function activitySumPayNum($aid,$uid){
        return "ACT_SUM_PAY_NUM:{$aid}-{$uid}";
    }
    static function activitySumPayReceiveLog($aid,$uid){
        return "ACT_SUM_PAY_RECEIVE_LOG:{$aid}-{$uid}";
    }
    /**
     * Notes:邀请进度累计充值金额
     * User: richard
     * Time: 2020/12/02 17:40
     * @param $uid
     * @return string
     */
    static public function inviteSumPayNum($uid){
        return "INVITETTPAY:{$uid}";
    }

    /**
     * Notes:邀请进度邀请细腻些
     * User: richard
     * Time: 2020/12/02 17:40
     * @param $uid
     * @return string
     */
    static function userinvitesuc($uid) {
        return "INVITESUCC:{$uid}";
    }

    //==============================================
    /**
     * 星星兑换记录
     * @param $uid
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2020/6/10 17:15
     */
    static function StarExchange($uid,$type){
        return "STAREXCHANGE:{$uid}-{$type}";
    }

    /**
     * 星星兑换记录
     * @return string
     * Created by: Owen
     * Created on: 2020/6/10 17:15
     */
    static function StarExchangeConfig(){
        return "STAREXCHANGECONFIG";
    }

    /**
     * 星星兑换购买次数
     * @param $uid
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2020/6/10 17:15
     */
    static function StarExchangeBuyTimer($uid,$type){
        return "StarExchangeBuyTimer:{$uid}-{$type}";
    }

    /**
     * 好友礼物当天次数限制
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/6/11 16:08
     */
    static function SendCardTodayTotal($uid){
        return "SENDCARDTODAYTOTAL:{$uid}";
    }

    /**
     * 好友礼物当天次数限制
     * @param $uid
     * @param $toUid
     * @return string
     * Created by: Owen
     * Created on: 2020/6/11 16:08
     */
    static function SendCardTodayPerson($uid,$toUid){
        return "SENDCARDTODAYPERSON:{$uid}-{$toUid}";
    }

    /**
     * 小丑卡标识
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/6/11 17:32
     */
    static function JokerCard($uid){
        return "JOKERCARD:{$uid}";
    }

    /**
     * 小丑卡统计
     * @return string
     * Created by: Hss
     * Created on: 2020/10/15 16:21
     */
    static function JokerCardSta(){
        return "JOKERCARDSTA";
    }

    /**
     * 连环礼包
     * @param $uid
     * @param $gid
     * @return string
     * Created by: Owen
     * Created on: 2020/6/12 14:32
     */
    static function SerialPackTimer($uid="",$gid=""){
        if($uid== "" || $gid == ""){
            return "SERIALPACKTIMER";
        }
        return "SERIALPACKTIMER:{$uid}-{$gid}";
    }

    /**
     * 老虎机集合
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/6/17 19:10
     */
    static function SlotSet($uid){
        return "SLOTSET:{$uid}";
    }

    /**
     * 老虎机有序集合
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/6/17 19:10
     */
    static function SlotList($uid){
        return "SLOTLIST:{$uid}";
    }

    /**
     * 新手体力追加随机上限
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2019/9/5 16:27
     */
    static public function NewComerSpinRandNum($uid){
        return 'NEWCOMERSPINRANDNUM:'.$uid;
    }

    /**
     * 攻击保护列表
     * @return string
     * Created by: Owen
     * Created on: 2020/6/20 16:03
     */
    static public function AttackProtectList(){
        return 'ATTACKPROTECTLIST';
    }

    /**
     * 等待攻击列表
     * @param $levelId
     * @return string
     * Created by: Owen
     * Created on: 2020/6/20 16:05
     */
    static public function AttackWaitList($levelId){
        return "ATTACKWAITLIST:{$levelId}";
    }

    /**
     * 攻击锁定列表
     * @return string
     * Created by: Owen
     * Created on: 2020/6/30 17:19
     */
    static public function AttackLockList(){
        return "ATTACKLOCKLIST";
    }

    /**
     * 用户每日被攻击次数
     * @return string
     * Created by: Owen
     * Created on: 2020/6/20 16:29
     */
    static public function UserDailyAttackedNum(){
        return "USERDAILYATTACKEDNUM";
    }

    /**
     * 用户连续被攻击次数
     * @return string
     * Created by: Owen
     * Created on: 2021/2/20 17:22
     */
    static public function UserAttackedNum($uid){
        return "USERATTACKEDNUM:{$uid}";
    }



    static public function userOtherStealAward($uid,$optId,$type){
        return "USERSTEAL:OTHERAWARD:"."{$uid}-{$optId}-{$type}";
    }

    /**
     * 用户x天购买礼包次数
     * @param  string
     * @return string
     * Created by: Owen
     * Created on: 2020/6/28 14:52
     */
    static public function UserBuyGiftNum($uid){
        return "USERBUYGIFTNUM:{$uid}";
    }

    /**
     * 用户最後支付時間
     * @param  string
     * @return string
     * Created by: Owen
     * Created on: 2020/6/28 14:52
     */
    static public function UserLastPayTime($uid){
        return "USERLASTPAYTIME:{$uid}";
    }

	/**
     * 支付上报
     * @return string
     * Created by: Hss
     * Created on: 2020/6/11 10:29
     */
    static function payReport($sid,$event_id = 10008){
    	if($event_id == 10008){
    		return "PAYREPORT:{$sid}";
    	}else{
    		return "PAYREPORT:{$sid}-{$event_id}";
    	}
    }

    /**H
     * Notes:系统公告
     * User: wsc
     * Time: 2020/7/7 14:51
     */
    static function serverNotice(){
        return "CFG:SERVERnOTICE";
    }

    /**
     * Notes:跑马灯消息配置缓存
     * User: wsc
     * Time: 2021/1/20 14:35
     */
    static function noticeMsg(){
        return "NOTICE_MSG";
    }

    static function noticeMsgList($type){
        return "NOTICE_MSG_LIST:{$type}";
    }

    /**
     * 排行榜活动推送
     * @return string
     * Created by: Owen
     * Created on: 2020/7/4 15:47
     */
    static function ActivityRankPush(){
        return "ACTIVITYRANKPUSH";
    }

    /**
     * 排行榜活动推送
     * @param  $type
     * @return string
     * Created by: Owen
     * Created on: 2020/7/4 15:47
     */
    static function ActivityRankPushLock($type){
        return "ACTIVITYRANKPUSH:{$type}";
    }

    /**
     * 排行榜活动推送数据
     * @return string
     * Created by: Owen
     * Created on: 2020/7/4 15:47
     */
    static function ActivityRankPushData(){
        return "ACTIVITYRANKPUSHDATA";
    }

    /**
     * MD5 文件配置
     * @return string
     * Created by: Owen
     * Created on: 2020/7/6 20:09
     */
    static function StaticMd5Config(){
        return "STATICMD5CONFIG";
    }

    /**
     * 用户体力恢复满时间戳
     * @return string
     * Created by: Hss
     * Created on: 2020/6/8 15:46
     */
    static function spinsFirebaseEndTime(){
        return "SPINSFIREBASEENDTIME";
    }

    /**
     * 聚合广告
     * @param $version
     * @return string
     * Created by: Owen
     * Created on: 2020/9/22 18:05
     */
    static function Polymerization($version = 0){
        if($version){
            return "POLYMERIZATION{$version}";
        }
        return "POLYMERIZATION";
    }

    /**
     * 聚合广告
     * Created by: Owen
     * Created on: 2020/7/14 10:34
     */
    static function PolymerizationCount(){
        return "POLYMERIZATIONCOUNT";
    }

    /**
     * 邮件召回
     * @param  string
     * @return string
     * Created by: Owen
     * Created on: 2020/7/14 18:26
     */
    static function EmailRecall($day){
        return "EMAILRECALL:{$day}";
    }

    /**
     * 活动金币
     * @return string
     * Created by: Owen
     * Created on: 2020/7/15 19:59
     */
    static function ActivityCoins(){
        return "ACTIVITYCOINS";
    }

    /**
     * 获取支付加倍配置
     * @return string
     * Created by: Hss
     * Created on: 2020/7/17 17:03
     */
    static function TurnPaybetConfig($type = 'price'){
        return "TURNPAYBETCONFIG:{$type}";
    }

    /**
     * 支付加倍数据记录
     * @return string
     * Created by: Hss
     * Created on: 2020/7/21 14:44
     */
    static function TurnPaybetLog(){
        return "TURNPAYBETLOG";
    }

    /**
     * 支付加倍次数
     * @return string
     * Created by: Hss
     * Created on: 2020/7/22 12:08
     */
    static function TurnPaybetNum($price = 0,$vipPoint = 0){
        return "TURNPAYBETNUM:{$price}-{$vipPoint}";
    }

    /**
     * 活动上线推送
     * @param  string
     * @return string
     * Created by: Owen
     * Created on: 2020/7/18 17:09
     */
    static function ActivityOnLinePush($id){
        return "ACTIVITYONLINEPUSH:{$id}";
    }


    /**
     * 排行榜進度獎勵配置
     * @param  string
     * @return string
     * Created by: Owen
     * Created on: 2020/7/20 17:18
     */
    static function RankProgressConfig($version){
        return "RANKPROGRESSCONFIG:{$version}";
    }

    /**
     * 用户分组配置
     * @param  int
     * @return string
     * Created by: Owen
     * Created on: 2020/7/22 10:46
     */
    public static function UserGroupConfig($version = 0){
        if($version){
            return "USERGROUPCONFIG:{$version}";
        }
        return "USERGROUPCONFIG";
    }

    /**
     * 用户分组条件配置
     * @return string
     * Created by: Owen
     * Created on: 2020/7/22 10:47
     */
    public static function UserGroupConditionConfig(){
        return "USERGROUPCONDITIONCONFIG";
    }

    /**
     * 用户分组需要计算的用户
     * @param  $version
     * @return string
     * Created by: Owen
     * Created on: 2020/7/22 10:50
     */
    public static function UserGroupAction($version = 0){
        if($version){
            return "USERGROUPACTION{$version}";
        }
        return "USERGROUPACTION";
    }

    /**
     * 用户分组已经计算的用户
     * @return string
     * Created by: Owen
     * Created on: 2020/7/22 10:50
     */
    public static function UserGroupDaily(){
        return "USERGROUPDAILY";
    }

    /**
     * 用户动态数据
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 12:16
     */
    public static function UserDynamicsData($uid){
        return "UserDynamicsData:{$uid}";
    }
//    public static function UserDynamicsData($uid){
//        return "UserDynamicsDataPHP:{$uid}";
//    }
    /**
     * 用户排行榜数据
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 16:27
     */
    public static function UserRankData($uid){
        return "UserRankData:{$uid}";
    }

    /**
     * 宝藏活动配置
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 16:27
     */
    public static function TreasureConfig($new = false){
        return $new?"TREASURECONFIG:NEW":"TREASURECONFIG";
    }

    /**
     * 宝藏活动概率配置
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 16:27
     */
    public static function TreasureProConfig($version = ''){
        return "TREASUREPROCONFIG{$version}";
    }

    /**
     * 宝藏活动概率配置 - 根据任务层配置
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 16:27
     */
    public static function TreasureProConfigByTaskId(){
        return "TREASUREPROCONFIGBYTASKID";
    }
    /**
     * 宝藏活动当前任务ID
     * @param  $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 16:27
     */
    public static function TreasureTaskId($aid = 0, $version = ''){
        $key = $aid ? "TREASURETASKID:{$aid}" : "TREASURETASKID";
        return $version ? "{$key}_2" : $key;
    }

    /**
     * 宝藏活动当前任务值
     * @param  $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 16:27
     */
    public static function TreasureTaskNum($aid = 0, $version = ''){
        $key = $aid ? "TREASURETASKNUM:{$aid}" : "TREASURETASKNUM";
        return $version ? "{$key}_2" : $key;
    }

    /**
     * 宝藏活动金卡
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 16:27
     */
    public static function TreasureTaskCard(){
        return "TREASURETASKCARD";
    }

    /**
     * 宝藏活动入门礼物
     * @param  $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/7/23 16:27
     */
    public static function TreasureTaskGift($aid = 0){
        if($aid){
            return "TREASURETASKGIFT:{$aid}";
        }
        return "TREASURETASKGIFT";
    }

    /**
     * 宝藏活动緩存結果
     * @param $aid
     * @param $uid
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2020/7/30 18:39
     */
    public static function TreasureCacheResult($aid,$uid,$type){
        if($aid){
            return "TreasureCacheResult:{$aid}-{$uid}-{$type}";
        }
        return "TreasureCacheResult:{$uid}-{$type}";
    }
    //TreasureTaskLog 记录用户金币老虎机个人记录缓存
    static function TreasureGameLog($aid, $uid ){
        return "TREASURETASKLog:{$aid}:{$uid}";
    }
    /**
     * 新增等级推送
     * @return string
     * Created by: Owen
     * Created on: 2020/7/29 15:32
     */
    public static function UpdateCurMaxLevelPush(){
        return "UPDATECURMAXLEVELPUSH";
    }

    /**
     * 宝藏活动用户当前任务类型
     * @param  $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/7/29 15:32
     */
    public static function TreasureCurTaskType($aid = 0){
        if($aid){
            return "TREASURECURTASKTYPE:{$aid}";
        }
        return "TREASURECURTASKTYPE";
    }

    /**
     * 升级礼包配置
     * @return string
     * Created by: Hss
     * Created on: 2020/8/3 17:10
     */
    static function GiftUpLevelConfig($iteration = 0){
        return "GIFTUPLEVELCONFIG:{$iteration}";
    }

    /**
     * 分享链
     * @param $id
     * @return string
     * Created by: Owen
     * Created on: 2020/8/5 9:42
     */
    static function ShareLinkConfig($id){
        return "SHARELINKCONFIG:{$id}";
    }

    /**
     * 分享链奖励
     * @param $id
     * @return string
     * Created by: Owen
     * Created on: 2020/8/5 9:42
     */
    static function ShareLinkReward($id){
        return "SHARELINKREWARD:{$id}";
    }

    /**
     * 排行榜分块 -- VIP
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/8/5 9:42
     */
    static function RankUserSetId($aid){
        return "RANKUSERSETID:{$aid}";
    }

    /**
     * 排行榜分块 -- 体力
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/8/5 9:42
     */
    static function RankUserSpinsSetId($aid){
        return "RANKUSERSPINSSETID:{$aid}";
    }

   /**
     * 谷歌accessToken
     * @return string
     * Created by: Owen
     * Created on: 2020/8/5 9:42
     */
    static function GoogleAccessToken(){
        return "GOOGLEACCESSTOKEN";
    }

    /**
     * 活动期间支付
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/8/12 17:22
     */
    static function ActivityBuyGoods($aid){
        return "ACTIVITYBUYGOODS:{$aid}";
    }

    /**
     * 排行榜活动机器人基础值
     * @param $aid
     * @param $roomId
     * @return string
     * Created by: Owen
     * Created on: 2020/8/12 18:01
     */
    static function ActivityRankLastNum($aid,$roomId){
        return "ACTIVITYRANKLASTNUM:{$aid}-{$roomId}";
    }

    /**
     * 临时活动
     * @param $uid
     * @param $id
     * @return string
     * Created by: Owen
     * Created on: 2020/8/12 19:44
     */
    static function ActivityTemp($uid,$id){
        return "ACTIVITYTEMP:{$uid}-{$id}";
    }

    /**
     * 商城宝箱价格配置
     * @return string
     * Created by: Owen
     * Created on: 2020/8/12 19:44
     */
    static function CardChestConfig(){
        return "CARDCHESTCONFIG";
    }

    /**
     * 第三方订单号
     * @return string
     * Created by: Owen
     * Created on: 2020/8/12 19:44
     */
    static function PlatformSerialNum(){
        return "PLATFORMSERIALNUM";
    }

    /**
     * 首充礼包等级锁
     * @param  $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/8/18 15:04
     */
    static function FirstPayLevelLock($uid){
        return "FIRSTPAYLEVELLOCK:{$uid}";
    }

    /**
     * 邀请奖励配置 等级区间
     * @param $uid
     * @return string
     * Created by: Hss
     * Created on: 2020/8/17 15:18
     */
    static function InviteRewardConfig($sid = 1){
        return "INVITEREWARDCONFIG:{$sid}";
    }
    /**
     * Notes:邀请阶段奖励配置
     * User: wsc
     * Time: 2020/9/16 10:14
     * @return string
     */
    static function InviteStageReward(){
        return "CONF_INTIVITY_STAGE_REWARD";
    }

    /**
     * Notes:邀请人数领奖记录
     * User: wsc
     * Time: 2020/9/18 14:33
     * @param $uid
     * @return string
     */
    static function InviteStageLog($uid){
        return "INVITE_STAGE_LOG:{$uid}";
    }

    static function InviteLastUserInfo($uid){
        return "INVITE_LAST_USER_INFO:{$uid}";
    }
    /**
     * 用戶当天累积保护时长
     * @return string
     * Created by: Owen
     * Created on: 2020/8/21 15:16
     */
    static function UserDailyAttackedTime(){
        return "USERDAILYATTACKEDTIME";
    }

    /**
     * 用戶当天最后被攻击建筑档位
     * @return string
     * Created by: Owen
     * Created on: 2020/8/21 15:16
     */
    static function UserDailyAttackedLastLv(){
        return "USERDAILYATTACKEDLASTLV";
    }



    /**
     * 上限配置
     * @return string
     * Created by: Owen
     * Created on: 2020/8/24 15:08
     */
    static function UpLimitConfig(){
        return "UPLIMITCONFIG";
    }

    /**
     * 寵物等級配置
     * @param  $petId
     * @return string
     * Created by: Owen
     * Created on: 2020/8/24 15:08
     */
    static function PetLevelConfig($petId){
        return "PETLEVELCONFIG:{$petId}";
    }

    /**
     * 活动进度支付统计
     * @return string
     * Created by: Hss
     * Created on: 2020/8/25 17:22
     */
    static function activityProgresPaySta($rid = 0,$aid = 0){
        if($rid){
            return $aid?"ACTIVITYPROGRESPAYSTA:{$rid}-{$aid}":"ACTIVITYPROGRESPAYSTA:{$rid}";
        }
        return $aid?"ACTIVITYPROGRESPAYSTA:{$aid}":"ACTIVITYPROGRESPAYSTA";
    }

    /**
     * 活动进度支付统计 - 活动ID
     * @return string
     * Created by: Hss
     * Created on: 2020/8/25 17:22
     */
    static function activityProgresPayAidSta(){
        return "ACTIVITYPROGRESPAYAIDSTA";
    }

    /**
     * 邀请链接领奖
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/8/26 12:27
     */
    static function InviteUrlReward($uid){
        return "INVITEURLREWARD:".$uid;
    }

    /**
     * 邀请链接上报
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/8/26 12:27
     */
    static function InviteUrlRecord($uid){
        return "INVITEURLRECORD:".$uid;
    }

    /**
     * 邀请事件上报
     * @param $sid
     * @return string
     * Created by: Hss
     * Created on: 2020/8/26 11:38
     */
    static function inviteEventSta($sid = 1,$type = 1){
        return "INVITEEVENTSTA:{$sid}-{$type}";
    }

    /**
     * 排行榜活动加入房间后体力开销
     * @param $aid
     * @return string
     * Created by: Hss
     * Created on: 2020/8/26 11:38
     */
    static function UserRankSpendSpins($aid){
        return "USERRANKSPENDSPINS:{$aid}";
    }

    /**
     * 宝藏探索产出消耗统计
     * @param $taskId 进度ID
     * @return string
     * Created by: Hss
     * Created on: 2020/9/2 16:12
     */
    static function treasureRewardSta($taskId){
        return "TREASUREREWARDSTA:{$taskId}";
    }

    /**
     * 好友礼物金币数量配置
     * @return string
     * Created by: Owen
     * Created on: 2020/9/2 18:09
     */
    static function FriendGiftCoinConfig(){
        return "FRIENDGIFTCOINCONFIG";
    }

    /**
     * 宝藏探索礼包积分配置
     * @return string
     * Created by: Hss
     * Created on: 2020/9/9 10:05
     */
    static function treasureQuestPointConfig(){
        return "TREASUREQUESTPOINTCONFIG";
    }

    /**
     * 宝藏探索礼包购买记录
     * @param  $aid
     * @return string
     * Created by: Hss
     * Created on: 2020/9/9 10:05
     */
    static function treasureQuestGiftLog($aid = 0){
        if($aid){
            return "TREASUREQUESTGIFTLOG:{$aid}";
        }
        return "TREASUREQUESTGIFTLOG";
    }


    /**
     * 宝箱配置
     * @return string
     * Created by: Owen
     * Created on: 2020/9/14 15:23
     */
    static function ChestConfig($id){
        return "CHESTCONFIG2:{$id}";
    }


    /**
     * 宝箱皮肤配置
     * @return string
     * Created by: Owen
     * Created on: 2020/9/14 15:23
     */
    static function ChestSkinConfig($id){
        return "CHESTSKINCONFIG2:{$id}";
    }

    /**
     * 皮肤宝箱卡片星星概率配置
     * @return string
     * Created by: Owen
     * Created on: 2020/9/14 15:23
     */
    static function ChestSkinStarProConfig($id){
        return "CHESTSKINSTARPROCONFIG:{$id}";
    }

    /**
     * 用户最后偷金币数量
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/9/14 19:45
     */
    static function LastStealCoinsNum($uid){
        return "LASTSTEALCOINSNUM{$uid}";
    }

    /**
     * 用户最后攻击获得金币数量
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/9/14 19:45
     */
    static function LastAttackCoinsNum($uid){
        return "LASTATTACKCOINSNUM{$uid}";
    }

    /**
     * 用户最后矿工游戏获得金币数量
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/9/14 19:45
     */
    static function LastMiningGameCoinsNum($uid){
        return "LASTMININGGAMECOINSNUM{$uid}";
    }
    /**
     * 商城促销加入活动
     * @return string
     * Created by: Hss
     * Created on: 2020/9/14 16:32
     */
    static function joinShopPromotion(){
        return "JOINSHOPPROMOTION";
    }

    /**
     * 商城促销购买次数
     * @return string
     * Created by: Hss
     * Created on: 2020/11/21 18:33
     */
    static function ShopPromotionBuyNumber(){
        return "SHOPPROMOTIONBUYNUMBER";
    }

    /**
     * 金币不足 体力不足 配置
     * @param  $type
     * @return string
     * Created by: Hss
     * Created on: 2020/9/15 15:09
     */
    static public function shopNotEnoughConfig($type){
        return "SHOPNOTENOUGHCONFIG:{$type}";
    }

    /**
     * 金币不足 体力不足 商品记录
     * @param  $gid
     * @return string
     * Created by: Hss
     * Created on: 2020/9/15 15:09
     */
    static public function shopNotEnoughLog($uid,$gid){
        return "SHOPNOTENOUGHLOG:{$uid}-{$gid}";
    }

    /**
     * 老虎机锁
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/9/16 21:40
     */
    static public function UserSlotLock($uid){
        return "USERSLOTLOCK:{$uid}";
    }

    /**
     * api请求频率锁(2s)
     * @param string $uid
     * @param string $function
     * @return string
     */
    static public function UserApiCmdLock($uid, $function){
        return "UCMDLOCK:{$uid}-{$function}";
    }

    /**
     * 当天好友攻击记录
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/9/28 19:25
     */
    static public function TodayFriendAttackLog($uid){
        return "TodayFriendAttackLog:{$uid}";
    }

    /**
     * 通行证当前数量
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/21 12:25
     */
    static public function TrafficPermitCurNum($aid){
        return "TRAFFICPERMITCURNUM:{$aid}";
    }

    /**
     * 通行证相关每个玩家单独一个hash
     * @param $aid
     * @param $uid
     * @return string
     */
    static public function TrafficPermitUser($aid, $uid) {
        return "game_pass_".$aid.'_'.$uid;
    }

    /**
     * 通行证信息
     * @param $aid
     * @param $uid
     * @return string
     */
    static public function GamePassInfo($aid, $uid): string
    {
        return "pass:info:{$aid}:{$uid}";
    }

    /**
     * 通行证当前领奖记录
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/21 12:25
     */
    static public function TrafficPermitReward($aid){
        return "TRAFFICPERMITREWARD:{$aid}";
    }

    /**
     * 通行证当前任务记录
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/21 12:25
     */
    static public function TrafficPermitTaskCurNum($aid){
        return "TRAFFICPERMITTASKCURNUM:{$aid}";
    }

    /**
     * 新版通行证当前任务记录,拆分大key
     * @param $aid
     * @param $uid
     * @return string
     */
    static public function TrafficPermitUserTask($aid, $uid){
        return "game_pass_task_".$aid."_".$uid;
    }

    /**
     * 通行证购买状态
     * @param $aid
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/22 15:37
     */
    static public function BuyTrafficPermitStatus($aid,$uid){
        return "BUYTRAFFICPERMITSTATUS:{$aid}-{$uid}";
    }

    /**
     * 钻石兑换商城
     * @return string
     */
    static public function shopDiamond() {
        return "SHOPDIAMOND";
    }

    /**
     * 钻石兑换商城,不足商品
     * @return string
     */
    static public function notEnouthDiamond() {
        return "EXNOENOUGHDI";
    }

    /**
     * 玩家钻石钻石兑换信息
     * @param int $uid
     * @return string
     */
    static public function userDdiamond($uid) {
        return "USERDIAMOND:{$uid}";
    }

    /**
     * 商城促销统计
     * @return string
     * Created by: Hss
     * Created on: 2020/11/2 10:53
     */
    static function shopDiscountSta($type = ''){
        return ($type==""?"SHOPDISCOUNTSTA":"SHOPDISCOUNTSTA:{$type}");
    }

    /**
     * 宝藏活动保护时间
     * @param  $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/11/3 15:23
     */
    static function TreasureProtect($uid){
        return "TREASUREPROTECT:{$uid}";
    }

    /**
     * 通行证统计
     * @param string
     * @return string
     * Created by: Owen
     * Created on: 2020/11/5 19:19
     */
    static function trafficPermitSta($type){
        return "TRAFFICPERMITSTA:{$type}";
    }

    /**
     * 用户AB Test
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/11/9 15:09
     */
    static function UserAbTest($uid = ""){
        if(empty($uid)){
            return "USERABTEST";
        }
        return "USERABTEST:{$uid}";
    }

    /**
     * 矿工游戏上一次关卡
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/11/9 15:09
     */
    static function MiningGamePreLevelId($uid){
        return "MININGGAMEPRELEVELID:{$uid}";
    }

    /**
     * Notes:用户推金币长期游戏信息
     * User: wsc
     * Time: 2020/11/18 17:12
     * @param $uid
     * @return string
     */
    static function userGameInfoCoinDozer($uid){
        return "USER_GAMEINFO_COINDOZER:{$uid}";
    }

    /**
     * Notes:推金币单日游戏信息
     * User: wsc
     * Time: 2020/11/18 17:12
     * @param $uid
     * @return string
     */
    static function userDayGameInfoCoinDozer($uid){
//        $day =date('Ymd',time());
        return "USER_DAY_GAMEINFO_COINDOZER:{$uid}";
    }

    /**
     * Notes:掉落的道具列表
     * User: wsc
     * Time: 2020/11/18 21:33
     * @param $uid
     * @return string
     */
    static function userCoinDozerPropList($uid){
        return "USER_COINDOZER_PROPLIST:{$uid}";
    }
    /**
     * Notes:推金币游戏记录
     * User: wsc
     * Time: 2020/11/18 17:07
     * @return string
     */
    static function coinDozerGameLogList(){
        return "GAMELOG_COINDOZER";
    }
    /**
     * 玩家给好友维修建筑记录
     * @return string
     */
    static function helpRepairBuild(){
        return "REPBUILD:".date('Ymd');
    }

    /**
     * 玩家召回好友记录
     * @param int $uid
     * @return string
     */
    static function callBackFriend($uid){
        return "CALLBACKF:{$uid}";
    }

    /**
     * 玩家被召回列表记录
     * @param int $uid
     * @return string
     */
    static function beCallBackFriend($uid){
        return "BECALLBACKF:{$uid}";
    }

    /**
     * 召回奖励领取记录
     * @param int $uid
     * @return string
     */
    static function callBackReward($uid){
        return "CALLBACKFREWARD:{$uid}";
    }




    /**
     * 好友召回配置
     */
    static function callbackConfig() {
        return "CALLBACKFCONFIG";
    }

    /**
     * 好友数量进度奖励记录
     * @param int $uid
     * @return string
     */
    static function friendProgressReward($uid) {
        return "FRNDPRSSREWARD:{$uid}";
    }

    /**
     * 好友数量进度奖励配置
     */
    static function friendProgressRewardConfig() {
        return "FRNDPRSSREWARDCONFIG";
    }

//====================好友召回相关 star ==========================
    /**
     * 召回活动用户绑定的部分信息
     */
    static function callbackBindUserInfo($aid,$uid) {
        return "CALLBACK_BINDUSERINFO:{$aid}:{$uid}";
    }
    //用户可领取的积分列表
    static function callbackBindUserCanGetList($aid,$uid){
        return "CALLBACK_USERCANGETLIST:{$aid}:{$uid}";
    }
    //用户任务信息(每天)
    static function callbackUserTaskInfo($aid,$uid){
        return "CALLBACK_USERTASKINFO:{$aid}:{$uid}";
    }

    /**
     * 好友召回活动成功召回的玩家列表
     * @return string
     */
    static function activitySuccCallBackList($aid, $uid) {
        return  "ACSBACKLISTS:{$uid}:{$aid}";
    }

    /**
     * 好友召回活动,玩家点击召回过的好友列表
     * @return string
     */
    static function activityBeCallBackFriend($aid,$uid) {
        return  "BEACBACKLIST:{$aid}:{$uid}";
    }

    /**
     * 活动召回积分hash(召回发起者积分,被召回者积分)
     */
    static function actCallbackScore($aid, $uid) {
        return  "ACSCORE:{$aid}:{$uid}";
    }

    /**
     * 召回奖励阶段领奖情况
     */
    static function actCallbackReward($aid, $uid) {
        return  "ACTUCBRWD:{$aid}:{$uid}";
    }

    /**
     * 被回奖励阶段领奖情况
     */
    static function actBeCallbackReward($aid, $uid) {
        return  "ACTUBCBRWD:{$aid}:{$uid}";
    }

//======================== end ==========================
    /**
     * 在线玩家uid列表
     * 集合
     */
    static function onUidlines($server = '', $index = 0) {
        $prefix = "ONUIDLINES";
        return $server ? "{$prefix}:{$server}:{$index}" : "{$prefix}:{$index}";
    }

    /**
     * 在线玩家uid列表上次更新时间key
     * @param string $ip
     * @return string
     */
    static function onUidlinesSaveTimes($ip) {
        return "ONUIDLINES:LT:{$ip}";
    }

    /**
     * 每半小时记录请求信息
     * @param $mod string
     * @param $act string
     */
    static function apiRequestLog($now = true) {
        if($now){
            $dayKey = date('mdH').(date('i') > 30 ? '30' : '00');
        } else {
            if(date('i') > 30){
                $dayKey = date('mdH').'00';
            } else {
                $stamp = strtotime(date('Y-m-d H:00:00', time()));
                $stamp = $stamp - 1800;
                $dayKey = date('mdH', $stamp).'30';
            }
        }
        return "APIREQ:{$dayKey}";
    }

    /**
     * websocket拆分,订阅锁
     * @param string $ip
     * @return string
     */
    static function subcribeLock($ip) {
        return "WORKERSUB:LOCK:{$ip}";
    }

    /**
     * 玩家在线标志600秒
     */
    static function userOnline($uid) {
        return "USERONLINE:{$uid}";
    }

    /**
     * 玩家请求记录递增数,每请求十次更新一次在线标记
     */
    static function userWsReq($uid) {
        return "UONLINEINC:{$uid}";
    }

    /**
     * 服务器节点接收消息标志
     * @param string $ip
     * @return string
     */
    static function pushServer($ip) {
        return "PUSHSERVER:{$ip}";
    }

    /**
     * 支付白名单
     * @return string
     * Created by: Hss
     * Created on: 2020/11/23 16:20
     */
    static function payWhiteList(){
        return "PAYWHITELIST";
    }

    /**
     * 是否是推金币用户
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/11/25 14:31
     */
    static function isPushCoinsUser($uid){
        return "ISPUSHCOINSUSER:{$uid}";
    }


    /**
     * 推金币配置
     * @return string
     * Created by: Owen
     * Created on: 2020/11/25 14:31
     */
    static function coinDozerConfig(){
        return "COINDOZERCONFIG";
    }

    /**
     * 幸运夺宝概率配置
     * @return string
     * Created by: Owen
     * Created on: 2020/11/26 17:45
     */
    static function LuckyProConfig(){
        return "LUCKYPROCONFIG";
    }
    /**
     * 幸运夺宝配置
     * @return string
     * Created by: Owen
     * Created on: 2020/11/26 17:45
     */
    static function LuckyConfig(){
        return "LUCKYCONFIG";
    }
    /**
     * 幸运夺宝进度配置
     * @return string
     * Created by: Owen
     * Created on: 2020/11/26 17:45
     */
    static function LuckyProgressConfig(){
        return "LUCKYPROGRESSCONFIG";
    }

    /**
     * 保险柜当前值
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/11/26 17:45
     */
    static function SteelSafeCurNum($aid){
        return "STEELSAFECURNUM:{$aid}";
    }

    /**
     * 保险柜进度
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/3 20:27
     */
    static function SteelSafeCurProgress($aid){
        return "STEELSAFECURPROGRESS:{$aid}";
    }

    /**
     * 保险柜限时奖励
     * @param $aid
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/3 20:27
     */
    static function SteelSafeLimitReward($aid,$uid){
        return "STEELSAFELIMITREWARD:{$aid}-{$uid}";
    }
    /**
     * 保险柜限时奖励
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/3 20:27
     */
    static function SteelSafeWaitPush($uid){
        return "STEELSAFEWAITPUSH:{$uid}";
    }
    /**
     * 保险柜限时奖励推送状态
     * @param $uid
     * @param $progress
     * @return string
     * Created by: Owen
     * Created on: 2020/12/3 20:27
     */
    static function SteelSafePushStatus($uid,$progress){
        return "STEELSAFEPUSHSTATUS:{$uid}-{$progress}";
    }
    /**
     * AI help 配置
     * @param $id
     * @return string
     * Created by: Owen
     * Created on: 2020/12/3 20:27
     */
    static function AIHelpConf($id){
        return "AIHELPCONF:{$id}";
    }
    /**
     * 保险柜统计
     * @return string
     * Created by: Owen
     * Created on: 2020/12/3 20:27
     */
    static function SteelSafeSta(){
        return "STEELSAFESTA";
    }

    /**
     * 好友召回统计
     * @return string
     * Created by: Hss
     * Created on: 2020/12/17 10:25
     */
    static function friendRecallSta($type = 1){
        return "FRIENDRECALLSTA:{$type}";
    }

    /**
     * 限时crazy bet 活动当天次数
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/18 16:41
     */
    static function CrazyBetLimitNum($uid){
        return "CRAZYBETLIMITNUM:{$uid}";
    }

    /**
     * vip 续订次数
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/21 10:56
     */
    static function VipRenewTimes($uid){
        return "VIPRENEWTIMES:{$uid}";
    }

    /**
     * vip 每周积分领取记录
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/21 10:56
     */
    static function VipPointWeekReward($uid){
        return "VIPRENEWTIMES:{$uid}";
    }

    /**
     * 用户绑定的签到分组
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/23 20:04
     */
    static function SignInUserGroupId($uid){
        return "SIGNINUSERGROUPID:{$uid}";
    }

    /** Notes:长时间消耗型任务队列,定时跑
     * User: wsc
     * Time: 2020/12/23 16:59
     * @return string
     */
    static function longTimeTask(){
        return "LOOG_TIME_TASK";
    }

    /**接口请求记录
     * Notes:
     * User: wsc
     * Time: 2020/12/23 19:17
     * @param $type
     * @return string
     */
    static function apiLogs($type){
        $td = date('Ymd');
        return "API_LOGS:{$td}-{$type}";
    }

    /**
     *
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/12/30 11:40
     */
    static function CrazyBetLimitInterval($uid){
        return "CRAZYBETLIMITINTERVAL:{$uid}";
    }

    /**
     * CMS 支付数据
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/1/20 11:47
     */
    static public function CMSUserPayData($uid){
        return "CMSUSERPAYDATA:{$uid}";
    }

    /**
     * 卡片系数配置
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/1/20 11:47
     */
    static public function CardCoefficient(){
        return "CARDCOEFFICIENT";
    }


    /**
     * 用戶商店橫條倒計時
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/1/20 11:47
     */
    static public function UserFreeBarTtl($uid){
        return "USERFREEBARTTL:{$uid}";
    }

    static public function PropsExpire($uid,$id){
        return "PROPSEXPIRE:{$uid}-{$id}";
    }

    /**
     * 上次登录时间
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/1/25 20:38
     */
    static public function LastLoginTime($uid){
        return "LASTLOGINTIME:{$uid}";
    }


    /**
     * 二选一活动状态
     * @param $aid
     * @return string
     * Created by: Owen
     * Created on: 2021/1/25 20:38
     */
    static public function ChooseOneStatus($aid){
        return "CHOOSEONESTATUS:{$aid}";
    }

    /**
     * ios过审专用key
     */
    static public function iosSlotNum($uid){
        return "IOSSLOT:{$uid}";
    }

    /**
     * 后台增加老虎机体力统计/老虎机体力关卡概率统计
     * @return string
     * Created by: Hss
     * Created on: 2021/2/1 17:28
     */
    static function slotSpinsSta($date = '',$type = ''){
        return "SLOTSPINSSTA:{$date}-{$type}";
    }

    /**
     * Notes:活动通用累计值
     * User: wsc
     * Time: 2021/2/4 18:28
     * @param $aid
     * @param $uid
     * @return string
     */
    static function activityCommonRateSumScore($aid,$uid){
        return "ACT_COMMON_SCORE:{$aid}-{$uid}";
    }

    /**
     * Notes:活动通用领奖记录
     * User: wsc
     * Time: 2021/2/4 18:28
     * @param $aid
     * @param $uid
     * @return string
     */
    static function activityCommonRateReceiveLog($aid,$uid){
        return "ACT_COMMON_RECEIVE_LOG:{$aid}-{$uid}";
    }

    /**
     * 基金活动购买状态
     * @param $aid
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/22 15:37
     */
    static public function BuyFundStatus($aid,$uid){
        return "BUYFUNDSTATUS:{$aid}-{$uid}";
    }

    /**
     * 基金活动当天领奖状态
     * @param $aid
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/22 15:37
     */
    static public function TodayRewardStatus($aid,$uid){
        return "TODAYREWARDSTATUS:{$aid}-{$uid}";
    }

    /**
     * 购买基金活动领奖状态开始时间戳
     * @param $aid
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/22 15:37
     */
    static public function BuyFundTime($aid,$uid){
        return "BUYFUNDTIME:{$aid}-{$uid}";
    }
    /**
     * 绑定的基金活动ID
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/22 15:37
     */
    static public function FundAid($uid){
        return "FUNDAID:{$uid}";
    }
    /**
     * 绑定的基金活动的用户
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/22 15:37
     */
    static public function FundAidUid($aid){
        return "FUNDAIDUID:{$aid}";
    }
    /**
     * 基金活动领取ID
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2020/10/22 15:37
     */
    static public function FundRewardList($aid){
        return "FUNDREWARDLIST:{$aid}";
    }

    /**
     * Notes:用户旋转各类结果的体力消耗记录(长过期入库)hash
     * User: wsc
     * Time: 2021/2/25 9:47
     * @param $uid
     * @return string
     */
    static function userSlotResSpinsLost($uid){
        return "USER_SLOTSPINSLOST:{$uid}";
    }

    static function clearSlotResSpinsLostLock($uid){
        return "CLEAR_USER_SLOTSPINSLOST_LOCK:{$uid}";
    }

    /**
     * Notes:用户12小时转老虎机次数及体力记录
     * User: wsc
     * Time: 2021/2/25 11:32
     * @param $uid
     * @return string
     */
    static function userSlotDayLog($uid){
        return "USER_SLOTDAYLOG:{$uid}";
    }

    /**
     * Notes:用户最后一次转到的id
     * User: wsc
     * Time: 2021/2/25 15:59
     * @param $uid
     * @return string
     */
    static function userLastSlotId($uid){
        return "USER_LASTSLOTID:{$uid}";
    }

    /**
     * Notes:老虎机权重系数配置
     * User: wsc
     * Time: 2021/2/25 16:02
     * @param $type string
     * @return string
     */
    static function slotCoefficientCfg($type)
    {
        return "CONFIG_SLOTCOEFFICIENT:{$type}";
    }

    /**
     * 新进用户消耗体力值
     * @return string
     * Created by: Owen
     * Created on: 2021/2/24 16:42
     */
    static public function NewUserSpins($uid){
        return "NEWUSERSPINS:{$uid}";
    }

    /**
     * 用户注册版本
     * @return string
     * Created by: Owen
     * Created on: 2021/2/24 16:42
     */
    static public function UserRegVersion($uid){
        return "USERREGVERSION:{$uid}";
    }

    /**
     * 偷结果配置
     * @param $type
     * @return string
     * Created by: Owen
     * Created on: 2021/2/27 16:28
     */
    static function stealRetCfg($type){
        return "CONFIT_STEALRETCONFIG:{$type}";
    }

    /**
     * 锦标赛 + 超级收集活动 进度支付总金额统计
     * @return string
     * Created by: Hss
     * Created on: 2021/2/1 17:28
     */
    static function rankCollectPaySta($aid = '',$type = '',$rid = 0,$stage = 0){
        return "RANKCOLLECTPAYSTA:{$aid}-{$type}-{$rid}-{$stage}";
    }

    /**
     * 锦标赛 + 超级收集活动 进度支付前体力数值统计
     * @return string
     * Created by: Hss
     * Created on: 2021/2/1 17:28
     */
    static function rankCollectSpinsSta($aid = '',$type = '',$rid = 0,$stage = 0){
        return "RANKCOLLECTSPINSSTA:{$aid}-{$type}-{$rid}-{$stage}";
    }

    /**
     * 锦标赛 + 超级收集活动 进度支付每层首次付费进度数值统计
     * @return string
     * Created by: Hss
     * Created on: 2021/2/1 17:28
     */
    static function rankCollectNumSta($aid = '',$type = '',$rid = 0,$stage = 0){
        return "RANKCOLLECTNUMSTA:{$aid}-{$type}-{$rid}-{$stage}";
    }

    /**
     * 锦标赛 活动期间消耗体力
     * type null锦标赛累计 rank-up锦标赛进度 super_collect-up超级收集进度
     * @return string
     * Created by: Hss
     * Created on: 2021/2/1 17:28
     */
    static function rankConsumeSta($aid = '',$type = '',$rid = 0,$stage = 0){
        if($type){
            return "RANKCONSUMESTA:{$aid}-{$type}-{$rid}-{$stage}";
        }else{
            return "RANKCONSUMESTA:{$aid}-{$rid}";
        }
    }

    /**
     * 通信证活动体力消耗
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/3/4 20:16
     */
    static function TrafficPermitSpendSpins($uid){
        return "TRAFFICPERMITSPENDSPINS:{$uid}";
    }

    /**
     * 系统邮件
     * @return string
     */
    static function sysMailMsg() {
        return "SYSMAILMSGS";
    }

    /**
     * 玩家系统邮件读取状态
     * @param int $uid
     * @return string
     */
    static function sysMsgGet($uid = 0) {
        return "SYSMSGGOT:{$uid}";
    }

    /**
     * 钻石钻体力系统邮件读取/领取状态
     * @param int $uid
     * @return string
     */
    static function sysMsgGetN($uid = 0){
        return "SYSMSGGOTN:{$uid}";
    }

    /**
     * 钻石钻体力系统邮件开关
     * @param int $uid
     * @return string
     */
    static function sysMsgGetNSatus(){
        return "SYSMSGGOTT";
    }
    
    /**
     * 玩家所在地区国家码
     * @param int $uid
     * @return string
     */
    static function useraddress($uid = 0) {
        return "UADDRESS:{$uid}";
    }

    static function TreasureSpend($aid){
        return "TREASURESPEND:{$aid}";
    }
    /**
     * Notes:用户四选一活动活动信息
     * User: wsc
     * Time: 2021/3/5 17:57
     * @param $uid
     * @param $aid
     * @return string
     */
    static function easterEggInfo($uid,$aid){
        return "ACTUSER_EASTEREGG_INFO:{$aid}:{$uid}";
    }

    /**
     * Notes:四选一活动游戏日志
     * User: wsc
     * Time: 2021/3/8 12:19
     * @return string
     */
    static function easterEggGameLog(){
        return "LOGS_ACTIVITY_EASTEREGG";
    }
    /**
     * 玩家每日宝箱购买进度
     * @param int $uid
     * @return string
     */
    static function userDailyChest($uid) {
        return "UDAILYCHEST:{$uid}";
    }

    /**
     * 每日宝箱配置
     * @return string
     */
    static function dailyChest($uid) {
        return "DAILYCHEST:{$uid}";
    }

    /**
     * 每日宝箱下一次可购买时间
     * @param int $uid
     */
    static function daliyChestNextTime($uid) {
        return "CHESTLAST:{$uid}";
    }

    /**
     * 每日宝箱购买情况统计
     * @param int $day
     * @return string
     */
    static function daliyChestLog($day = 0) {
        return "DALIYCHESTLOG:{$day}";
    }

    /**
     * fb 信息
     * @param $token
     * @return string
     * Created by: Owen
     * Created on: 2021/3/10 15:52
     */
    static function FbInfoByToken($token){
        return "FBINFOBYTOKEN:{$token}";
    }

    /**
     * adjust ID
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/3/11 18:02
     */
    static function AdjustDeviceID($uid){
        return "ADJUSTDEVICEID:{$uid}";
    }

    /**
     * adjust 数据
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/3/11 18:02
     */
    static function AdjustData($deviceID){
        return "ADJUSTDATA:{$deviceID}";
    }

    /**
     * adjust再归因 数据
     * @param $deviceID
     * @return string
     */
    static function AdjustBackData($deviceID){
        return "ADJCDATA:{$deviceID}";
    }

    /**
     * adjust 邀请状态检测
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/3/11 18:26
     */
    static function AdjustInviteStatus($uid){
        return "ADJUSTINVITESTATUS:{$uid}";
    }

    /**
     * adjust再归因 邀请状态检测
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/3/11 18:26
     */
    static function AdjustBackInviteStatus($uid){
        return "ADJUSTINVCST:{$uid}";
    }

    /**
     * Notes:用户缓存的已展示的卡片列表(尚未得到,但已确定) list
     * User: wsc
     * Time: 2021/3/12 15:34
     * @param $uid
     * @return string
     */
    static function userCacheShowCardList($uid){
        return "USERCACHE_SHOWCARDLIST:{$uid}";
    }

    /**
     * 被邀请者绑定FB记录到邀请者
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/3/12 12:15
     */
    static function inviteBindFb($uid){
        return "INVITEBINDFB:{$uid}";
    }

    /**
     * 定时推送
     * @param $from
     * @return string
     * Created by: Owen
     * Created on: 2021/3/15 20:23
     */
    static function PushCrontab($from){
        return "PUSHCRONTAB:{$from}";
    }

    /**
     * 宠物技能使用限制
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/3/19 17:19
     */
    static function PetSkillToday($uid){
        return "PUSHCRONTAB:{$uid}";
    }

    /**
     * 邀请方领取奖励之后~~如果被邀请方是FB给被邀请方奖励,不是就弹出绑定邀请
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/3/23 12:24
     */
    static function InviteeFbReward($uid){
        return "INVITEEFBREWARD:{$uid}";
    }
    //召回礼包
    static function callbackGift(){
        return "GIFT_CALLBACK";
    }

    static function ActivityFlushMsgLock($aid,$uid){
        return "ACT_FLUSH_MSG_LOCK:{$aid}:{$uid}";
    }

    //商品活动添加缓存，防止找不到活动信息不发货bug
    static function activityShopCache($uid, $type = 'choose_one') {
        return "ACHE:{$type}:{$uid}";
    }

    /**
     * 基金补签
     * @param $aid
     * Created by: Owen
     * Created on: 2021/4/6 13:10
     */
    static function FundReissue($aid){
        return "FUNDREISSUE:{$aid}";
    }


    static function CoinsValueSta($type = ""){
        return "COINSVALUESTA{$type}";
    }
    //用户小玩法收集信息hash key
    static function activityUserCollectChangeInfo($uid,$aid){
        return "ACT_USER_CCINFO:{$aid}:{$uid}";
    }
    //最后一次绑定crazy_bet活动的时间
    static function lastBindActCrazyBet($uid){
        return "ACT_USER_BINGCB:{$uid}";
    }

    static function SharePointListConfig(){
        return "SHAREPOINTLISTCONFIG";
    }
    //偷钱比例配置
    static function stealRaticProCfg(){
        return "STEAL_RATIC_PRO_CFG";
    }

    /**
     * 连续登陆时间
     * @param $uid
     * @return string
     * Created by: Owen
     * Created on: 2021/5/11 10:58
     */
    static function ContinuityLoginDays($uid){
        return "CONTINUITYLOGINDAYS:{$uid}";
    }


    //============打相关=========

    /**
     * Notes:用户被打次数
     * User: wsc
     * Time: 2021/7/28 12:10
     * @param $date
     * @param $uid
     * @return string
     */
    static public function UserBeAttackLimit($date,$uid){
        $key = $uid % 24;
        return "USERATTACKEDNUM:{$date}:{$key}";
    }

    /**
     * Notes:用户被打保护时间
     * User: wsc
     * Time: 2021/7/28 12:12
     * @param $date
     * @param $uid
     * @return string
     */
    static public function AttackProtectDayList($date,$uid )  {
        $key = $uid % 24;
        return "ATTACKPROTECTDAYLIST:{$date}:{$key}";
    }

    /**
     * Notes:默认攻击对象 uid=>toUid
     * User: wsc
     * Time: 2021/7/28 12:27
     * @param $uid
     * @return string
     */
    static public function DefaultEnemy($uid){
        return "DEFAULTENEMY:{$uid}";
    }

    /**
     * Notes:随机攻击对象
     * User: wsc
     * Time: 2021/8/13 15:19
     * @param $uid
     * @return string
     */
    static function randAttacker($uid){
        return "RAND_ATTACK:{$uid}";
    }

    /**
     * Notes:用户当日随机到好友的次数 hash [fid=>次数,...]
     * User: wsc
     * Time: 2021/8/13 14:31
     * @param $uid
     * @return string
     */
    static function userTadayAttackFriendLog($uid){
        return "USER_TODAY_ATTACKFRIEND_LOG:{$uid}";
    }
    /**
     * Notes:仇人列表 hash touid=>time
     * User: wsc
     * Time: 2021/7/28 12:28
     * @param $uid
     * @return string
     */
    static public function NewEnemyID($uid){
        return 'NEWENEMYID:'.$uid;
    }

    /**
     * Notes:最新版复仇列表
     * User: wsc
     * Time: 2021/8/17 20:57
     * @param $uid
     * @return string
     */
    static function NewEnemyUidList($uid){
        return "NEWENEMY_UIDLIST:{$uid}";
    }

    /**
     * Notes:被打者锁定打人者
     * User: wsc
     * Time: 2020/4/1 15:46
     * @param $uid
     * @return string
     */
    static public function beAttactLock($uid){
        return "BEATTACTLOCK:".$uid;
    }

    /**
     * 可被攻击盾牌池子
     * @param  string
     * @return string
     * Created by: Owen
     * Created on: 2020/8/21 15:16
     */
    static function AttackShieldList($lv){
        return "NEW_ATTACKSHIELDLIST:$lv";
    }
    /**
     * 可被攻击盾牌备选池子
     * @param  string
     * @return string
     * Created by: Owen
     * Created on: 2020/8/21 15:16
     */
    static function AttackShieldBFList($lv){
        return "ATTACKSHIELDBFLIST:$lv";
    }

    static function attackShieldCache($uid){
        return "ATTACK_SHIELD_CHCHE:{$uid}";
    }

    /**
     * 1+1礼包购买标识
     * @param  string
     * @return string
     * Created by: Hss
     * Created on: 2021/8/09 12:13
     */
    static function onePlusGiftBuyStatus(){
        return "ONEPLUSGIFTBUGSTATUS";
    }

    /**
     * 1+1礼包购买累计
     * @param  string
     * @return string
     * Created by: Hss
     * Created on: 2021/8/09 12:13
     */
    static function onePlusGiftBuyNum(){
        return "ONEPLUSGIFTBUYNUM";
    }


    /**
     * 惊喜礼包购买标识
     * @param  string
     * @return string
     * Created by: Hss
     * Created on: 2021/8/13 12:13
     */
    static function safeSurpriseBuyStatus(){
        return "SAFESURPRISEBUYSTATUS";
    }

    /**
     * 卡片推送记录
     * @param  string
     * @return string
     * Created by: Hss
     * Created on: 2021/8/16 15:17
     */
    static function cardSendlog($uid = 0,$toUid = 0){
        return "cardSendlog:{$uid}-{$toUid}";
    }

    /**
     * 收集活动 累计预设消耗体力 & 累计预设分数
     * @param  string
     * @return string
     * Created by: Hss
     * Created on: 2021/8/28 12:12
     */
    static function getCollectSumNum($aid = 0){
        return "GETCOLLECTSUMNUM;{$aid}";
    }

    //收集活动 累计消耗体力
    static function getCollectActSpins($aid = 0){
        return "GETCOLLECTACTNUM:{$aid}";
    }

    //收集活动 累计获取
    static function getCollectActAdd($aid = 0){
        return "GETCOLLECTACTADD:{$aid}";
    }



    /**
     * Notes:老虎机体力反比配置
     * User: xwy
     * Time: 2021/8/28 16:02
     * @param $type string
     * @return string
     */
    static function slotSpinsReturnRateCfg($type)
    {
        return "SLOT_SPINS_RETURN_RATE:{$type}";
    }

    /**
     * Notes:收集活动卡点配置
     * User: xwy
     * Time: 2021/8/30 17:02
     * @param $type string
     * @return string
     */
    static function slotFreezePointCfg($type)
    {
        return "SLOT_FREEZE_POINT:{$type}";
    }

    /**
     * Notes:收集活动卡点配置最小触发层级
     * User: xwy
     * Time: 2021/8/30 17:02
     * @param $type string
     * @return string
     */
    static function slotFreezePointMinStage()
    {
        return "SLOT_FREEZE_POINT:MIN_STAGE";
    }

    static function userFruitGameInfo($uid){
        return "USER_FRUIT_GAMEBASEINGO:{$uid}";
    }

    static function ridRefreshStatus($uid, $aid){
        return "SLOT_RID_REFRESH_STATUS:{$uid}-{$aid}";
    }

    static function foxRealTimeOnlineKey(){
        return 'USERONLINESET';
    }
    static function foxOnlineSummaryKey($date){
        return 'FOXONLINE_SUMMARY:'.$date;
    }

    //最大可偷金币配置
    static function stealMaxMoney(){
        return "STEAL_COIN_CONF";
    }
    /**
     * 活动图片资源目录配置
     * @param $uid
     * @return string
     * Created by: Hss
     * Created on: 2020/8/14 15:18
     */
    static function ActiveImgNameConfig(){
        return "ACTIVEIMGNAMECONFIG";
    }
    //拼图个人信息
    static function ActivityCollectJigswUserStageInfo($uid,$aid){
	    return "ACT_COLLECTJIASW_USER_STAGEINGO:{$uid}_{$aid}";
    }
    //用户每日次数记录
    static function userDayLimit($uid){
        return "USER_DAY_LIMIT:{$uid}";
    }
    //旋转白名单
    static function slotWhileList(){
        return "SLOTWHITELIST";
    }
    //数据事件名
    static function ssEventsList(){
        return "SS_EVENTS_LIST";
    }
    //用户游戏好友首页缓存
    static function userIndexFriends($uid){
        return "friend_game_{$uid}_1";
    }
    //fox-直接发奖失败的队列
    static function sendErrLog(){
        return "REISSUEREWARDLOG";
    }
    static function waitRankEndReward($uid,$type=""){
        if(!$type){
            return "ACT_USER_RANK_AWARDTIME:{$uid}";
        }
        return "ACT_USER_RANK_AWARDTIME:{$uid}-{$type}";
    }
    static function activityOnlineMultiOpen($type){
        return "CONF_ACTICITY_ONLINE_MULTI_OPEN:{$type}";
    }
    public static function TreasureBetCache($aid,$uid){
        return "treasure_bet_{$aid}_{$uid}";
    }
    public static function activityUserStageKey($uid,$aid){
        return "USER:STAGE:{$aid}:{$uid}";
    }
    static function avatarConfig(){
        return "AvatarConfig";
    }
    static function userCardList($uid){
        return "USER_CARD_LIST:{$uid}";
    }
    static function cardGroupRevLog($uid,$type=1){
        return "CardOrGroupRewarded:{$uid}:{$type}";
    }
}
