Ver Fonte

Fixed bug

zhou.xiaoning há 2 anos atrás
pai
commit
bcf3ae73c6
1 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 4
      controllers/tencent/qian.go

+ 3 - 4
controllers/tencent/qian.go

@@ -10,7 +10,6 @@ import (
 	"mtp2_if/services/tencent"
 	"mtp2_if/utils"
 	"net/http"
-	"strconv"
 
 	"github.com/gin-gonic/gin"
 )
@@ -246,12 +245,12 @@ func CreateFlowByTemplateDirectly(c *gin.Context) {
 	}
 
 	// 构建电子签平台合同模板名称
-	// 格式:所属会员ID_类型标志_合同模板名称;例如 "1000_P_风险提示书",个人为P企业为A
+	// 格式:类型标志_合同模板名称;例如 "P_风险提示书",个人为P企业为E
 	flag := "P"
 	if req.UserType == 2 {
-		flag = "A"
+		flag = "E"
 	}
-	tmplateName := fmt.Sprintf("%s_%s_%s", strconv.Itoa(int(record.AREAUSERID)), flag, record.TEMPLATENAME)
+	tmplateName := fmt.Sprintf("%s_%s", flag, record.TEMPLATENAME)
 
 	personName := ""
 	personMobile := ""