|
@@ -43,7 +43,7 @@ func YmySyncBar(farmId, pastureId string) {
|
|
|
"regCode": "cpt180511",
|
|
|
"secret": "67a74fd5748054ac67b6fc433e9249b0"}`
|
|
|
|
|
|
- barPull("http://dairy.yimucloud.com/dairy/external/api", fmt.Sprintf(reqJson, farmId), 3, tx, pastureId)
|
|
|
+ barPull("http://dairy.yimufarm.com/dairy/external/api", fmt.Sprintf(reqJson, farmId), 3, tx, pastureId)
|
|
|
}
|
|
|
|
|
|
func barPull(url, data string, msgtype int, tx *xorm.Session, pastureId string) {
|
|
@@ -380,7 +380,7 @@ ORDER BY dr.operatetime DESC LIMIT 1),"") as tmrName,d.tmrtname equipmentId,fp.c
|
|
|
func postPush(data string, msgtype int, tx *xorm.Session, pastureId string) {
|
|
|
|
|
|
// forwardingReq := new(ForwardingReq)
|
|
|
- url := "http://dairy.yimucloud.com/dairy/external/api"
|
|
|
+ url := "http://dairy.yimufarm.com/dairy/external/api"
|
|
|
// forwardingReq.Method = "POST"
|
|
|
// forwardingReq.Body = data
|
|
|
// jsonStr, _ := json.Marshal(forwardingReq)
|