增加日志

This commit is contained in:
ziming 2025-03-25 16:00:24 +08:00
parent 8f4d6f8035
commit 0ee4a5781b
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ func (c *CpnRepoImpl) Query(ctx context.Context, orderWechat *bo.OrderBo) (vo.Or
func (c *CpnRepoImpl) QueryProduct(ctx context.Context, stockCreatorMchId, stockId string) (*cashcoupons.Stock, error) {
if stockCreatorMchId == "" || stockId == "" {
return nil, err2.ErrorWechatFAIL("商户号或批次号不能为空")
}
client, err := c.GetClient(ctx)
if err != nil {
return nil, err