- add operator for some jd api.
This commit is contained in:
@@ -89,8 +89,12 @@ func GetCurTimestamp() int64 {
|
||||
return time.Now().Unix()
|
||||
}
|
||||
|
||||
func GetAPIOperator() string {
|
||||
return "jxc4-admin"
|
||||
func GetAPIOperator(userName string) string {
|
||||
retVal := "jxc4-admin"
|
||||
if userName != "" {
|
||||
retVal += "-" + userName
|
||||
}
|
||||
return retVal
|
||||
}
|
||||
|
||||
func MergeMaps(firstMap map[string]interface{}, otherMaps ...map[string]interface{}) (retVal map[string]interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user