fix
This commit is contained in:
parent
865bb55a86
commit
988f6c2537
|
@ -3,6 +3,7 @@ package logic
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"fusenapi/model/gmodel"
|
"fusenapi/model/gmodel"
|
||||||
"fusenapi/utils/auth"
|
"fusenapi/utils/auth"
|
||||||
"fusenapi/utils/basic"
|
"fusenapi/utils/basic"
|
||||||
|
@ -154,9 +155,10 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
|
||||||
}
|
}
|
||||||
var resultStr string
|
var resultStr string
|
||||||
|
|
||||||
var postMap = make(map[string]interface{}, 1)
|
var postMap = make(map[string]string, 1)
|
||||||
postMap["logo_url"] = uploadRes.ResourceUrl
|
postMap["logo_url"] = uploadRes.ResourceUrl
|
||||||
postMapB, _ := json.Marshal(postMap)
|
postMapB, _ := json.Marshal(postMap)
|
||||||
|
fmt.Println(string(postMapB))
|
||||||
|
|
||||||
var headerData = make(map[string]string, 1)
|
var headerData = make(map[string]string, 1)
|
||||||
headerData["Content-Type"] = "application/json"
|
headerData["Content-Type"] = "application/json"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user