Compare commits
No commits in common. "792a07057cbbcc10c7033d58bac549df3ffe5a47" and "d5746221fbb8ee3a8fa693ab946fbf08958bbbe6" have entirely different histories.
792a07057c
...
d5746221fb
@ -301,25 +301,29 @@ func VerificationSignature(c *gin.Context) {
|
||||
// service.Success(c, res)
|
||||
// return
|
||||
//}
|
||||
fmt.Println("==================== 2222222222222222222>>>>", customerID)
|
||||
expirationTime, err := time.Parse("2006-01-02 15:04:05", order.ExpirationTime)
|
||||
if err != nil {
|
||||
service.Success(c, res)
|
||||
return
|
||||
}
|
||||
fmt.Println("==================== 3333333333333333333>>>", expirationTime)
|
||||
if expirationTime.Before(time.Now()) {
|
||||
service.Success(c, res)
|
||||
return
|
||||
}
|
||||
fmt.Println("==================== 4444444444444444444>>>", order.ReSignature)
|
||||
if order.ReSignature == 1 {
|
||||
res.Signature = true
|
||||
contract := ContractUrl
|
||||
expirationDate := expirationTime.Format("2006-01-02")
|
||||
signContract, err := logic.SignContractV2(userInfo.SubNum, contract, 0, expirationDate, userInfo.Name, userInfo.IdNumber, userInfo.PlaceOfResidence)
|
||||
if err != nil {
|
||||
service.Error(c, err)
|
||||
return
|
||||
}
|
||||
res.SignatureUrl = signContract
|
||||
//contract := ContractUrl
|
||||
//expirationDate := expirationTime.Format("2006-01-02")
|
||||
//signContract, err := logic.SignContractV2(userInfo.SubNum, contract, 0, expirationDate, userInfo.Name, userInfo.IdNumber, userInfo.PlaceOfResidence)
|
||||
//if err != nil {
|
||||
// fmt.Println("生成签名错误:", err)
|
||||
// service.Error(c, err)
|
||||
// return
|
||||
//}
|
||||
//res.SignatureUrl = signContract
|
||||
}
|
||||
|
||||
service.Success(c, res)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user