|
@@ -11,7 +11,6 @@ import (
|
|
"time"
|
|
"time"
|
|
)
|
|
)
|
|
|
|
|
|
-
|
|
|
|
type SemJsChatRecord struct {
|
|
type SemJsChatRecord struct {
|
|
ChatID int64 `gorm:"column:CHAT_ID"`
|
|
ChatID int64 `gorm:"column:CHAT_ID"`
|
|
CreateTime time.Time `gorm:"column:CREATE_TIME"`
|
|
CreateTime time.Time `gorm:"column:CREATE_TIME"`
|
|
@@ -22,8 +21,8 @@ type SemJsChatRecord struct {
|
|
GrUserID string `gorm:"column:gr_user_id"`
|
|
GrUserID string `gorm:"column:gr_user_id"`
|
|
}
|
|
}
|
|
|
|
|
|
-// 会话渠道归因处理
|
|
|
|
-func getChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
|
|
|
|
+// GetChatChannel 会话渠道归因处理
|
|
|
|
+func GetChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
channel := 7
|
|
channel := 7
|
|
category := 126
|
|
category := 126
|
|
if strings.Contains(chat.ChatURL, "pages") && strings.Split(strings.Split(chat.ChatURL, "?")[1], "=")[0] == "miniapp" {
|
|
if strings.Contains(chat.ChatURL, "pages") && strings.Split(strings.Split(chat.ChatURL, "?")[1], "=")[0] == "miniapp" {
|
|
@@ -79,7 +78,6 @@ func getChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
return channelCategory
|
|
return channelCategory
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
type ResourceAssessment struct {
|
|
type ResourceAssessment struct {
|
|
ID uint `gorm:"primaryKey" json:"id"` // 留学评估表
|
|
ID uint `gorm:"primaryKey" json:"id"` // 留学评估表
|
|
DataType uint8 `json:"data_type"` // 1.网课 2.api资源 3.专题页 4.工作台录入 5.后台录入 6 小程序
|
|
DataType uint8 `json:"data_type"` // 1.网课 2.api资源 3.专题页 4.工作台录入 5.后台录入 6 小程序
|