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.

57 lines
1.3 KiB

4 years ago
package define
import "time"
const (
4 years ago
WxAppID = "wx737af52b2ad6d518"
WxAppSecret = "ac7c99f7d7c33a430714613ecb49baa2" // 秘钥
4 years ago
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"
4 years ago
DefaultOfficialNickname = "左家右厨官方"
4 years ago
DefaultHeadImage = "/default/officaillogo-1.png"
WxConfig = map[string]wxConfig{
"wxh5": {
Type: "wx",
AppId: "wx21724a42aebe20cc",
AppSecret: "83f8932eb742257316e3168ba9e920dc",
},
"wxapp_v1": {
Type: "wxapp",
4 years ago
AppId: "wx737af52b2ad6d518",
AppSecret: "ac7c99f7d7c33a430714613ecb49baa2",
4 years ago
},
"recook-weapp": {
Type: "wxapp",
AppId: "wxefdf3cdd5032af83",
AppSecret: "16fa9922b65516d9b0edf4ae02dd5b55",
4 years ago
},
}
)
const (
RegionLevelProvince = 1 // 省
RegionLevelCity = 2 // 市县
RegionLevelDistrict = 3 // 镇或区
)
const (
CouponScopeUniversal = 0 // 通用
CouponScopeBrand = 1 // 品牌优惠券
)
const (
3 years ago
Coefficient = 1.00
)