fix
This commit is contained in:
		
							parent
							
								
									8469253131
								
							
						
					
					
						commit
						c375d17c07
					
				@ -50,7 +50,7 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq) (resp *basi
 | 
				
			|||||||
	h.Write([]byte(fmt.Sprintf(constants.RENDER_NOTIFY_SIGN_KEY, string(notifyByte), req.Time)))
 | 
						h.Write([]byte(fmt.Sprintf(constants.RENDER_NOTIFY_SIGN_KEY, string(notifyByte), req.Time)))
 | 
				
			||||||
	signHex := h.Sum(nil)
 | 
						signHex := h.Sum(nil)
 | 
				
			||||||
	sign := hex.EncodeToString(signHex)
 | 
						sign := hex.EncodeToString(signHex)
 | 
				
			||||||
	fmt.Println(sign)
 | 
						//fmt.Println(sign)
 | 
				
			||||||
	if req.Sign != sign {
 | 
						if req.Sign != sign {
 | 
				
			||||||
		return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid sign")
 | 
							return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid sign")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@ -73,7 +73,7 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq) (resp *basi
 | 
				
			|||||||
				ProductId:    req.Info.ProductId,
 | 
									ProductId:    req.Info.ProductId,
 | 
				
			||||||
				MapsSourceId: req.Info.MapsSourceId,
 | 
									MapsSourceId: req.Info.MapsSourceId,
 | 
				
			||||||
				TemplateId:   req.Info.TemplateId,
 | 
									TemplateId:   req.Info.TemplateId,
 | 
				
			||||||
				RenderSource: req.Info.RenderSource,
 | 
									RenderResult: req.Info.RenderResult,
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		b, _ := json.Marshal(rspData)
 | 
							b, _ := json.Marshal(rspData)
 | 
				
			||||||
 | 
				
			|||||||
@ -23,7 +23,7 @@ type RenderImageRspMsg struct {
 | 
				
			|||||||
	MapsSourceId   int64  `json:"maps_source_id"`   //贴图数据id
 | 
						MapsSourceId   int64  `json:"maps_source_id"`   //贴图数据id
 | 
				
			||||||
	TemplateId     int64  `json:"template_id"`      //模板id
 | 
						TemplateId     int64  `json:"template_id"`      //模板id
 | 
				
			||||||
	RenderDesignId int64  `json:"render_design_id"` //渲染设计id
 | 
						RenderDesignId int64  `json:"render_design_id"` //渲染设计id
 | 
				
			||||||
	RenderSource   interface{} `json:"render_source"`    //渲染结果数据
 | 
						RenderResult   string `json:"render_result"`    //渲染结果数据
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type RenderNotifyReq struct {
 | 
					type RenderNotifyReq struct {
 | 
				
			||||||
@ -37,7 +37,7 @@ type NotifyInfo struct {
 | 
				
			|||||||
	MapsSourceId   int64  `json:"maps_source_id"`
 | 
						MapsSourceId   int64  `json:"maps_source_id"`
 | 
				
			||||||
	TemplateId     int64  `json:"template_id"`
 | 
						TemplateId     int64  `json:"template_id"`
 | 
				
			||||||
	RenderDesignId int64  `json:"render_design_id"` //渲染设计id
 | 
						RenderDesignId int64  `json:"render_design_id"` //渲染设计id
 | 
				
			||||||
	RenderSource   interface{} `json:"render_source"`    //渲染完返回的数据
 | 
						RenderResult   string `json:"render_result"`    //渲染结果数据
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type Request struct {
 | 
					type Request struct {
 | 
				
			||||||
 | 
				
			|||||||
@ -34,7 +34,7 @@ type RenderImageRspMsg { //websocket发送渲染完的数据
 | 
				
			|||||||
	MapsSourceId   int64  `json:"maps_source_id"`   //贴图数据id
 | 
						MapsSourceId   int64  `json:"maps_source_id"`   //贴图数据id
 | 
				
			||||||
	TemplateId     int64  `json:"template_id"`      //模板id
 | 
						TemplateId     int64  `json:"template_id"`      //模板id
 | 
				
			||||||
	RenderDesignId int64  `json:"render_design_id"` //渲染设计id
 | 
						RenderDesignId int64  `json:"render_design_id"` //渲染设计id
 | 
				
			||||||
	RenderSource   interface{} `json:"render_source"`    //渲染结果数据
 | 
						RenderResult   string `json:"render_result"`    //渲染结果数据
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
//渲染完了通知接口
 | 
					//渲染完了通知接口
 | 
				
			||||||
type RenderNotifyReq {
 | 
					type RenderNotifyReq {
 | 
				
			||||||
@ -47,5 +47,5 @@ type NotifyInfo {
 | 
				
			|||||||
	MapsSourceId   int64  `json:"maps_source_id"`
 | 
						MapsSourceId   int64  `json:"maps_source_id"`
 | 
				
			||||||
	TemplateId     int64  `json:"template_id"`
 | 
						TemplateId     int64  `json:"template_id"`
 | 
				
			||||||
	RenderDesignId int64  `json:"render_design_id"` //渲染设计id
 | 
						RenderDesignId int64  `json:"render_design_id"` //渲染设计id
 | 
				
			||||||
	RenderSource   interface{} `json:"render_source"`    //渲染完返回的数据
 | 
						RenderResult   string `json:"render_result"`    //渲染结果数据
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user