//用户状态 int userStateUnVerified = 0; //未验证,暂未使用 int userStateActive = 1; //正常 int userStateBanned = 2; //被封 int userStateRemoved = 3; //被移除 //店铺成员角色类型 int shopUserOwner = 0; //店主 int shopUserStaff = 1; //客服 int shopUserMember = 2; //顾客 //用户在店铺中的审核状态 int shopUserReviewing = 0; //审核中 int shopUserReviewPass = 1; //审核通过 int shopUserReviewFail = 2; //审核未通过 // //店铺入驻收费类型 // int platformFeePerAnnual = 1; //年费 // int platformFeePerOrderFix = 2; //按照订单金额提成,固定金额 // int platformFeePerOrderPercent = 3; //按照订单金额提成,按照比例 // int platformFeePerCommissionFix = 4; //按照交易佣金提成,固定金额 // int platformFeePerCommissionPercent = 5; //按照交易佣金提成,按照比例 //店铺入驻收费类型 int platformFeePerAnnual = 1; //按年付费 int platformFeePerOrder = 2; //按订单付费 int platformFeePerCommission = 3; //按佣金付费 //店主收取佣金方式 int shopCommissionTypeFix = 0; //直接收取固定金额 int shopCommissionTypePercent = 1; //按照比例收取 //轮播图所在页面 int carouselPageHome = 1; //首页 //订单状态 int orderStateUnpaid = 0; //未支付 int orderStatePaid = 1; //已支付 int orderStatePaying = 2; //支付中 int orderStatePayFailed = 3; //支付失败 int orderStateOtherPaid = 4; //已代付 int orderStateRevoked = 5; //已取消 //订单类型 int orderTypeCommodity = 0; //商品 int orderTypeAnnualFee = 1; //平台年费 int orderTypeVirtualProduct = 2; //虚拟物品 int orderTypeThirdPlatform = 3; //第三方平台订单 int orderTypeOfflineTransfer = 4; //线下付款 int orderTypeAdvertise = 5; //平台广告 //UiD长度 int userUIDLen = 8; int orderUIDLen = 12; int shopUIDLen = 6; //支付方式 int payWayWallet = 0; //钱包 int payWayAliPay = 1; //支付宝支付 //检查优惠券过期周期 int checkCouponDuration = 1; //小时 //店铺状态 int shopStateNormal = 0; //店铺正常 int shopStateArrearage = 1; //店铺欠费 int shopStateBanned = 2; //店铺被禁 int shopStateClosed = 3; //店铺被关闭 //聊天消息类型 String chatMsgTypeText = "文字"; //文字 String chatMsgTypePic = "图片"; //图片 String chatMsgTypeOrder = "订单"; //订单 String chatMsgTypeRedPackage = "红包"; //红包 //通知类型 String notifyTypeNewMsg = "新聊天消息"; String notifyTypeRevokeMsg = "撤回聊天消息"; String notifyTypeNewOrder = "新订单"; String notifyTypeUpdateOrder = "更新订单"; String notifyTypeIncome = "收入进账"; String notifyTypeSysMsg = "系统消息"; String notifyTypeOrderPaymentIsSuccessful = "订单支付成功"; String notifyTypeNewCoupon = "新优惠券申请"; String notifyTypePayFailed = "订单支付失败"; //道具Key String vpKeyChatWaterMark = "ChatWaterMark"; //聊天水印,隐私保护 String vpKeyXRay = "XRay"; //战绩查看 //广告类型 int adTypeHomeList = 0; //店铺/商品部分广告 int adTypeHomeBanner = 1; //首页banner //首页数据类型 int homeListTypeShop = 0; int homeListTypeCommodity = 1; //广告关联类型 int adLinkTypeShop = 0; //广告关联店铺 int adLinkTypeCommodity = 1; //广告关联商品 aliPayResultStatus(int code) { switch (code) { case 9000: return '订单支付成功'; case 8000: return '正在处理中'; case 4000: return '订单支付失败'; case 5000: return '重复请求'; case 6001: return '取消支付'; case 6002: return '网络连接出错'; case 6003: return '支付结果未知'; default: return '支付错误'; } } //资金流水用途类型 int flowTypeRefund = -1; //退款 int flowTypeOrderCommodity = 1; //商品订单 int flowTypeOrderAnnualFee = 2; //平台年费订单 int flowTypeOrderVirtualProduct = 3; //虚拟物品订单 int flowTypeOrderThirdPlatform = 4; //第三方平台订单 int flowTypeOrderOfflineTransfer = 5; //线下付款订单 int flowTypeRedPacket = 10; //红包 int flowTypeWithdraw = 20; //提现 int flowTypeShopCommission = 30; //店铺佣金 int flowTypePlatformFee = 40; //平台收费 int flowTypePlatformFine = 41; //平台罚款 int flowTypeBonus = 99; //平台分红 flowType(int type) { switch (type) { case -1: return '退款'; case 1: return '商品订单'; case 2: return '平台年费订单'; case 3: return '虚拟物品订单'; case 4: return '第三方平台订单'; case 5: return '线下付款订单'; case 10: return '红包'; case 20: return '提现'; case 30: return '店铺佣金'; case 40: return '平台收费'; case 41: return '平台罚款'; case 99: return '平台分红'; default: return ''; } }