提交 df9bcbfe 编写于 作者: 李光春

【修复】淘宝客、京东联盟服务

上级 efaaea0d
package service
import "errors"
var (
ErrTypeIsNil = errors.New("类型为Nil")
ErrTypeUnknown = errors.New("未处理到的数据类型")
)
package jdk
import (
"GoLibrary/excepyion/service"
"bytes"
"crypto/md5"
"encoding/hex"
......@@ -19,6 +18,11 @@ import (
"time"
)
var (
ErrTypeIsNil = errors.New("类型为Nil")
ErrTypeUnknown = errors.New("未处理到的数据类型")
)
var (
// AppKey 应用Key
AppKey string
......@@ -165,7 +169,7 @@ func getSign(params Parameter) string {
func interfaceToString(src interface{}) string {
if src == nil {
panic(service.ErrTypeIsNil)
panic(ErrTypeIsNil)
}
switch src.(type) {
case string:
......
package tbk
import (
"GoLibrary/excepyion/service"
"bytes"
"crypto/md5"
"encoding/hex"
......@@ -20,6 +19,11 @@ import (
"time"
)
var (
ErrTypeIsNil = errors.New("类型为Nil")
ErrTypeUnknown = errors.New("未处理到的数据类型")
)
var (
// AppKey 应用Key
AppKey string
......@@ -172,7 +176,7 @@ func getSign(params Parameter) string {
func interfaceToString(src interface{}) string {
if src == nil {
panic(service.ErrTypeIsNil)
panic(ErrTypeIsNil)
}
switch src.(type) {
case string:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册