fix
This commit is contained in:
parent
29ddc7cff8
commit
fdde41fa4f
@ -408,17 +408,17 @@ func (w *wsConnectItem) assembleRenderDataToUnity(taskId string, resolution int,
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
if element.ModelP != nil && *element.ModelP != "" {
|
if element.ModelP != nil && *element.ModelP != "" {
|
||||||
tempData = append(tempData, map[string]interface{}{
|
/*tempData = append(tempData, map[string]interface{}{
|
||||||
"name": "model_P",
|
"name": "model_P",
|
||||||
"data": "0," + *element.ModelP,
|
"data": "0," + *element.ModelP,
|
||||||
"type": "other",
|
"type": "other",
|
||||||
"layer": "0",
|
"layer": "0",
|
||||||
"is_update": 0,
|
"is_update": 0,
|
||||||
"mode": mode["model_P"],
|
"mode": mode["model_P"],
|
||||||
})
|
})*/
|
||||||
}
|
}
|
||||||
//×××××××××××××××××××××××××××××××××××××××××××××××××××××
|
//×××××××××××××××××××××××××××××××××××××××××××××××××××××
|
||||||
/*if w.userId == 127 && info.RenderData.ProductId == 32 {
|
if w.userId == 127 && info.RenderData.ProductId == 32 {
|
||||||
if element.Base != nil && *element.Base != "" {
|
if element.Base != nil && *element.Base != "" {
|
||||||
tempData = append(tempData, map[string]interface{}{
|
tempData = append(tempData, map[string]interface{}{
|
||||||
"name": "model_1",
|
"name": "model_1",
|
||||||
@ -439,16 +439,16 @@ func (w *wsConnectItem) assembleRenderDataToUnity(taskId string, resolution int,
|
|||||||
"mode": mode["shadow"],
|
"mode": mode["shadow"],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if element.ModelP != nil && *element.ModelP != "" {
|
/*if element.ModelP != nil && *element.ModelP != "" {
|
||||||
tempData = append(tempData, map[string]interface{}{
|
tempData = append(tempData, map[string]interface{}{
|
||||||
"name": "model_P_1",
|
"name": "model_P_1",
|
||||||
"data": "0,",
|
"data": "0,",
|
||||||
"type": "other",
|
"type": "other",
|
||||||
"layer": "0",
|
"layer": "0",
|
||||||
"is_update": 0,
|
"is_update": 0,
|
||||||
"mode": mode["model_P_1"],
|
"mode": mode["model_P"],
|
||||||
})
|
})
|
||||||
}
|
}*/
|
||||||
if element.Base != nil && *element.Base != "" {
|
if element.Base != nil && *element.Base != "" {
|
||||||
tempData = append(tempData, map[string]interface{}{
|
tempData = append(tempData, map[string]interface{}{
|
||||||
"name": "model_2",
|
"name": "model_2",
|
||||||
@ -479,7 +479,7 @@ func (w *wsConnectItem) assembleRenderDataToUnity(taskId string, resolution int,
|
|||||||
"mode": mode["model_P"],
|
"mode": mode["model_P"],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
|
||||||
//××××××××××××××××××××××××××××××××××××××××××××××××××××
|
//××××××××××××××××××××××××××××××××××××××××××××××××××××
|
||||||
result := []interface{}{
|
result := []interface{}{
|
||||||
@ -494,7 +494,7 @@ func (w *wsConnectItem) assembleRenderDataToUnity(taskId string, resolution int,
|
|||||||
"data": tempData,
|
"data": tempData,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
/* //**************************
|
//**************************
|
||||||
if w.userId == 127 && info.RenderData.ProductId == 32 {
|
if w.userId == 127 && info.RenderData.ProductId == 32 {
|
||||||
result = []interface{}{
|
result = []interface{}{
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
@ -509,7 +509,7 @@ func (w *wsConnectItem) assembleRenderDataToUnity(taskId string, resolution int,
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//********************************/
|
//*******************************
|
||||||
//发送运行阶段消息(组装数据)
|
//发送运行阶段消息(组装数据)
|
||||||
w.sendAssembleRenderDataStepResponseMessage(info.RequestId)
|
w.sendAssembleRenderDataStepResponseMessage(info.RequestId)
|
||||||
temId := websocket_data.ToUnityIdStruct{
|
temId := websocket_data.ToUnityIdStruct{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user