<?php

class errorCode {
    /*
    |--------------------------------------------------------------------------|
    | 变量名称    |   变量值 (版本兼容错误码要求小于0，大于0皆为成功)      | 注释                   |
    |--------------------------------------------------------------------------|
    */
    const SUCCESS = 1; // 请求成功


    const REQUEST_PARAM_ERROR    = -1;               // 请求参数错误
    const SYSTEM_ERROR           = -1000;            // 系统异常
    const UNAUTHORIZED_REQUEST   = -1001;            // 未经授权的请求,Token错误
    const API_TIME_EXPIRED       = -1002;            // Token过期
    const API_FREQUENT_REQUESTS  = -1003;            // 接口频繁请求
    const FB_TOKEN_ERROR         = -1004;            // FB Token 异常
    const DIAMOND_NOT_ENOUGH     = -1005;            // 钻石不足
    const MONEY_NOT_RNOUGH       = -1006;            //金币不足
    const LEVEL_NOT_RNOUGH       = -1007;            //等级不足
    const LIMIT_NOT_RNOUGH       = -1008;            //次数不足
    const PROP_NOT_RNOUGH        = -1009;            //道具不足
    const CONDITION_NOT_RNOUGH   = -1010;            //条件不足
    const RATE_NOT_RNOUGH        = -1011;            //进度不足
    const OVER_RECEIVE_REWARD    = -1012;            //已经领取
    const NONE_REWARD            = -1013;            //无奖励可领取

    const USER_NOT_EXISTS        = -1020;            //玩家信息不存在
    const NOT_MY_FRIEND          = -1030;            //不是我的好友
    const NOT_FOUND_ACTIVITY     = -1031;            //活动不存在
    const NOT_FOUND_GOODINFO     = -1032;            //商品信息不存在
    const NOT_CALLBACK_FRIEND    = -1040;            //不在邀请的好友里

    const NOT_OPEN               = -2001;            //暂未开放
    const REPET_REWRD            = -2002;            //重复领奖

    const RESURRECTION_CONFIG_ERROR             = -10001;        // 矿工游戏复活配置异常
    const TODAY_NO_PLAY_MINING_GAME             = -10002;        // 矿工游戏当天未进行游戏
    const MINING_GAME_STAGE_REWARDED            = -10003;        // 矿工游戏阶段奖励已领取过
    const MINING_GAME_STAGE_REWARD_CONFIG_ERROR = -10004;        // 矿工游戏阶段奖励配置异常

    const LUCKYDRAWBYDIAMOND_CONFIG_ERROR       = -10005;        // 钻石夺宝配置异常
    const SHARELINK_TIME_EXPIRED                = -10006;        // 奖励链接过期
    const SHARELINK_USER_LIMIT                  = -10007;        // 奖励链接，不在指定用户里
    const EXCHANGCODE_USER_LIMIT                = -10008;        // 兑换码，不在指定用户里
    const GIFT_EMPTY_ERROR                      = -10009;        // 礼包空
    const GIFT_UID_ERROR                        = -10010;        // 礼包用户异常
    const GIFT_REWARD_ERROR                     = -10011;        // 礼包领取异常
    const SYNCIOSSUBSCRIBE_TRANSACTIONID_ERROR  = -10012;        // 订阅同步-交易号ID异常
    const SYNCIOSSUBSCRIBE_ORDER_ERROR          = -10013;        // 订阅同步-交易单异常
    const SYNCIOSSUBSCRIBE_UID_ERROR            = -10014;        // 订阅同步-用户ID异常
    const STEELSAFE_REWARDED                    = -10015;        // 保险柜-已经领取过奖励
    const STEELSAFE_PROGRESS_ERROR              = -10016;        // 保险柜-未达进度标准
    //帮助好友维修损坏建筑
//    const HELP_REPAIR_NOT_MY_FRIEND             = -10301;        // 不是我的好友，不能帮维修
//    const HELP_REPAIR_DAY_TIME_LIMIT            = -10302;        // 一天只能帮一个好友维修
//    const HELP_BEREPAIR_DAY_TIME_LIMIT          = -10303;        // 一天只能被一个好友维修
//    const HELP_REPAIR_HIGHER_LEVEL              = -10304;        // 不能帮比自己等级高的好友维修建筑

    //召回好友
    const CALLBACK_FRIEND_LEVEL_LOW             = -10320;        // 低等级好友不支持召回
    const CALLBACK_FRIEND_DAYS_LIMIT            = -10321;        // 超过15天未登录的玩家才能被召回
    const CALLBACK_FRIEND_DAY_ALREADY           = -10322;        // 该好友当天已经召回过了
    const CALLBACK_FRIEND_ONLY_FB               = -10323;        // 召回只支持fb玩家

    //好友数量进度奖励
//    const FRIEND_PROGRESS_REWARD_GOT            = -10342;        // 好友进度奖励已领
//    const FRIEND_PROGRESS_CONDITION_LIMIT       = -10343;        // 好友数量不满足领取该进度奖励

    const FREE_BAR_TTL_ERROR                    = -10017;         // 商店横条已领取过
}
