|
@@ -498,9 +498,9 @@ func getAdjustStringVal(projectId int64, item string) (string, error) {
|
|
|
|
|
|
func (v *VirtualPlcItem) GetVirtualPlcItems() (*VirtualPlcItemResp, error) {
|
|
|
|
|
|
- plcItemUrl = fmt.Sprintf("%s%d", plcItemUrl, v.ProjectId)
|
|
|
+ tmpPlcItemUrl := fmt.Sprintf("%s%d", plcItemUrl, v.ProjectId)
|
|
|
|
|
|
- req := httplib.Get(plcItemUrl)
|
|
|
+ req := httplib.Get(tmpPlcItemUrl)
|
|
|
req.Param("project_id", fmt.Sprintf("%d", v.ProjectId))
|
|
|
req.Param("pageSize", fmt.Sprintf("%d", v.PageSize))
|
|
|
|