You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.4 KiB

package define
import "time"
const (
WxAppID = "wx21724a42aebe20cc"
WxAppSecret = "83f8932eb742257316e3168ba9e920dc" // 秘钥
WxMiniProgramAppID = "wx70e983da26f56388" // 小程序
WxMiniProgramAppSecret = "01b0a828fb4d99e25c446049ba78817a" // 小程序
)
type wxConfig struct {
AppId string `json:"appId"`
AppSecret string `json:"appSecret"`
Type string `json:"type"`
}
var (
DefaultBirthday = time.Date(1980, 01, 1, 00, 00, 00, 0, time.Local)
DefaultOfficialLogoURL = "/default/officaillogo-1.png"
DefaultOfficialNickname = "瑞库客官方"
DefaultHeadImage = "/default/officaillogo-1.png"
WxConfig = map[string]wxConfig{
"wxh5": {
Type: "wx",
AppId: "wx21724a42aebe20cc",
AppSecret: "83f8932eb742257316e3168ba9e920dc",
},
"wxapp_v1": {
Type: "wxapp",
AppId: "wx70e983da26f56388",
AppSecret: "01b0a828fb4d99e25c446049ba78817a",
},
"recook-weapp": {
Type: "wxapp",
AppId: "wxf95835be72b5373c",
AppSecret: "1153b31349a1791f56bd542181beeab1",
},
"recook-wxh5": {
Type: "wx",
AppId: "wx0a67d8af4a8252b0",
AppSecret: "de4494be68c27fb306448f46718cbd13",
},
}
)
const (
RegionLevelProvince = 1 // 省
RegionLevelCity = 2 // 市县
RegionLevelDistrict = 3 // 镇或区
)
const (
CouponScopeUniversal = 0 // 通用
CouponScopeBrand = 1 // 品牌优惠券
)
const (
Coefficient = 1.00
)