修改
This commit is contained in:
parent
75c336209d
commit
baeaf74d8c
@ -118,7 +118,7 @@ func InsertSignature(templatePath string, outputPath string, signImgPath string)
|
||||
return nil
|
||||
}
|
||||
|
||||
func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, contractNo, buyerName, idNo, telNum, address string, price float32, contractDuration int) error {
|
||||
func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, contractNo, buyerName, idNo, telNum, address string, price float32, contractDuration int64) error {
|
||||
pdf := gopdf.GoPdf{}
|
||||
pdf.Start(gopdf.Config{PageSize: *gopdf.PageSizeA4})
|
||||
|
||||
@ -184,7 +184,7 @@ func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, co
|
||||
pdf.Cell(nil, price)
|
||||
|
||||
// 写 有效期
|
||||
t := time.Now().AddDate(contractDuration, 0, 0)
|
||||
t := time.Now().AddDate(int(contractDuration), 0, 0)
|
||||
pdf.SetPage(limitTimePage)
|
||||
pdf.SetX(327)
|
||||
pdf.SetY(358)
|
||||
|
Loading…
Reference in New Issue
Block a user