---
panlei
2019-07-18 b5771bb208fc5f00f0b19b10a104f3716ee4de79
insertdata/insertDataToEs.go
@@ -23,11 +23,11 @@
type conf struct {
   PhotoUrl       string `yaml:"photoUrl"`
   Videopersons   string `yaml:"videopersons"`
   Personaction   string `yaml:"personaction"`
   Serverip       string `yaml:"serverIp"`
   Serverport     string `yaml:"serverPort"`
   Dbtablepersons string `yaml:"dbTablePersons"`
   VideoPersons   string `yaml:"videoPersons"`
   PersonAction   string `yaml:"personAction"`
   ServerIp       string `yaml:"serverIp"`
   ServerPort     string `yaml:"serverPort"`
   DbTablePersons string `yaml:"dbTablePersons"`
}
func init() {
@@ -40,8 +40,8 @@
   //把yaml形式的字符串解析成struct类型
   yaml.Unmarshal(data, &c)
   weedfsUrl = c.PhotoUrl
   videoPersonUrl = c.Videopersons
   personAction = c.Personaction
   videoPersonUrl = c.VideoPersons
   personAction = c.PersonAction
}
// 人脸的数据结构