From b9ced960c091de1659f2572ca107074de2b78ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Mon, 24 Apr 2023 14:34:26 +0800 Subject: [PATCH] - update wikeyun --- service/wikeyun/client.go | 8 ++++---- service/wikeyun/config.go | 2 +- service/wikeyun/get.go | 4 ++-- service/wikeyun/sign.go | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/service/wikeyun/client.go b/service/wikeyun/client.go index 56d051b4..83b06215 100644 --- a/service/wikeyun/client.go +++ b/service/wikeyun/client.go @@ -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 { diff --git a/service/wikeyun/config.go b/service/wikeyun/config.go index 60f0460b..aea93933 100644 --- a/service/wikeyun/config.go +++ b/service/wikeyun/config.go @@ -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 diff --git a/service/wikeyun/get.go b/service/wikeyun/get.go index 6138c3f3..8ac15690 100644 --- a/service/wikeyun/get.go +++ b/service/wikeyun/get.go @@ -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 } diff --git a/service/wikeyun/sign.go b/service/wikeyun/sign.go index 85115ea8..e5e0b0c3 100644 --- a/service/wikeyun/sign.go +++ b/service/wikeyun/sign.go @@ -11,7 +11,7 @@ import ( ) type respSign struct { - AppKey int + AppKey int64 Timestamp string Client string V string