提交 4074c755 authored 作者: 张立波's avatar 张立波

yunzmall

上级 cb1f462f
...@@ -27,6 +27,8 @@ type Client struct { ...@@ -27,6 +27,8 @@ type Client struct {
Source int Source int
} }
var Server *Client
const Url = "https://supply.yunzmall.com/supplyapi" const Url = "https://supply.yunzmall.com/supplyapi"
const pkgName = "yunzmall" const pkgName = "yunzmall"
const CacheKey = "yunzmall:token:" const CacheKey = "yunzmall:token:"
...@@ -38,6 +40,7 @@ func New(req *Client) *Client { ...@@ -38,6 +40,7 @@ func New(req *Client) *Client {
if req.Url == "" { if req.Url == "" {
req.Url = Url req.Url = Url
} }
Server = req
return req return req
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论