Forráskód Böngészése

wip:手机号取字段修改

wkyuer 3 hónapja
szülő
commit
e6731b6e49
1 módosított fájl, 2 hozzáadás és 2 törlés
  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",
 			Type:    "2",
 			Id:      fmt.Sprintf("id:%d", id), //因为orderCode不唯一,此处禁止使用orderCode
 			Id:      fmt.Sprintf("id:%d", id), //因为orderCode不唯一,此处禁止使用orderCode
 			Notes:   remark,
 			Notes:   remark,
-			Lxdh:    gconv.String(m["phone"]),
+			Lxdh:    gconv.String(m["company_phone"]),
 			Fhr:     g.Cfg().MustGet(ctx, "company.hfr", "贺鹏飞").String(),
 			Fhr:     g.Cfg().MustGet(ctx, "company.hfr", "贺鹏飞").String(),
 			Xsfkhh:  g.Cfg().MustGet(ctx, "company.bank", "").String(),
 			Xsfkhh:  g.Cfg().MustGet(ctx, "company.bank", "").String(),
 			Xsfyhzh: g.Cfg().MustGet(ctx, "company.bankNum", "").String(),
 			Xsfyhzh: g.Cfg().MustGet(ctx, "company.bankNum", "").String(),
@@ -137,7 +137,7 @@ func (im *InvoiceManager) multipleOrdersMakeInvoice(ctx context.Context) (total,
 			Type:    "2",
 			Type:    "2",
 			Id:      fmt.Sprintf("only_Identifying:%s", onlyIdentifying),
 			Id:      fmt.Sprintf("only_Identifying:%s", onlyIdentifying),
 			Notes:   remark,
 			Notes:   remark,
-			Lxdh:    gconv.String(m["phone"]),
+			Lxdh:    gconv.String(m["company_phone"]),
 			Fhr:     g.Cfg().MustGet(ctx, "company.hfr", "贺鹏飞").String(),
 			Fhr:     g.Cfg().MustGet(ctx, "company.hfr", "贺鹏飞").String(),
 			Xsfkhh:  g.Cfg().MustGet(ctx, "company.bank", "").String(),
 			Xsfkhh:  g.Cfg().MustGet(ctx, "company.bank", "").String(),
 			Xsfyhzh: g.Cfg().MustGet(ctx, "company.bankNum", "").String(),
 			Xsfyhzh: g.Cfg().MustGet(ctx, "company.bankNum", "").String(),