blog_backend_api/vendor/wapi/config/share.go

109 lines
2.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package config
/*********************
*分享相关基类用到的配置
**********************/
//Guiyang 贵阳
var Guiyang = map[string]int{
"121": 121,
"122": 122,
}
//OtherProvince 吉林、黑龙江、辽宁、江西
var OtherProvince = map[string]int{
"11": 11,
"12": 12,
"362": 362,
"109": 109,
"110": 110,
"111": 111,
"112": 112,
"139": 139,
"140": 140,
}
//Jiangxi 江西安卓自运营
var Jiangxi = map[string]int{
"128": 128,
"140": 140,
}
//Hubie 卡五星跳到湖北200渠道
var Hubie = map[string]int{
"272": 272,
}
//WechatIDUseMap 微信id用途表
var WechatIDUseMap = map[string]int{
"login": 1,
"pay": 2,
"join": 3,
"share": 4,
"other": 5,
}
//GcountLevelCondition 根据玩家玩的局数来判断高低等级
const GcountLevelCondition = 100
const LevelHigh = "high"
const LevelLow = "low"
//BrandChannelConfig 各平台安卓自运营渠道id
var BrandChannelConfig = map[string]map[string]map[string]string{
"weile": {"channel_id": {
"0": "200",
"1": "225",
"2": "717",
"3": "501",
"4": "15",
"5": "11",
"6": "505",
},
"high_channel": {
"263": "225",
"default": "200",
},
"change": {
"263": "change",
},
},
"jixiang": {"channel_id": {
"0": "13",
"1": "12",
},
"high_channel": {
"default": "13",
},
},
"xinyue": {"channel_id": {
"0": "210",
"1": "11",
},
"high_channel": {
"default": "210",
},
},
}
//Change 各平台安卓自运营渠道中字断
var Change = map[string]string{
"200": "225",
"15": "11",
}
//Region 分享中过滤地区字断
var Region = map[string][]string{
"province": []string{"维吾尔自治区", "回族自治区", "壮族自治区", "维吾尔自治区", "特别行政区", "自治区", "省", "市"},
"city": []string{"市", "朝鲜族自治州", "朝鲜族自治州", "自治区", "省直辖县级行政区划", "省直辖县级行政区"},
"area": []string{"满族自治县", "朝鲜族自治县", "尔罗斯蒙古自治县", "县", "区", "乡", "市", "镇"},
}
//DomainRedisShuffle 获取domain时根据用途不同redis_key的后缀不同
//数组key为用途 1. 分享 2. 下载 3. 跳转
//组value为 redis_key后缀
var DomainRedisShuffle = map[int]string{
1: "",
2: "_dl",
3: "_rd",
}