소스 검색

wip:手机号取字段修改

wkyuer 4 달 전
부모
커밋
e6731b6e49
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      internal/service/invoiceMake.go

+ 2 - 2
internal/service/invoiceMake.go

@@ -51,7 +51,7 @@ func (im *InvoiceManager) simpleMakeInvoice(ctx context.Context) (total, okNum i
 			Type:    "2",
 			Id:      fmt.Sprintf("id:%d", id), //因为orderCode不唯一,此处禁止使用orderCode
 			Notes:   remark,
-			Lxdh:    gconv.String(m["phone"]),
+			Lxdh:    gconv.String(m["company_phone"]),
 			Fhr:     g.Cfg().MustGet(ctx, "company.hfr", "贺鹏飞").String(),
 			Xsfkhh:  g.Cfg().MustGet(ctx, "company.bank", "").String(),
 			Xsfyhzh: g.Cfg().MustGet(ctx, "company.bankNum", "").String(),
@@ -137,7 +137,7 @@ func (im *InvoiceManager) multipleOrdersMakeInvoice(ctx context.Context) (total,
 			Type:    "2",
 			Id:      fmt.Sprintf("only_Identifying:%s", onlyIdentifying),
 			Notes:   remark,
-			Lxdh:    gconv.String(m["phone"]),
+			Lxdh:    gconv.String(m["company_phone"]),
 			Fhr:     g.Cfg().MustGet(ctx, "company.hfr", "贺鹏飞").String(),
 			Xsfkhh:  g.Cfg().MustGet(ctx, "company.bank", "").String(),
 			Xsfyhzh: g.Cfg().MustGet(ctx, "company.bankNum", "").String(),