package common import ( "crypto/md5" "encoding/hex" "sort" "strings" "time" ) const ( //============= 数据库别名 ================ MYSQL_ALIAS_DEFAULT_DB = "default" // APP主库别名 - 默认库 MYSQL_ALIAS_MASTER_WRITE_DB = "master" // APP主库别名 MYSQL_ALIAS_APP_READ_ONLY_DB = "master-ro" // 主库只读 MYSQL_ALIAS_ACTIVITY_DB = "activity" // 活动库别名 MYSQL_ALIAS_LOG_DB = "data" // 日志库别名 MYSQL_ALIAS_SPREAD_DB = "spread" // 推广库别名 MYSQL_ALIAS_OPERATION_DB = "admin" // 后台 MYSQL_ALIAS_LINK_DB = "link" // 短链接 MYSQL_ALIAS_TEAM_DB = "team" // 短链接 ) const ( //============= 通用 ============== EXPORT_MAX_ROW = 65000 REGISTER_ROOM_NOTICE_CLOSE = "STR_REGISTER_ROOM_NOTICE_CLOSE" //iOS的bundleID APP_IOS_BUNDLE_ID = "com.laichuangjiutian.ayou" // 时间格式 TimeDefaultFormat = "Y-m-d H:i:s" // 默认日期 DateDefaultFormat = "Y-m-d" //post请求 HTTP_METHOD_POST = "POST" // 消费单位名称 CONSUME_UNIT_NAME = "钻石" // 收益单位名称 REVENUE_UNIT_NAME = "猫粮" // 收益单位名称 N_COIN_UNIT_NAME = "N币" // 钻石打赏到收益比例 // DIAMOND_DASHANG_TO_REVENUE = 0.7 // 守护收益比率 // CHATROOM_GUARD_RATE = 0.7 // 订单收益比率 // SKILL_ORDER_RATE = 0.8 //试营业期间护航单猫粮比例 SKILL_FREE_PILOT_RUN_ORDER_RATE = 1.0 //试运行结束日期 SKILL_FREE_PILOT_RUN_ORDER_END_DATE = "2025-09-17 20:00:00" //正式营业期护航单猫粮比例 SKILL_FREE_ORDER_RATE = 0.75 // 魅力值对应现金 REVENUE_TO_CASH = 0.1 //N币对应现金 NCoin_TO_CASH = 0.1 // 现金兑换钻石 CASH_TO_DIAMOND = 10 SKILL_ORDER_RATE_NCoin = 0.9 // 每次最大提现金额 CHARM_WITHDRAW_MAX_CASH = 50000 // 每次最小提现金额 CHARM_WITHDRAW_MIN_CASH = 10 // NCoin_WITHDRAW_MAX_CASH 每次最大提现金额 NCoin_WITHDRAW_MAX_CASH = 50000 // NCoin_WITHDRAW_MIN_CASH 每次最小提现金额 NCoin_WITHDRAW_MIN_CASH = 10 // 提现手续费 2% CHARM_WITHDRAW_SERVICE_FEE = 0.02 // 认证方式 芝麻认证 CERTIFY_TYPE_ZHIMA = "1" // 认证方式 人工认证 CERTIFY_TYPE_RENGONG = "2" // 认证方式 支付宝认证 CERTIFY_TYPE_ALI = "3" // 认证方式 阿里三要素认证 CERTIFY_TYPE_ALI_3 = "4" // 认证方式 阿里二要素认证 CERTIFY_TYPE_ALI_2 = "5" // 认证方式 易盾人身核验认证 CERTIFY_TYPE_NETEASE = "6" // 广告资源位代码 聊天室首页顶部 POSITION_CODE_CHATROOM_HOME_TOP = "chatroom_home_top" // 广告资源位代码 启动页 POSITION_CODE_START_UP_PAGE = "start_up_page" // 广告资源位代码 APP首页顶部 POSITION_CODE_APP_HOME_TOP = "app_home_top" // 广告资源位代码 首页弹窗 POSITION_CODE_HOME_POPUP = "home_pop_up" // 一个身份证最多认证几个帐号 CERTNO_AUTH_MAX_USER_COUNT = 1 // 一个设备最多注册几个帐号 DEVICE_SIGNUP_MAX_USER_COUNT = 5 // 日志引用符号 LOG_QUOTE_STRING = "#" // 被邀请的用户最多可以给邀请人奖励多少钻石 INVITED_USER_REWARDS_MAX_DIAMOND = 2000 // 聊天室字体颜色 - 黄色 CHATROOM_SYSTEM_MSG_COLOR_YELLOW = "#FFD700" // 聊天室字体颜色 - 绿色 CHATROOM_SYSTEM_MSG_COLOR_GREEN = "#8ADE4D" // 聊天室字体颜色 - 系统栏 CHATROOM_SYSTEM_MSG_COLOR_SYSTEM_BLUE = "#43EAE1" // 聊天室字体颜色 - 紫色 CHATROOM_SYSTEM_MSG_COLOR_PURPLE = "#E031FE" // 默认等级的背景颜色 SKILL_LEVEL_DEFAULT_BG_COLOR = "#FFD700" // 聊天室字体颜色 - 蓝色 CHATROOM_SYSTEM_MSG_COLOR_BLUE = "#25C6FD" // 聊天室字体颜色 - 青色 CHATROOM_SYSTEM_MSG_COLOR_QING = "#00FFCC" // 聊天室字体颜色 - 白色 CHATROOM_SYSTEM_MSG_COLOR_WHITE = "#FFFFFF" //IM用户分组 消息列表顶部 IM_USER_GROUP_TYPE_LIST_TOP = "ListTop" // 订单前缀 //RECHARGE_ORDER_PREV = "NN_" // 用户账本 业务类型 USER_JOURNAL_ACTION_TYPE_XIAOFEI = "1" // 消费 USER_JOURNAL_ACTION_TYPE_SHOURU = "2" // 收入 USER_JOURNAL_ACTION_TYPE_CHONGZHI = "3" // 充值 USER_JOURNAL_ACTION_TYPE_OPERATION_CONTROL = "4" // 运营控制 USER_JOURNAL_ACTION_TYPE_AGENT_TRANSFER = "5" // 代理转移 // 用户账本 业务ID user_journal_type表 USER_JOURNAL_TYPE_ID_CHATROOM_DASHANG_XIAOFEI = "301" // 聊天室打赏消费 USER_JOURNAL_TYPE_ID_XIADAN_XIAOFEI = "302" // 下单消费 USER_JOURNAL_TYPE_ID_TIMELINE_DASHANG_XIAOFEI = "303" // 动态打赏消费 USER_JOURNAL_TYPE_ID_BUY_GUARD_XIAOFEI = "304" // 守护消费 USER_JOURNAL_TYPE_ID_CHATROOM_DASHANG_SHOURU = "401" // 聊天室打赏收入 USER_JOURNAL_TYPE_ID_XIADAN_SHOURU = "402" // 下单收入 USER_JOURNAL_TYPE_ID_TIMELINE_DASHANG_SHOURU = "403" // 动态打赏收入 USER_JOURNAL_TYPE_ID_SALE_GUARD_SHOURU = "404" // 守护收入 USER_JOURNAL_TYPE_ID_ROOM_COMMISSION_SHOURU = "405" // 流水结算收入 USER_JOURNAL_TYPE_ID_CHONGZHI = "501" // 用户充值 USER_JOURNAL_TYPE_ID_INVITE_FRIEND_JIANGLI = "502" // 邀请好友奖励充值 USER_JOURNAL_TYPE_ID_OPERATION_GIVE = "503" // 运营赠送充值 USER_JOURNAL_TYPE_ID_OPERATION_REDUCE_REVENUE = "601" // 运营扣除收益 USER_JOURNAL_TYPE_ID_OPERATION_REDUCE_DIAMOND = "602" // 运营扣除钻石 USER_JOURNAL_TYPE_ID_AGENT_TRANSFER_IN = "507" // 代理转入 //============ 订单相关 ============== // 未支付订单多久过期(分钟) NOT_PAID_ORDER_EXPIRE_MINUTES = 10 // 已结束多久自动完成(小时) ORDER_ENDED_AUTO_FINISH_HOURS = 24 // 已申请退款多久自动退款(小时) ORDER_REFUNDING_AUTO_REFUND_HOURS = 24 // 订单消息 消息里用户身份 1=买家 2=卖家 MESSAGE_ORDER_USER_TYPE_BUYER = "1" MESSAGE_ORDER_USER_TYPE_SELLER = "2" // 订单支付状态 未支付 ORDER_PAY_STATUS_UNPAY = "0" // 订单支付状态 已支付 ORDER_PAY_STATUS_PAID = "1" // 订单支付状态 已退款 ORDER_PAY_STATUS_REFUND = "2" // 订单原始状态 已下单待支付 ORDER_ORIGIN_STATUS_CREATED_WAIT_PAY = "1" // 订单原始状态 已支付待接单 ORDER_ORIGIN_STATUS_PAID_WAIT_SELLER_AGREE = "2" // 订单原始状态 已接单 ORDER_ORIGIN_STATUS_SELLER_AGREED = "3" // 订单原始状态 已完成 ORDER_ORIGIN_STATUS_FINISHED = "4" // 订单原始状态 退款中 ORDER_ORIGIN_STATUS_REFUNDING = "5" // 订单原始状态 申诉中 ORDER_ORIGIN_STATUS_IN_APPEAL = "6" // 订单原始状态 申诉失败 订单完成 ORDER_ORIGIN_STATUS_APPEAL_FAILED = "8" // 订单原始状态 支付前买家取消 ORDER_ORIGIN_STATUS_UNPAY_BUYER_CANCELED = "20" // 订单原始状态 10分钟未支付自动过期 ORDER_ORIGIN_STATUS_UNPAY_AUTO_EXPISED = "21" // 订单原始状态 支付后买家取消 ORDER_ORIGIN_STATUS_PAID_BUYER_CANCELED = "22" // 订单原始状态 支付后卖家未接单 自动取消 ORDER_ORIGIN_STATUS_PAID_SELLER_NOT_AGREE_AUTO_CANCELED = "23" // 订单原始状态 卖家拒绝接单 ORDER_ORIGIN_STATUS_SELLER_REJECTED_ORDER = "24" // 订单原始状态 卖家同意退款 ORDER_ORIGIN_STATUS_SELLER_AGREE_REFUND = "25" // 订单原始状态 申诉成功取消并退款 ORDER_ORIGIN_STATUS_APPEAL_SUCCESS_CANCELED = "26" // 订单原始状态 买家申请退款卖家超时未处理自动取消 ORDER_ORIGIN_STATUS_REFUNDING_EXPIRED_AUTO_CANCELED = "27" //PayOrder = 支付订单 CancelOrder = 取消订单 AgreeOrder= 同意接单 RefuseOrder=拒绝接单 FinishOrder = 确认完成 RequestRefund=请求退款 AgreeRefund=同意退款 RefuseRefund=拒绝退款 // 订单操作 创建订单 ORDER_ACTION_CREATE_ORDER = "CreateOrder" // 订单操作 支付订单 ORDER_ACTION_PAY_ORDER = "PayOrder" // 订单操作 取消订单 ORDER_ACTION_CANCEL_ORDER = "CancelOrder" // 订单操作 卖家同意接单 ORDER_ACTION_AGREE_ORDER = "AgreeOrder" // 订单操作 卖家完成一局 ORDER_ACTION_SUB_COMPLETE_ORDER = "SubCompleteOrder" // 订单操作 买家续单 ORDER_ACTION_RENEW_ORDER = "RenewOrder" // 订单操作 卖家开始陪玩 ORDER_ACTION_START_ORDER = "StartOrder" // 订单操作 卖家拒绝接单 ORDER_ACTION_REJECT_ORDER = "RejectOrder" // 订单操作 买家完成订单 ORDER_ACTION_FINISH_ORDER = "FinishOrder" // 订单操作 提前结束 ORDER_ACTION_EARLY_END_ORDER = "EarlyEndOrder" // 订单操作 按局订单 陪玩结束 ORDER_ACTION_SELLER_END_ORDER = "SellerEndOrderByCount" // 订单操作 买家请求退款 ORDER_ACTION_REQUEST_REFUND = "RequestRefund" // 订单操作 卖家同意退款 ORDER_ACTION_AGREE_REFUND = "AgreeRefund" // 订单操作 卖家拒绝退款 ORDER_ACTION_REJECT_REFUND = "RejectRefund" // 订单操作 评价订单 ORDER_ACTION_RATE_ORDER = "RateOrder" // 订单操作 再次下单 ORDER_ACTION_ORDER_AGAIN = "ReCreateOrder" // 订单操作 申请售后 ORDER_ACTION_ORDER_SUPPORT = "ApplySupportOrder" // 订单操作 删除订单 ORDER_ACTION_ORDER_DEL = "DeleteOrder" // 订单操作 订单免单 ORDER_ACTION_ORDER_FREE = "FreeOrder" // 订单操作 联系售后 ORDER_ACTION_CONTACT_SUPPORT = "ContactSupport" // 订单操作 删除评价订单 ORDER_ACTION_DELETE_ORDER_RATE = "DeleteOrderRate" // 订单操作 删除订单 ORDER_ACTION_DELETE_ORDER = "DeleteOrder" // 订单操作 申诉 ORDER_ACTION_APPEAL_SUCCESS = "AppealSuccess" // 订单操作 申诉失败 ORDER_ACTION_APPEAL_FAIL = "AppealFail" //订单操作 增加单量 ORDER_ACTION_ADD_ORDER_COUNT = "AddOrderCount" //订单操作 减少单量 ORDER_ACTION_REDUCE_ORDER_COUNT = "ReduceOrderCount" //订单操作 进入房间 ORDER_ACTION_ENTER_ROOM = "EnterRoom" // 自动脚本订单操作 // 未付款自动过期 TASK_ORDER_ACTION_NOT_PAID_AUTO_EXPIRED = "NotPaidAutoExpired" // 已支付未接单自动过期 TASK_ORDER_ACTION_SELLER_NOT_AGREED_AUTO_EXPIRED = "SellerNotAgreedAutoExpired" // 自动完成 TASK_ORDER_ACTION_AUTO_FINISH = "OrderAutoFinish" // 自动退款 TASK_ORDER_ACTION_AUTO_REFUND = "OrderAutoRefund" //============ 技能相关 ============== // 用户技能状态-正常 SELLER_SKILL_STATUS_NORMAL = "1" SELLER_SKILL_STATUS_NORMAL_I = 1 // 技能申请状态 - 待审核 SELLER_SKILL_STATUS_WAIT_APPROVE = "2" // 用户技能状态-冻结 SELLER_SKILL_STATUS_FROZEN = "3" // 用户技能状态-拒绝 SELLER_SKILL_STATUS_REFUSE = "4" // 技能申请状态 - 已审核 SKILL_APPLY_STATUS_APPROVED = "1" // 技能申请状态 - 待审核 SKILL_APPLY_STATUS_WAIT_APPROVE = "2" // 技能申请状态 - 已拒绝 SKILL_APPLY_STATUS_REFUSED = "3" // 技能修改状态 - 已审核 SKILL_EDIT_STATUS_APPROVED = "1" // 技能申请状态 - 待审核 SKILL_EDIT_STATUS_WAIT_APPROVE = "2" // 技能申请状态 - 已拒绝 SKILL_EDIT_STATUS_REFUSED = "3" // 大神状态 正常 SELLER_STATUS_NORMAL = "1" // 大神状态 冻结 SELLER_STATUS_FROZEN = "0" // 大神状态 注销 SELLER_STATUS_DELETE = "2" // 用户接单状态-接单 SELLER_SERVICE_STATUS_OPEN = "1" // 用户接单状态-不接单 SELLER_SERVICE_STATUS_CLOSE = "0" // 是否大神 0=未申请过 IS_SELLER_NOT_APPLY_SKILL = "0" // 是否大神 1=是大神 IS_SELLER_IS_GOD = "1" // 是否大神 2=有待审核或被拒绝的 IS_SELLER_HAVE_WAIT_APPROVE_OR_REJECT = "2" // 是否大神 3=已冻结 IS_SELLER_FROZEN = "3" // ============ 微信支付交易类型 ============ // 公众号支付 WEIXIN_PAY_TRADER_TYPE_GONGZHONGHAO = "JSAPI" //APP支付 WEIXIN_PAY_TRADER_TYPE_APP = "APP" //H5支付 WEIXIN_PAY_TRADER_TYPE_H5 = "MWEB" //H5支付 WEIXIN_PAY_TRADER_TYPE_NATIVE = "NATIVE" // ============ 客户端平台 ============== //Android平台 CLIENT_PLATFORM_ANDROID = "Android" //iOS平台 CLIENT_PLATFORM_IOS = "iOS" //H5平台 CLIENT_PLATFORM_H5 = "H5" //PC CLIENT_PLATFORM_PC = "Windows" //H5密钥 // H5_CLIENT_SECRET = "x63363eacf804b4394a120aea240fd9a" //============= 域名相关 ======================== // 图片域名 PHOTO_DOMAIN_URL = "https://photo-app.ddegame.cn/" // 音视频域名 MEDIA_DOMAIN_URL = "https://media-qiniu-app.ddegame.cn/" // =========== 短信模板 ============== //submail验证码模板 VericodeSubmailTplId = "S6fgD3" // 订单支付给大神发短信 PayOrderToSellerSubmailTplId = "T7sX33" // 国际短信验证码 InterNationalVericodeTplId = "6OiZo3" // ========== 用户相关 ================ // 手机号注册 SIGNUP_SOURCE_APP_MOBILE = "1" // 微信注册 SIGNUP_SOURCE_APP_WEIXIN = "2" //QQ注册 SIGNUP_SOURCE_APP_QQ = "3" //H5注册 SIGNUP_SOURCE_WEB_H5 = "4" // 易盾一键注册 SIGNUP_SOURCE_YIDUN_ONECLICK = "5" //apple注册 SIGNUP_SOURCE_APPLE_SIGN = "6" // 热度基础值 HotBaseCount = 0 // 手机号 密码方式登录 SIGNIN_TYPE_MOBILE_PASSWORD = "1" //APP PC // 微信登录 SIGNIN_TYPE_WEIXIN = "2" //APP // QQ登录 SIGNIN_TYPE_QQ = "3" //APP // 验证码登录 SIGNIN_TYPE_VERICODE = "4" //APP PC H5 // 手机号或ID登录 SIGNIN_TYPE_MOBILE_OR_ID = "5" //H5 // 易盾一键登录 SIGNIN_TYPE_YIDUN_ONE_CLICK = "6" //APP // 苹果登录 SIGNIN_TYPE_APPLE_SIGNIN = "7" //APP // 用户状态 正常 USER_STATUS_NORMAL = "1" // 用户状态 冻结 USER_STATUS_FROZEN = "2" // 用户状态 注销申请中 USER_STATUS_DELETE_APPLYING = "3" // 用户状态 已注销 USER_STATUS_DELETED = "4" // 用户账户状态 冻结 USER_ACCOUNT_STATUS_FROZEN = "2" USER_ACCOUNT_DIAMOND_STATUS_FROZEN = "frozen" USER_ACCOUNT_CHARM_STATUS_FROZEN = "frozen" // 用户激活状态 已激活 USER_ACTIVE_STATUS_ACTIVED = "1" USER_ACTIVE_STATUS_ACTIVED_INT = 1 // 用户激活状态 未激活 USER_ACTIVE_STATUS_UNACTIVE = "2" // ============ 充值相关 ============== // 充值订单类型 1 = 钻石充值 FIN_RECHARGE_ORDER_TYPE_DIAMOND = "1" FIN_RECHARGE_ORDER_TYPE_N_COIN = "2" // 充值订单类型 3 = 钻石充值 FIN_RECHARGE_ORDER_TYPE_ORDER = "3" // 充值订单渠道 FIN_RECHARGE_ORDER_CHANNEL_APP_IOS = "1" // 充值订单渠道 APP-Android FIN_RECHARGE_ORDER_CHANNEL_APP_ANDROID = "2" // 充值订单渠道 微信公众号 FIN_RECHARGE_ORDER_CHANNEL_WX_PUBLIC_PLATFORM = "3" // 充值订单渠道 pc native 微信支付 FIN_RECHARGE_ORDER_CHANNEL_NATIVE_WEB = "4" // 充值订单渠道 H5 FIN_RECHARGE_ORDER_CHANNEL_H5_WEB = "5" // ============== 聊天室业务相关 ============== // 座位类型 黄金守护位 CHATROOM_SEAT_TYPE_GOLD_GUARD_SEAT = "1" // 座位类型 白银守护位 CHATROOM_SEAT_TYPE_SILVER_GUARD_SEAT = "2" // 座位类型 白银守护位 CHATROOM_SEAT_TYPE_BRONZE_GUARD_SEAT = "3" // 座位类型 老板位 CHATROOM_SEAT_TYPE_BOSS_SEAT = "4" // 座位类型 嘉宾位(陪陪位) CHATROOM_SEAT_TYPE_GOD_SEAT = "5" // 默认聊天室最大人数 DEFAULT_MAX_CHATROOM_MEMBER = "200" // 连击间隔时间 10秒 COMBO_HIT_GAP_SEC = 5 COMBO_HIT_GAP_TIME = time.Second * COMBO_HIT_GAP_SEC // 聊天室开启 Status CHATROOM_STATUS_OPENING = "1" // 聊天室关闭 Status CHATROOM_STATUS_CLOSED = "2" // 聊天室冻结 Status CHATROOM_STATUS_FREEZING = "0" // 陪玩模板ID TEMPLATE_ID_PEIWAN = "5001" // 交友模板ID TEMPLATE_ID_JIAOYOU = "5002" // 电台模板ID TEMPLATE_ID_DIANTAI = "5003" // 派单模板ID TEMPLATE_ID_PAIDAN = "5004" // 个人秀模板ID TEMPLATE_ID_USER_SHOW = "5005" // 小圈 TEMPLATE_ID_XIAOQUAN = "5006" // 频道 TEMPLATE_ID_PINDAO = "5007" // 闲聊大厅 TEMPLATE_ID_TALK = "5008" // 主持人的seatindex CHATROOM_MASTER_SEATINDEX = "master" // 频道boss位 1麦 CHATROOM_BOOS_SEATINDEX = "boss" CHATROOM_SEATINDEX_0 = "0" CHATROOM_SEATINDEX_1 = "1" CHATROOM_SEATINDEX_2 = "2" CHATROOM_SEATINDEX_3 = "3" CHATROOM_SEATINDEX_4 = "4" CHATROOM_SEATINDEX_5 = "5" CHATROOM_SEATINDEX_6 = "6" CHATROOM_SEATINDEX_7 = "7" CHATROOM_SEATINDEX_8 = "8" // 首页魅力榜IconUrl HOME_CHARM_TOP_ICON_URL = "" // 首页贡献榜IconUrl HOME_CONSUME_TOP_ICON_URL = "" // 连击累计达到多少有全服飞机 FULL_SERVICE_MSG_MIN_DIAMOND = 52000 FULL_SERVICE_MSG_MIN_N_COIN = 52000 // 重开房间的时间限制 REOPEN_CHATROOM_TIME_LIMIT = time.Second * 10 // 踢出房间的时间限制 KICKED_OUT_CHATROOM_TIME_LIMIT = time.Second * 300 // 踢出房间的消息内容 KICKED_OUT_CHATROOM_MSG = "被踢出房间5分钟" // 聊天室表情玩法类型 // 空的 = 普通表情 CHATROOM_EMOJI_GAME_TYPE_NORMAL = "" CHATROOM_EMOJI_GAME_TYPE_FOX_MACHINE = "fox_machine" // 随机结果 CHATROOM_EMOJI_GAME_TYPE_RAND = "rand" // 聊天室上麦类型 CHATROOM_UP_SEAT_TYPE_QUEUE = "1" // 排队(麦序模式) CHATROOM_UP_SEAT_TYPE_AUTO = "2" // 直接上麦(自由模式) CHATROOM_UP_SEAT_TYPE_CHAIR = "3" // 主席 // 个人房间TAB_ID PERSONAL_ROOM_TAB_ID = "10" // 情感房间TAB_ID EMOTION_ROOM_TAB_ID = "2" // 情感房间TAB_ID MUSIC_ROOM_TAB_ID = "5" EMOTION_BOY_ROOM_TAB_ID = "8" // ========== 系统帐号 ========== // 客服帐号 客服 SYSTEM_KEFU_USER_ID = "" // 聊天室消息管理员ID CHAT_ROOM_MANAGER_USER_ID = "34cc7185d0b60eacf38f616b8aad8c51" // 系统通知 用户ID SYSTEM_NOTICE_USER_ID = "x94b992dbb4e4dfca9c971200d797a02" // 官方公告 GUANFANG_GONGGAO_USER_ID = "xe0abc0405216b57d788453278e9a212" // 数据同步 用户ID SYNC_DATA_USER_ID = "xcee02f852184c37b1656ada378b0678" // 订单助手 用户ID ORDER_HELPER_USER_ID = "xcee02d852184c37b1656ada378b0789" // 派单中心 用户ID DISPATCH_ORDER_CENTER_USER_ID = "x83b992dbb4e4dfca9c971200d797a86" // 动态互动消息管理员ID TIMELINE_HUDONG_USER_ID = "xa3cc7185d0b60908d38f616b8aad8c8" //========== 交易业务类型 ===================== // 账户资金 出 BIZ_ACTION_TYPE_OUT = "2" // 账户资金 入 BIZ_ACTION_TYPE_IN = "1" BIZ_TYPE_N_COIN_IN_ORDER_RECHARGE = "102" BIZ_TYPE_ORDER_IN_ORDER_RECHARGE = "1011" BIZ_TYPE_SIGN = "213" //后台添加经验 BIZ_TYPE_ADMIN_OPERATION_ADD = "217" //########################################################################################## // 这部分属于钻石入帐相关的业务类型定义 //#####################################start##################################################### // 充值钻石 BIZ_TYPE_DIAMOND_IN_ORDER_RECHARGE = "101" BIZ_TYPE_DIAMOND_IN_AGENT_TRANSFER = "1071" // pc端导入 BIZ_TYPE_DIAMOND_IN_MOVE_IN = "131" // 米多多系统同步 BIZ_TYPE_DIAMOND_IN_MDD_MOVE_IN = "132" // 收益兑换钻石 BIZ_TYPE_DIAMOND_IN_REVENUE_EXCHANGE = "102" // 运营赠送钻石 BIZ_TYPE_DIAMOND_IN_OPERATION_ADD = "105" // 邀请好友增加钻石 BIZ_TYPE_DIAMOND_IN_INVITE_USER = "107" // 订单退款 BIZ_TYPE_DIAMOND_IN_SKILL_ORDER_REFUND = "108" // 考试订单免单 BIZ_TYPE_DIAMOND_IN_EAXM_ORDER_REFUND = "111" // 抢红包 BIZ_TYPE_DIAMOND_IN_RED_ENVELOPE_GET = "107" // 订单退回(提前结束订单等) BIZ_TYPE_DIAMOND_IN_ORDER_REFUND = "109" // 红包退回 BIZ_TYPE_DIAMOND_IN_RED_ENVELOPE_OVERDUE = "110" //抢红包 BIZ_TYPE_DIAMOND_IN_RED_ENVELOPE_GIVE = "140" //########################################end#################################################### // 这部分属于钻石出帐相关的业务类型定义 //########################################start################################################## // 聊天室打赏消费 消费钻石 BIZ_TYPE_DIAMOND_OUT_CHATROOM_DASHANG = "201" // 表情消费 BIZ_TYPE_DIAMOND_OUT_CHATROOM_BUY_EMOJI = "204" // 购买守护位 BIZ_TYPE_DIAMOND_OUT_BUY_GUARD_SEAT = "205" // 消耗钻石 BIZ_TYPE_DIAMOND_OUT_FIND_TREASURE = "206" // 消耗钻石 BIZ_TYPE_DIAMOND_OUT_HIT_EGG = "207" // 支付订单 BIZ_TYPE_DIAMOND_OUT_PAY_SKILL_ORDER = "208" // 购买头饰并开盒子 BIZ_TYPE_DIAMOND_OUT_BUY_AVATAR_DECORATION_FOR_OPEN_BOX = "209" // 聊天室赠送活动物品 消费钻石 BIZ_TYPE_DIAMOND_OUT_CHATROOM_PRESENT_ACTIVITY = "210" // 支付考试订单 BIZ_TYPE_DIAMOND_OUT_PAY_EXAM_ORDER = "211" // 商城下单 BIZ_TYPE_DIAMOND_OUT_MALL_ORDER = "212" // 修改昵称 BIZ_TYPE_DIAMOND_OUT_EDIT_NICKNAME = "214" // 发红包 BIZ_TYPE_DIAMOND_OUT_RED_ENVELOPE_GIVE = "215" // 运营扣除钻石 BIZ_TYPE_DIAMOND_OUT_OPERATION_REDUCE = "216" //充值单退款扣猫粮 BIZ_TYPE_DIAMOND_OUT_RECHANGE_REFUND = "217" // 动态打赏 钻石打赏 出 BIZ_TYPE_DIAMOND_OUT_TIMELINE = "318" BIZ_TYPE_DIAMOND_OUT_IM = "320" BIZ_TYPE_DIAMOND_OUT_USER_HOME = "324" //########################################end################################################## // 这部分属于猫粮入帐相关的业务类型定义 //########################################start################################################ // 收到聊天室打赏 得到魅力值 BIZ_TYPE_CHARM_IN_RECEIVE_CHATROOM_GIFT = "101" // 收到聊天室打赏 守护收益 BIZ_TYPE_CHARM_IN_RECEIVE_GUARD_REVENUE = "103" // 订单完成 收到收益 BIZ_TYPE_CHARM_IN_FINISH_SKILL_ORDER_REVENUE = "104" // 回退提现收益 BIZ_TYPE_CHARM_IN_WITHDRAW_RETURN = "105" // 回退提现收益 BIZ_TYPE_CHARM_IN_WITHDRAW_TIMELY_RETURN = "1051" // 运营赠送 BIZ_TYPE_CHARM_IN_OPERATION_GIVE = "106" // 后台付款单 BIZ_TYPE_CHARM_IN_PAYMENTAPPLY = "107" // PC端导入 BIZ_TYPE_CHARM_IN_MOVE_IN = "130" // 米多多转入 BIZ_TYPE_CHARM_IN_TRANSFER_IN = "132" // 动态打赏 钻石打赏 入 BIZ_TYPE_CHARM_IN_TIMELINE = "322" BIZ_TYPE_CHARM_IN_IM = "323" BIZ_TYPE_CHARM_IN_USER_HOME = "326" //########################################end################################################## // 这部分属于猫粮出帐相关的业务类型定义 //########################################start################################################ // 魅力值提现 BIZ_TYPE_CHARM_OUT_WITHDRAW_CHARM = "201" BIZ_TYPE_CHARM_OUT_WITHDRAW_CHARM_TIMELY = "2011" // 兑换钻石 BIZ_TYPE_CHARM_OUT_EXCHANGE_DIAMOND = "202" // 运营扣除 BIZ_TYPE_CHARM_OUT_OPERATION_REDUCE = "203" //订单退款扣除 BIZ_TYPE_CHARM_OUT_ORDER_REFUND_REDUCE = "204" BIZ_TYPE_CHARM_OUT_EXAM_ORDER_REFUND_REDUCE = "204" //########################################end################################################## // 回退提现N币 BizTypeCharmInWithdrawReturn = "1051" // 聊天室礼物盒 增加库存 砸蛋 BIZ_TYPE_GIFT_IN_HIT_EGG = "101" // 聊天室礼物盒 增加库存 兑换 BIZ_TYPE_GIFT_IN_EXCHANGE = "102" // 活动获取 BIZ_TYPE_GIFT_IN_ACTIVITY = "103" // 聊天室礼物盒 扣减库存 聊天室打赏 BIZ_TYPE_GIFT_OUT_CHATROOM_DASHANG = "201" // 动态打赏 钻石打赏 出 BIZ_TYPE_GIFT_OUT_TIMELINE = "319" BIZ_TYPE_GIFT_OUT_IM = "321" BIZ_TYPE_GIFT_OUT_USER_HOME = "325" PRESENT_TYPE_TIMELINE = "TIMELINE" // 动态打赏 PRESENT_TYPE_IM = "IM" // 消息打赏 PRESENT_TYPE_USER_HOME = "USER_HOME" // 主页打赏 //=============道具业务类型========== // vip升级获得 STOCK_BIZ_TYPE_IN_BY_VIP_UPDATE = "10" // 购买获得 STOCK_BIZ_TYPE_IN_BY_BUY = "11" // 获赠 STOCK_BIZ_TYPE_IN_BY_RECEIVED = "12" // 打赏获得 STOCK_BIZ_TYPE_IN_BY_DASHANG = "13" // 取消使用 STOCK_BIZ_TYPE_IN_BY_CANCEL_USE = "14" // 抽奖获得 STOCK_BIZ_TYPE_IN_BY_CHOUJIANG = "15" // 兑换获得 STOCK_BIZ_TYPE_IN_BY_EXCHANGE = "16" // 收到礼物获得 STOCK_BIZ_TYPE_IN_BY_RECEIVE_GIFT = "17" // 活动获得 STOCK_BIZ_TYPE_IN_BY_ACTIVITY = "18" // 积分兑换获得 STOCK_BIZ_TYPE_IN_BY_POINTS_BUY = "19" // 签到获得 STOCK_BIZ_TYPE_IN_BY_SIGN = "20" // 后台发放 STOCK_BIZ_TYPE_IN_BY_OPERATION = "21" // 赠送 STOCK_BIZ_TYPE_OUT_BY_GIVE = "21" // 使用 STOCK_BIZ_TYPE_OUT_BY_USE = "22" // 使用 STOCK_BIZ_TYPE_OUT_BY_LUCKBOX = "25" // 丢弃 STOCK_BIZ_TYPE_OUT_BY_DISCARD = "23" // 赠送 STOCK_BIZ_TYPE_OUT_BY_EXCHANGE = "24" // 商品类型 头饰 GOODS_TYPE_AVATAR_DECORATION = "TS" // 商品类型 座驾 GOODS_TYPE_ZUOJIA = "ZJ" // 商品类型 进入场景 GOODS_TYPE_ENTER_ROOM_SCENE = "ERS" // 商品类型 房间聊天气泡 GOODS_TYPE_ENTER_ROOM_CHAT_MESSAGE_BG = "RCMB" // 商品类型 道具 GOODS_TYPE_DAOJU = "DJ" // 穿上 GOODS_USE_ACTION_TYPE_WARE = "1" // 卸下 GOODS_USE_ACTION_TYPE_TAKE_OFF = "2" // 丢弃 GOODS_USE_ACTION_TYPE_DISCARD = "3" // 进入聊天室的消息数据类型 进入房间 CHATROOM_MESSAGE_DATA_TYPE_COME_IN = "1" // 进入聊天室的消息数据类型 离开房间 CHATROOM_MESSAGE_DATA_TYPE_LEAVE = "2" // 清除房间魅力值操作类型-清除全部 CLEAR_CHATROOM_CHARM_TYPE_ALL = "1" // 清除房间魅力值操作类型-清除某个人 CLEAR_CHATROOM_CHARM_TYPE_ONE_USER = "2" // 是否记录魅力值 CHATROOM_IS_RECORD_CHARM_YES = "1" //========== 系统通知的消息类型 ==================== //========= 点对点消息类型 =============== // 系统通知 P2P_MESSAGES_TYPE_SYSTEM_NOTICE = "104" // 官方公告 P2P_MESSAGES_TYPE_GUANFANG_GONGGAO = "105" // 订单助手 P2P_MESSAGES_TYPE_OEDER_HELPER = "106" // 派单中心 P2P_MESSAGES_TYPE_DISPATCH_ORDER = "107" // 互动消息 P2P_MESSAGES_TYPE_TIMELINE_HUDONG = "108" // 关系变化给被操作人发的消息 P2P_MESSAGES_TYPE_RALATION_CHANGED = "600" // 数据同步的自定义消息 P2P_MESSAGES_TYPE_DATA_SYNC = "608" // P2P消息显示格式 1=对话模式 P2P_MESSAGE_VIEW_TYPE_CHAT = "1" // P2P消息显示格式 2=hint P2P_MESSAGE_VIEW_TYPE_HINT = "2" // ========== 通知客户端同步数据的数据类型 ============ // 刷新余额(余额变化等通知客户端) SYNC_DATA_TYPE_USER_BALANCE = "sync_balance" // 刷新VIP (VIP升级后通知客户端) SYNC_DATA_TYPE_VIP_UPDATED = "vip_updated" // 进入房间 调度某人进入房间 SYNC_DATA_TYPE_ENTER_ROOM = "enter_room" // 用户信息更新 SYNC_DATA_TYPE_USER_UPDATE = "user_info_update" // 派单 收到新的派单 SYNC_DATA_TYPE_NEW_DISPATH_ORDER = "new_dispatch_order" // 派单 有人接单 SYNC_DATA_TYPE_DISPATH_TAKE = "dispatch_order_take" // 派单 有人取消接单 SYNC_DATA_TYPE_DISPATH_TAKE_CANCEL = "dispatch_order_take_cancel" // 派单 状态改变 SYNC_DATA_TYPE_DISPATH_STATE_CHANGE = "dispatch_order_state_change" // 派单 人数增加 SYNC_DATA_TYPE_DISPATH_USER_CNT_ADD = "dispatch_order_user_cnt_add" // 礼物 收到打赏 SYNC_DATA_TYPE_GIFT_RECEIVE_REWARD = "gift_receive_reward" //=========== 聊天室自定义消息类型 ==================== // 聊天室有随机结果的表情消息 CHATROOM_CUSTOME_MESSAGE_TYPE_EMOJI = "316" // 离开聊天室消息 CHATROOM_CUSTOME_MESSAGE_TYPE_LEAVE_ROOM = "301" // 关闭聊天室消息 CHATROOM_CUSTOME_MESSAGE_TYPE_CLOSE_ROOM = "302" // 聊天室打赏消息 普通打赏 CHATROOM_CUSTOME_MESSAGE_TYPE_PRESENT_GIFT_NORMAL = "303" // 聊天室打赏活动物品消息 CHATROOM_CUSTOME_MESSAGE_TYPE_PRESENT_ACTIVITY_MSG = "380" // 聊天室 全服通知动效 CHATROOM_CUSTOME_MESSAGE_TYPE_FULL_SCREEN_NOTICE_MSG = "381" // 聊天室打赏消息 交友打赏 CHATROOM_CUSTOME_MESSAGE_TYPE_PRESENT_GIFT_JIAOYOU = "309" // 聊天室打赏消息 批量打赏 CHATROOM_CUSTOME_MESSAGE_TYPE_PRESENT_GIFT_BATCH = "411" // 聊天室踢人消息 CHATROOM_CUSTOME_MESSAGE_TYPE_KICK_OUT_USER = "407" // 聊天室系统消息 CHATROOM_CUSTOME_MESSAGE_TYPE_SYSTEM_MSG = "412" // 聊天室贡献榜首变化 CHATROOM_CUSTOME_MESSAGE_TYPE_CHANGE_TOP_CONSUME = "403" // 聊天室周榜前三发生了变化 CHATROOM_CUSTOME_MESSAGE_TYPE_CHANGE_WEEKLY_TOP_USERS = "409" // 聊天室全服打赏消息 飞机 CHATROOM_CUSTOME_MESSAGE_TYPE_FULL_SERVICE = "405" // 聊天室设置管理消息 CHATROOM_CUSTOME_MESSAGE_TYPE_SET_ADMIN = "501" // 购买守护位成功 CHATROOM_USER_BUY_GUARD_SEAT_SUCCESS = "317" // 守护用户进入电台房间 CHATROOM_GUARD_USER_ENTER_AUDIO_ROOM = "318" // 守护用户离开电台房间 CHATROOM_GUARD_USER_LEAVE_AUDIO_ROOM = "318" // 房间热度更新 CHATROOM_HOT_UPDATED = "338" // 礼物更新 通知房间 CHATROOM_UPDATED_GIFT_DATA = "630" // 房间解锁 上锁 CHATROOM_LOCK_STATUS_UPDATE = "631" // 进入和离开聊天室消息 CHATROOM_CUSTOME_MESSAGE_TYPE_COMEIN_OR_LEAVE = "633" // 聊天室更改上麦方式消息 CHATROOM_CUSTOME_MESSAGE_TYPE_UPDATE_UP_SEAT_TYPE = "634" // 聊天室清除魅力的消息 CHATROOM_CUSTOME_MESSAGE_TYPE_CLEAR_CHARM = "635" // 聊天室红包 CHATROOM_CUSTOME_MESSAGE_TYPE_RED_ENVELOP = "636" // 聊天室更改麦序到计时 CHATROOM_CUSTOME_MESSAGE_TYPE_UPDATE_SEAT_COUNT_DOWN = "637" // 聊天室派单的消息 CHATROOM_CUSTOME_MESSAGE_TYPE_DISPATCH_ORDER = "413" // 设置房间背景通知 CHATROOM_CUSTOME_MESSAGE_TYPE_SET_ROOM_BACKGROUND = "415" // 设置房间背景通知 CHATROOM_CUSTOME_MESSAGE_TYPE_UPDATE_CHAT_MSG_BACKGROUND = "431" // 聊天室礼物飘飞 CHATROOM_CUSTOME_MESSAGE_TYPE_GIFT_FLY = "433" // 更新头饰给房间发信息 CHATROOM_CUSTOME_MESSAGE_TYPE_UPDATE_USER_AVATAR_DECORATION = "321" //==========================聊天室命令============================= // 强制同步 ROOM_CMD_CODE_REFRESH_ROOM = "0X" // 离开房间 ROOM_CMD_CODE_LEAVE_ROOM = "00" // 向主持人申请上麦 ROOM_CMD_CODE_APPLY_UP_SEAT = "01" // 取消排麦 ROOM_CMD_CODE_CANCEL_APPLY_UP_SEAT = "02" // 主持人同意上麦 ROOM_CMD_CODE_HOST_ACCEPT_UP_SEAT = "03" ROOM_CMD_CODE_ADMIN_UP_SEAT = "103" // 管理员开麦 ROOM_CMD_CODE_FREE_UP_SEAT = "104" // 自由模式开麦 ROOM_CMD_CODE_UP_DOWN_SEAT = "105" // 上下麦切换 // 主持人拒绝上麦 ROOM_CMD_CODE_HOST_REJECT_UP_SEAT = "04" ROOM_CMD_CODE_ADMIN_DOWN_SEAT = "106" // 管理员闭麦 ROOM_CMD_CODE_FREE_DOWN_SEAT = "107" // 自由模式闭麦 // 主持人设置座位静音 ROOM_CMD_CODE_HOST_MUTE_SEAT = "05" // 主持人取消座位静音 ROOM_CMD_CODE_HOST_CANCEL_MUTE_SEAT = "06" // 主持人抱用户上麦 ROOM_CMD_CODE_HOST_SET_UP_SEAT = "07" // 主持人抱用户下麦 ROOM_CMD_CODE_HOST_SET_DOWN_SEAT = "08" // 用户下麦 ROOM_CMD_CODE_USER_SET_DOWN_SEAT = "09" // 主持人锁定座位 ROOM_CMD_CODE_HOST_LOCK_SEAT = "10" // 主持人解锁座位 ROOM_CMD_CODE_HOST_UNLOCK_SEAT = "11" // 房主用新人替换座位上的人 ROOM_CMD_CODE_OWNER_REPLACE_SEAT_USER = "12" // 房主或主持上主持位 ROOM_CMD_CODE_UP_HOST_SEAT = "13" // 房主或主持人下主持位 ROOM_CMD_CODE_DOWN_HOST_SEAT = "14" // 禁言 ROOM_CMD_CODE_CLOSE_USER_SAY = "16" // 取消禁言 ROOM_CMD_CODE_OPEN_USER_SAY = "17" // 交友准备阶段 ROOM_CMD_CODE_SECTION_FRIEND_PREPARE = "18" // 交友进入心动选择阶段 ROOM_CMD_CODE_SECTION_FRIEND_SELECT = "19" // 交友选择心动 ROOM_CMD_CODE_FRIEND_SELECT_LOVE = "20" // 交友取消选择心动 ROOM_CMD_CODE_FRIEND_CANCEL_LOVE = "21" // 交友公布阶段 ROOM_CMD_CODE_SECTION_FRIEND_PUBLISH_RESULT = "22" // 设置房间模板 ROOM_CMD_CODE_SET_ROOM_TEMPLATE = "23" // 公布交友结果 ROOM_CMD_CODE_PUBLISH_FRIEND_LOVE = "24" // 清空排队列表 ROOM_CMD_CODE_CLEAR_WAIT_LIST = "25" // 开始倒计时 ROOM_CMD_CODE_BEGIN_COUNTDOWN = "27" // 用户打开麦克风 ROOM_CMD_CODE_OPEN_MIC = "101" // 用户关闭麦克风 ROOM_CMD_CODE_CLOSE_MIC = "102" // 设置房间禁麦 /开麦 ROOM_CMD_CODE_ALLOW_QUEUE = "110" // 交友房间的阶段 准备阶段 ROOM_SECTION_PREPARE = "0" // 交友房间的阶段 选择阶段 ROOM_SECTION_SELECTION = "1" // 交友房间的阶段 公布阶段 ROOM_SECTION_PUBLISH = "2" // 交友模板 阶段Field值 FRIEND_ROOM_GAME_DATA_FIELD_SECTION = "section" // 交友模板 开始时间Field值 FRIEND_ROOM_GAME_DATA_FIELD_STARTTIME = "startTime" // 消息聊天室的状态 打开 MESSAGE_ROOM_STAT_OPEN = "true" // 消息聊天室状态 关闭 MESSAGE_ROOM_STAT_CLOSE = "false" // 娱乐厅ID 不参与热门排名 GAME_CHATROOM_ID_LIST = "" // 房间Tab类型 1= 运营厅 ROOM_TAB_TYPE_OPERATION = "1" // 房间Tab类型 2= 个人房 ROOM_TAB_TYPE_PERSONAL = "2" // 用户头像 SELLER_SAMPLE_AVATAR_IMG = "https://ddphoto.youkeya.cnssets/img/seller_sample_avatar_2.png" // 麦上用户列表 SET_ONLINE_SEAT_USER = "SET_ONLINE_SEAT_USER" // ONLINE user count 在线用户数量 STR_ONLINE_USER_COUNT = "STR_ONLINE_USER_COUNT" //API版本号 API_NUM_VERSION_1_0_0 = 13 // 1.0.0 API_NUM_VERSION_2_0_0 = 14 // 2_0_0 // APP首页顶部 BANNER_POSITION_APP_HOME_TOP = "app_home_top" // 动态相关 TIMELINE_CONTENT_TYPE_IMG = "1" // 图片动态 TIMELINE_CONTENT_TYPE_VIDEO = "2" // 视频动态 TIMELINE_VIDEO_M3U8_NAME = "-ddv.m3u8" // 视频流后缀 // 房间榜一特效ID ROOM_TOP_ONE_SCENE_ID = "1" // 商品计量类型 GOODS_MEASUREMENT_EXPIRE = "EXPIRE" // 有效期类型 头饰 座驾 进场特效等 GOODS_MEASUREMENT_DELAY = "DELAY" // 有效期类型 权益卡 GOODS_MEASUREMENT_QUANTITY = "QUANTITY" // 有效期类型 数量 萌宠等道具 // 积分进出 POINTS_ACTION_TYPE_OUT = "OUT" // 积分进出 出 POINTS_ACTION_TYPE_IN = "IN" // 积分进出 进 // 积分业务类型 POINTS_BIZ_TYPE_ID_IN_DIAMOND_BUY_PRESENT = "1001" // 商城消费送积分 POINTS_BIZ_TYPE_ID_IN_SIGN = "1002" // 签到送积分 POINTS_BIZ_TYPE_ID_OUT_BUY_GOODS = "2001" // 购买商品 // 商城订单类型 MALL_ORDER_TYPE_DIAMOND = "1" // 钻石订单 MALL_ORDER_TYPE_POINTS = "2" // 积分订单 // 隐私数据雷霆 PRIVACY_DATA_TYPE_HIDDEN_ROOM_IN_PERSON_PAGE = "RoomInUserPageHidden" // 主页隐藏聊天室 PRIVACY_DATA_TYPE_ENTER_ROOM_HIDDEN = "EnterRoomHidden" // 隐身进厅 PRIVACY_DATA_TYPE_ROOM_RANK_HIDDEN = "RoomRankHidden" // 房间榜单隐身 PRIVACY_DATA_TYPE_IM_MSG_STATE_HIDDEN = "ImMsgStateHidden" // 房间榜单隐身 PRIVACY_DATA_TYPE_VISIT_HIDDEN = "VisitHidden" // 隐藏足迹 // 贵族等级 NOBILITY_LEVEL_GUOWANG = 8 // 绯红 NOBILITY_LEVEL_QIWANG = 7 // 星辰 NOBILITY_LEVEL_JUWANG = 6 // 瑶光 NOBILITY_LEVEL_GONGJUE = 5 // 琉恋 NOBILITY_LEVEL_HOUJUE = 4 // 黑曜 NOBILITY_LEVEL_BOJUE = 3 // 莹玉 NOBILITY_LEVEL_ZIJUE = 2 // 鎏金 NOBILITY_LEVEL_NANJUE = 1 // 白银 //iOS审核demo帐号 IOS_APPROVE_USER_ID = "" // 浏览足迹类型 VISIT_PAGE_TYPE_USER_HOME = "USER_HOME" VISIT_PAGE_TYPE_USER_SKILL_PAGE = "USER_SKILL" // 隐身大佬头像 HIDDEN_USER_AVATAR_IMG = "https://ddphoto.youkeya.cnssets/img/op_1600003929.png" // 免费修改昵称 最大次数 EDIT_NICKNAME_ALLOW_FREE_COUNT = 3 // 修改昵称价格 EDIT_NICKNAME_PRICE = "299" // 道具属性CODE PROP_CODE_HIDDEN_BL_MSG = "PROP_HIDDEN_BL_MSG" PROP_CODE_SEQUENCE_GIFT = "PROP_SEQUENCE_GIFT" CAP_MAN_TOP_ONE = "assets/img/op_1598426728.png" // 男1 CAP_MAN_TOP_TWO = "assets/img/op_1598426711.png" // 男2 CAP_MAN_TOP_THREE = "assets/img/op_1598426695.png" // 男3 CAP_WOMEN_TOP_ONE = "assets/img/op_1598426675.png" // 女1 CAP_WOMEN_TOP_TWO = "assets/img/op_1598426656.png" // 女2 CAP_WOMEN_TOP_THREE = "assets/img/op_1598426631.png" // 女3 // vipiconlist icon类型 ICON_TYPE_VIP = "VIP" ICON_TYPE_NOBILITY = "NOBILITY" ICON_TYPE_MEDAL = "MEDAL" H5ROOM_API_SECRET = "H5ROOM_API_SECRET" //H5客户端key INNER_API_SECRET_TRADE = "INNER_API_SECRET_TRADE_kasdhfih" //trade客户端key ) const ( ORDER_FLOW_TYPE_ADMIN = "admin" ORDER_FLOW_TYPE_USER = "user" ORDER_FLOW_TYPE_GUILD = "guild" ) // 禁止的特殊字符 var ( SpecialCharMap map[rune]bool ) func init() { SpecialCharMap = make(map[rune]bool) //SpecialCharMap[32] = true //空格 SpecialCharMap[34] = true // 双引号 //SpecialCharMap[37] = true // 百分号 SpecialCharMap[39] = true //单引号 // SpecialCharMap[3164] = true // 人民币符号 // SpecialCharMap[12644] = true //中文顿号 SpecialCharMap[12288] = true // 全角空格 } func FullPhotoUrl(path string) string { if len(path) == 0 { return "" } if strings.Index(path, "http") == 0 { return path } return PHOTO_DOMAIN_URL + path } func Md5ForList(s ...string) string { sort.Strings(s) h := md5.New() h.Write([]byte(strings.Join(s, ""))) return hex.EncodeToString(h.Sum(nil)) } type SellerOrderStatus = string const ( Accepting SellerOrderStatus = "accepting" Idle SellerOrderStatus = "idle" ) // PaymentApplyType 付款单类型 type PaymentApplyType = string const ( //PaymentApplyTypeWoodpecker 啄木鸟订单 PaymentApplyTypeWoodpecker PaymentApplyType = "woodpecker" ) // PaymentApplyStatus 付款单状态类型 type PaymentApplyStatus = string const ( // PaymentApplyStatusInit 待审核 PaymentApplyStatusInit PaymentApplyStatus = "init" // PaymentApplyStatusAgree 审核通过 PaymentApplyStatusAgree PaymentApplyStatus = "agree" // PaymentApplyStatusRefuse 审核拒绝 PaymentApplyStatusRefuse PaymentApplyStatus = "refuse" // PaymentApplyStatusComplete 付款完成 PaymentApplyStatusComplete PaymentApplyStatus = "complete" ) type PaymentApplyPayType = string const ( //PaymentApplyAliPay 支付宝支付 PaymentApplyAliPay PaymentApplyPayType = "alipay" //PaymentApplyWechatPay 微信支付 PaymentApplyWechatPay PaymentApplyPayType = "wechat" //PaymentApplyBankPay 银行卡支付 PaymentApplyBankPay PaymentApplyPayType = "bank" )