|
@@ -120,13 +120,22 @@ func (gt AlipayConfig) String() string { |
|
|
type WxConfig string |
|
|
type WxConfig string |
|
|
|
|
|
|
|
|
const ( |
|
|
const ( |
|
|
WxAppId = "wx_app_id" |
|
|
|
|
|
|
|
|
WxAppId = "wx_app_id" |
|
|
|
|
|
WxMchId = "wx_mch_id" |
|
|
|
|
|
WxMchApiV3Key = "wx_mch_api_v3_key" |
|
|
|
|
|
WxMchCertificateSerialNumber = "wx_mch_certificate_serial_number" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func (gt WxConfig) String() string { |
|
|
func (gt WxConfig) String() string { |
|
|
switch gt { |
|
|
switch gt { |
|
|
case WxAppId: |
|
|
case WxAppId: |
|
|
return "微信应用appid" |
|
|
return "微信应用appid" |
|
|
|
|
|
case WxMchId: |
|
|
|
|
|
return "微信商户号" |
|
|
|
|
|
case WxMchApiV3Key: |
|
|
|
|
|
return "微信商户证书序列号" |
|
|
|
|
|
case WxMchCertificateSerialNumber: |
|
|
|
|
|
return "微信商户APIv3密钥" |
|
|
default: |
|
|
default: |
|
|
return "未知" |
|
|
return "未知" |
|
|
} |
|
|
} |
|
|