Эх сурвалжийг харах

修复刷新工作手机问题

boweniac 6 сар өмнө
parent
commit
5ae18004bc

+ 2 - 0
internal/logic/UsageDetail/get_usage_detail_list_logic.go

@@ -57,6 +57,8 @@ func (l *GetUsageDetailListLogic) GetUsageDetailList(req *types.UsageDetailListR
 			app = "AI角色-回复"
 		} else if v.App == 4 {
 			app = "SOP-节点判断"
+		} else if v.App == 5 {
+			app = "SOP-节点判断"
 		}
 		request := v.Request
 		if v.App == 2 {

+ 3 - 0
internal/logic/WorkPhone/wx_refresh_logic.go

@@ -47,6 +47,9 @@ func (l *WxRefreshLogic) WxRefresh() (resp *types.BaseMsgResp, err error) {
 	}
 
 	for _, account := range result.Data {
+		if account.Wechatid == "" {
+			continue
+		}
 		wxinfo, err := l.svcCtx.DB.Wx.Query().
 			Where(
 				wx.Or(