浏览代码

fix:remove unused code

jimmyyem 7 月之前
父节点
当前提交
82acd2d185

+ 1 - 1
internal/logic/avatar/get_api_avatar_config_logic.go

@@ -50,7 +50,7 @@ func (l *GetApiAvatarConfigLogic) GetApiAvatarConfig(req *types.AvatarConfigReq)
 	}
 
 	var aiData *avatar20220130.StartInstanceResponseBodyData
-	if jsonData.AiType == 1 { //TODO 阿里云数字人
+	if jsonData.AiType == 1 { // 阿里云数字人
 		userIdStr := strconv.Itoa(int(userId))
 		aiData, err = aliyun.StartInstance(userIdStr, aliyun.GetBizID(userId))
 		fmt.Printf("aliData=%v error=%v \n", aiData, err)

+ 2 - 2
internal/logic/chatrecords/submit_api_chat_logic.go

@@ -91,13 +91,13 @@ func (l *SubmitApiChatLogic) SubmitApiChat(req *types.ChatRecordsInfo, w http.Re
 	if *req.BotType == 2 { // 从FastGPT里获取回答
 		card, err := l.svcCtx.DB.WxCard.Query().Where(wxcard.ID(*req.BotId)).Only(l.ctx)
 		if err != nil {
-			return //TODO 这里应该报错
+			return
 		}
 		fastgptSendChat(l, w, *req.Content, card.APIBase, card.APIKey, sessionId, userId, *req.BotId, *req.BotType)
 	} else if *req.BotType == 3 { // 从数字员工里获取回答
 		employee, err := l.svcCtx.DB.Employee.Query().Where(employee.ID(*req.BotId)).Only(l.ctx)
 		if err != nil {
-			return //TODO 这里应该报错
+			return
 		}
 		difySendChat(l, w, *req.Content, employee.APIBase, employee.APIKey, sessionId, userId, *req.BotId, *req.BotType)
 	}