...
|
...
|
@@ -4,6 +4,7 @@ import ( |
|
|
"github.com/linmadan/egglib-go/web/beego"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/domainService"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/log"
|
|
|
"strings"
|
|
|
"time"
|
|
|
)
|
...
|
...
|
@@ -29,6 +30,10 @@ func (controller *DeviceZKTecoController) PostCdata() { |
|
|
//mBytes, _ := json.Marshal(data)
|
|
|
//redis.GetRedis().LPush(domain.TaskDeviceZkTecoReport(), mBytes)
|
|
|
domainService.SendDeviceZkTecoReportJob(data)
|
|
|
} else {
|
|
|
data.ActionTime = time.Now()
|
|
|
domainService.SendDeviceZkTecoReportJob(data)
|
|
|
log.Logger.Debug(err.Error() + "data:" + bodyList[1])
|
|
|
}
|
|
|
}
|
|
|
controller.Response(data, nil)
|
...
|
...
|
|