修改
This commit is contained in:
parent
dd42e1f3cb
commit
c0b4181f69
@ -121,6 +121,7 @@ func SaveRegister(c *gin.Context) {
|
||||
response1, err := http.Get(img)
|
||||
if err != nil {
|
||||
fmt.Println("网络请求错误:", err)
|
||||
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
|
||||
return
|
||||
}
|
||||
|
||||
@ -358,14 +359,7 @@ func ImportRecordByExcel(c *gin.Context) {
|
||||
}
|
||||
records = append(records, record)
|
||||
}
|
||||
for k, v := range records {
|
||||
fmt.Println(k, v)
|
||||
}
|
||||
for _, r := range records {
|
||||
// registerInfo := &exhibition.RegisterInfo{
|
||||
// ArtistName: r.ArtistName,
|
||||
// ArtworkName: r.ArtworkName,
|
||||
// }
|
||||
_, err := GrpcExhibitionClientImpl.ImportInfoByExcel(context.Background(), r)
|
||||
if err != nil {
|
||||
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
|
||||
|
Loading…
Reference in New Issue
Block a user