- update wikeyun

master
李光春 1 year ago
parent 9d5d1efff1
commit b9ced960c0

@ -7,8 +7,8 @@ import (
// ClientConfig 实例配置
type ClientConfig struct {
StoreId int // 店铺ID
AppKey int // key
StoreId int64 // 店铺ID
AppKey int64 // key
AppSecret string // secret
CurrentIp string // 当前ip
}
@ -18,8 +18,8 @@ type Client struct {
requestClient *gorequest.App // 请求服务
config struct {
clientIp string // 当前Ip
storeId int // 店铺ID
appKey int // key
storeId int64 // 店铺ID
appKey int64 // key
appSecret string // secret
}
log struct {

@ -3,7 +3,7 @@ package wikeyun
import "github.com/dtapps/go-library/utils/golog"
// ConfigApp 配置
func (c *Client) ConfigApp(storeId, appKey int, appSecret string) *Client {
func (c *Client) ConfigApp(storeId, appKey int64, appSecret string) *Client {
c.config.storeId = storeId
c.config.appKey = appKey
c.config.appSecret = appSecret

@ -2,11 +2,11 @@ package wikeyun
import "github.com/dtapps/go-library/utils/golog"
func (c *Client) GetStoreId() int {
func (c *Client) GetStoreId() int64 {
return c.config.storeId
}
func (c *Client) GetAppKey() int {
func (c *Client) GetAppKey() int64 {
return c.config.appKey
}

@ -11,7 +11,7 @@ import (
)
type respSign struct {
AppKey int
AppKey int64
Timestamp string
Client string
V string

Loading…
Cancel
Save