|
@@ -21,8 +21,8 @@ type SemJsChatRecord struct {
|
|
|
GrUserID string `gorm:"column:gr_user_id"`
|
|
|
}
|
|
|
|
|
|
-// 会话渠道归因处理
|
|
|
-func getChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
|
+// GetChatChannel 会话渠道归因处理
|
|
|
+func GetChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
|
channel := 7
|
|
|
category := 126
|
|
|
if strings.Contains(chat.ChatURL, "pages") && strings.Split(strings.Split(chat.ChatURL, "?")[1], "=")[0] == "miniapp" {
|