Commit bcdbefb3 authored by scjtqs's avatar scjtqs

go fmt

parent fc18b84d
......@@ -44,12 +44,12 @@ func QQMusicSongInfo(id string) (gjson.Result, error) {
return gjson.ParseBytes(d).Get("songinfo.data"), nil
}
func NewXmlMsg(template string,ResId int64) *message.ServiceElement{
func NewXmlMsg(template string, ResId int64) *message.ServiceElement {
var serviceid string
if ResId == 0{
serviceid ="2" //默认值2
}else{
serviceid = strconv.FormatInt(ResId,10)
if ResId == 0 {
serviceid = "2" //默认值2
} else {
serviceid = strconv.FormatInt(ResId, 10)
}
//println(serviceid)
return &message.ServiceElement{
......@@ -60,7 +60,7 @@ func NewXmlMsg(template string,ResId int64) *message.ServiceElement{
}
}
func NewJsonMsg(template string) *message.ServiceElement{
func NewJsonMsg(template string) *message.ServiceElement {
return &message.ServiceElement{
Id: 1,
Content: template,
......
......@@ -400,7 +400,6 @@ func getParamOrDefault(c *gin.Context, k, def string) string {
return def
}
func getParam(c *gin.Context, k string) string {
p, _ := getParamWithType(c, k)
return p
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment