接口调整

This commit is contained in:
李子铭 2025-03-13 14:33:14 +08:00
parent 3e8e4d111d
commit 514e7bb724
3 changed files with 6 additions and 4 deletions

View File

@ -222,16 +222,16 @@ func (s *CmbMixRepoImpl) Request(ctx context.Context, req *v1.CmbRequest, uri st
return nil, err
}
log.Warnf("请求掌上生活响应结果,url=%s,bodyBytes=%s", r, string(bodyBytes))
log.Warnf("请求掌上生活响应结果,url:%s,bodyBytes:%s", r, string(bodyBytes))
var response *v1.CmbReply
if err = json.Unmarshal(bodyBytes, &response); err != nil {
log.Errorf("请求掌上生活返回数据解析报错,bodyBytes=%s,err=%s", string(bodyBytes), err.Error())
log.Errorf("请求掌上生活返回数据解析报错,err:%s", string(bodyBytes), err.Error())
return nil, err
}
if response.RespCode != vo.CmbResponseStatusSuccess.GetValue() {
log.Errorf("请求掌上生活返回报错,url=%s,err=%s", r, response.RespMsg)
log.Errorf("请求掌上生活返回报错,err:%s", r, response.RespMsg)
return nil, fmt.Errorf(response.RespMsg)
}

View File

@ -101,7 +101,7 @@ func (c *CpnRepoImpl) Query(ctx context.Context, orderWechat *bo.OrderBo) (vo.Or
return 0, err
}
log.Errorf("请求微信返回错误=%s", string(bodyBytes))
log.Errorf("请求微信返回错误:%s", string(bodyBytes))
if err = json.Unmarshal(bodyBytes, &ErrBody); err != nil {
return 0, err

View File

@ -38,6 +38,8 @@ func (w *WechatNotifyConsumer) Start(ctx context.Context) error {
return nil
}
fmt.Printf("wechat notify consumer 启动中...")
// 设置HTTP协议客户端接入点进入消息队列RocketMQ版控制台实例详情页面的接入点区域查看。
endpoint := w.conf.WechatNotifyMQ.EndPoint
// 请确保环境变量ALIBABA_CLOUD_ACCESS_KEY_ID、ALIBABA_CLOUD_ACCESS_KEY_SECRET已设置。