Przeglądaj źródła

is_frist类型转换

mainqaq 3 lat temu
rodzic
commit
6e68c8f011
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      service/supply_service.go

+ 2 - 2
service/supply_service.go Wyświetl plik

52
 		name := items["name"].(string)
52
 		name := items["name"].(string)
53
 		phone := items["phone"].(string)
53
 		phone := items["phone"].(string)
54
 		address := items["address"].(string)
54
 		address := items["address"].(string)
55
-		isfirst := int64(items["is_first"].(int))
55
+		isfirst := int64(items["is_first"].(float64))
56
 		updatecontacts := models.SpSupplierContacts{
56
 		updatecontacts := models.SpSupplierContacts{
57
 			ID:           id,
57
 			ID:           id,
58
 			Name:         name,
58
 			Name:         name,
176
 		name := items["name"].(string)
176
 		name := items["name"].(string)
177
 		phone := items["phone"].(string)
177
 		phone := items["phone"].(string)
178
 		address := items["address"].(string)
178
 		address := items["address"].(string)
179
-		isfirst := int64(items["is_first"].(int))
179
+		isfirst := int64(items["is_first"].(float64))
180
 
180
 
181
 		spcontacts := models.SpSupplierContacts{
181
 		spcontacts := models.SpSupplierContacts{
182
 			Name:         name,
182
 			Name:         name,