升级至8069版本:版本号更新/代理配置系统/红包计时埋点/长连接重构/回调修复

This commit is contained in:
2026-02-26 10:44:13 +08:00
parent 7cbd3d061d
commit 40a74d2ea7
38 changed files with 3639 additions and 235 deletions
+12 -1
View File
@@ -1316,15 +1316,26 @@ func SendOpenWxHB(userInfo *baseinfo.UserInfo, hongBaoOpenItem *baseinfo.HongBao
// fmt.Println("\nurlPath: ")
// fmt.Println(urlPath)
// 打包发送数据
marshalStartMs := time.Now().UnixMilli()
srcData, _ := proto.Marshal(&request)
marshalEndMs := time.Now().UnixMilli()
packStartMs := time.Now().UnixMilli()
sendEncodeData := Pack(userInfo, srcData, RequestType, 5)
packEndMs := time.Now().UnixMilli()
httpStartMs := time.Now().UnixMilli()
resp, err := mmtls.MMHTTPPostData(userInfo.MMInfo, urlPath, sendEncodeData)
httpEndMs := time.Now().UnixMilli()
if err != nil {
return nil, err
}
return DecodePackHeader(resp, nil)
decodeStartMs := time.Now().UnixMilli()
ph, err := DecodePackHeader(resp, nil)
decodeEndMs := time.Now().UnixMilli()
fmt.Printf("OpenWxHB细分 marshal=%dms pack=%dms http=%dms decodePackHeader=%dms\n",
marshalEndMs-marshalStartMs, packEndMs-packStartMs, httpEndMs-httpStartMs, decodeEndMs-decodeStartMs)
return ph, err
}
func SendOpenUninoHB(userInfo *baseinfo.UserInfo, hongBaoOpenItem *baseinfo.HongBaoOpenItem) (*baseinfo.PackHeader, error) {