修复 router.go 和 carelessly.go 文件中的注释和日志记录

- 在 router.go 中注释掉了未使用的路由配置,提升代码整洁性。
- 在 carelessly.go 中移除了请求响应的日志记录,简化了代码逻辑。
This commit is contained in:
danial
2025-05-05 15:34:20 +08:00
parent 2f9da02943
commit ff5a12c65b
2 changed files with 1 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ func init() {
// 代付相关的接口
//web.Router("/gateway/payfor", &gateway.PayForGateway{}, "*:PayFor")
//web.Router("/gateway/payfor/query", &gateway.PayForGateway{}, "*:PayForQuery")
web.Router("/gateway/balance", &gateway.PayForGateway{}, "*:Balance")
// web.Router("/gateway/balance", &gateway.PayForGateway{}, "*:Balance")
//web.Router("/gateway/supplier/payfor/query", &gateway.PayForGateway{}, "*:QuerySupplierPayForResult")
//web.Router("/solve/payfor/result", &gateway.PayForGateway{}, "*:SolvePayForResult")
// 接收回调

View File

@@ -112,9 +112,6 @@ func (c *CarelessImpl) SendCard(ctx context.Context, jsonStr string, cardInfo su
return false, "请求格式错误"
}
otelTrace.Logger.WithContext(ctx).Info("请求响应", zap.Any("reqStruct", reqStruct))
return true, ""
response, err := request.Response()
if err != nil {
otelTrace.Logger.WithContext(ctx).Error("请求失败", zap.Error(err))