otto
1 year ago
commit
304aaa0110
12 changed files with 459 additions and 0 deletions
@ -0,0 +1,40 @@
|
||||
# Reference https://github.com/github/gitignore/blob/master/Go.gitignore |
||||
# Binaries for programs and plugins |
||||
*.exe |
||||
*.exe~ |
||||
*.dll |
||||
*.so |
||||
*.dylib |
||||
|
||||
# Test binary, built with `go test -c` |
||||
*.test |
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE |
||||
*.out |
||||
|
||||
# Dependency directories (remove the comment below to include it) |
||||
vendor/ |
||||
|
||||
# Go workspace file |
||||
go.work |
||||
|
||||
# Compiled Object files, Static and Dynamic libs (Shared Objects) |
||||
*.o |
||||
*.a |
||||
*.so |
||||
|
||||
# OS General |
||||
Thumbs.db |
||||
.DS_Store |
||||
|
||||
# project |
||||
*.cert |
||||
*.key |
||||
*.log |
||||
bin/ |
||||
# Develop tools |
||||
.vscode/ |
||||
.idea/ |
||||
*.swp |
||||
go.sum |
||||
./main |
@ -0,0 +1,29 @@
|
||||
FROM golang:1.20.5 AS builder |
||||
|
||||
#ENV CGO_ENABLED 0 |
||||
#ENV GOOS linux |
||||
|
||||
COPY . /src |
||||
WORKDIR /src |
||||
|
||||
#RUN export GIT_TERMINAL_PROMPT=1 |
||||
#RUN git config --global url."git.gz.internal.jumaiyx.cn:222".insteadof "https://git.gz.internal.jumaiyx.cn/" |
||||
#RUN go env -w GOPROXY="https://goproxy.cn" |
||||
#RUN go env -w GOINSECURE="git.gz.internal.jumaiyx.cn" |
||||
#RUN go env -w GOPRIVATE="git.gz.internal.jumaiyx.cn/" |
||||
#RUN go env -w GONOSUMDB="git.gz.internal.jumaiyx.cn/" |
||||
#RUN go env -w GONOPROXY="git.gz.internal.jumaiyx.cn/" |
||||
#RUN go env |
||||
RUN go mod tidy |
||||
RUN go |
||||
|
||||
FROM harbor.homieyy.com/base/alpine:3.13 |
||||
|
||||
RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories |
||||
RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata |
||||
|
||||
WORKDIR /app |
||||
COPY --from=builder /src/main /app/server |
||||
COPY --from=builder /src/configs /app/configs |
||||
#EXPOSE 9000 |
||||
ENTRYPOINT ["./main"] |
@ -0,0 +1,28 @@
|
||||
#!/bin/bash |
||||
#version=git log --format='%H' -n1 |
||||
project_name="hotspot-queue" |
||||
version=$(git log --format='%H' -n1) |
||||
br=$(git rev-parse --abbrev-ref HEAD) |
||||
|
||||
if [ ! -n "$version" ] ;then |
||||
echo "未获取到版本信息" |
||||
else |
||||
echo "当前分支:$br" |
||||
environment=$br |
||||
echo "打包的环境:$environment" |
||||
echo "打包版本号:$version" |
||||
echo "项目名称:$project_name" |
||||
|
||||
# go mod tidy |
||||
# make build |
||||
|
||||
echo "======登录镜像仓库======" |
||||
docker login -u jumai -p VaHBCfY11cv1 https://harbor.homieyy.com |
||||
echo "======build======" |
||||
docker build -t harbor.homieyy.com/job/$environment/$project_name:latest . |
||||
echo "======tag=======" |
||||
docker tag harbor.homieyy.com/job/$environment/$project_name:latest harbor.homieyy.com/job/$environment/$project_name:$version |
||||
echo "======push=======" |
||||
docker push harbor.homieyy.com/job/$environment/$project_name:$version |
||||
fi |
||||
|
@ -0,0 +1,7 @@
|
||||
package main |
||||
|
||||
import "git.gz.internal.jumaiyx.cn/job/hotspot_queue/task" |
||||
|
||||
func main() { |
||||
task.NewTask() |
||||
} |
@ -0,0 +1,19 @@
|
||||
apiVersion: v1 |
||||
clusters: |
||||
- cluster: |
||||
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJek1EVXlNekEzTXpBME9Gb1hEVE16TURVeU1EQTNNekEwT0Zvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pD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DM4T1U5Yy9HaE5GUGhPdTdCMEVyb1RIbz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= |
||||
server: https://192.168.1.156:6443 |
||||
name: kubernetes |
||||
contexts: |
||||
- context: |
||||
cluster: kubernetes |
||||
user: kubernetes-admin |
||||
name: kubernetes-admin@kubernetes |
||||
current-context: kubernetes-admin@kubernetes |
||||
kind: Config |
||||
preferences: {} |
||||
users: |
||||
- name: kubernetes-admin |
||||
user: |
||||
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM4akNDQWRxZ0F3SUJBZ0lJTWQ1OWc1L241TkF3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TXpBMU1qTXdOek13TkRoYUZ3MHlOREExTWpJd056TXdOVEJhTURReApGekFWQmdOVkJBb1REbk41YzNSbGJUcHRZWE4wWlhKek1Sa3dGd1lEVlFRREV4QnJkV0psY201bGRHVnpMV0ZrCmJXbHVNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTJqMmhCMG5DZytFaE0zejUKNW1RVHVZdmVSblZ5blVRemJwcWtleVNOR005LzRJYXVVNEg4by9VRE5vQ1JZNnBBdWpLUWNkc2ZJMEdGUkxTRAp4ZGtuQkJGYlVMRnptUHkwdEJiQkVkMm1pS3B2NktpaC9qRk0xTWFHY0l2R29nRnFrRDNrU3pMVGRKRnQ1OThMCkI3b21yTzZLRFlLakJXMjlydGdPNnRDWlUrUG12RWRpbStGRDIrb2VYY0kzbktzbE1xQ3FrOFZ0aUxWNFFtWWgKbG1JZHlva2VpZG5idXprM3p4bjdyK3p2Zi9sTUFOSDRvM0p5SVRaZUZHRW9PK3owZkNjZkhMRUN5ZkxWR0dxbgpTUVBIMUVMZS80a212c1BlQWdzYlI4WjArY3FTZzFMdkpxMGUydXpGNUlOZ2xPMTlDcCtldW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KNHVnM1dnZ3R5aVVnOW44RzVnVFVVWExIdDM4T1U5Yy9HaE5GUGhPdTdCMEVyb1RIbz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= |
||||
server: https://192.168.1.156:6443 |
||||
name: kubernetes |
||||
contexts: |
||||
- context: |
||||
cluster: kubernetes |
||||
user: kubernetes-admin |
||||
name: kubernetes-admin@kubernetes |
||||
current-context: kubernetes-admin@kubernetes |
||||
kind: Config |
||||
preferences: {} |
||||
users: |
||||
- name: kubernetes-admin |
||||
user: |
||||
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM4akNDQWRxZ0F3SUJBZ0lJTWQ1OWc1L241TkF3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TXpBMU1qTXdOek13TkRoYUZ3MHlOREExTWpJd056TXdOVEJhTURReApGekFWQmdOVkJBb1REbk41YzNSbGJUcHRZWE4wWlhKek1Sa3dGd1lEVlFRREV4QnJkV0psY201bGRHVnpMV0ZrCmJXbHVNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTJqMmhCMG5DZytFaE0zejUKNW1RVHVZdmVSblZ5blVRemJwcWtleVNOR005LzRJYXVVNEg4by9VRE5vQ1JZNnBBdWpLUWNkc2ZJMEdGUkxTRAp4ZGtuQkJGYlVMRnptUHkwdEJiQkVkMm1pS3B2NktpaC9qRk0xTWFHY0l2R29nRnFrRDNrU3pMVGRKRnQ1OThMCkI3b21yTzZLRFlLakJXMjlydGdPNnRDWlUrUG12RWRpbStGRDIrb2VYY0kzbktzbE1xQ3FrOFZ0aUxWNFFtWWgKbG1JZHlva2VpZG5idXprM3p4bjdyK3p2Zi9sTUFOSDRvM0p5SVRaZUZHRW9PK3owZkNjZkhMRUN5ZkxWR0dxbgpTUVBIMUVMZS80a212c1BlQWdzYlI4WjArY3FT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T0doeWF3ZWtETXdHM24wMVFiUzBQaWcwcHBXUQoycTh5WXI2dnNxc0V4cDZSTzZ3L2lyTWxIeVZ5OFdOOUVweXp0NXhSYVErY1ZQa0NLTGpMcXprWVhzdz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= |
||||
server: https://192.168.0.43 |
||||
name: cls-bqjidkhq |
||||
contexts: |
||||
- context: |
||||
cluster: cls-bqjidkhq |
||||
user: "100029745731" |
||||
name: cls-bqjidkhq-100029745731-context-default |
||||
current-context: cls-bqjidkhq-100029745731-context-default |
||||
kind: Config |
||||
preferences: {} |
||||
users: |
||||
- name: "100029745731" |
||||
user: |
||||
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURERENDQWZTZ0F3SUJBZ0lJVkFhd0hHbEc4TXN3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TXpBM01qY3dNak0yTlRoYUZ3MDBNekEzTWpjd01qTTJOVGRhTURZeApFakFRQmdOVkJBb1RDWFJyWlRwMWMyVnljekVnTUI0R0ExVUVBeE1YTVRBd01ESTVOelExTnpNeExURTJPVEEwCk1qVTBNVGN3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRRFkzQi9pNkhFbUxHWG4KSGFxOVh3S0RRMTFmYVRDWmpQUXRHc1I2dGJrZ1FiOVFJUysyL2R4Zmk2Zkwyekw4c1ZLN240OHdPUURDaWoxcApQdnY2ZDU4aDNyNUI5cWRpN09CdUZ2NnB2QVVzVnQ0MGVuREhHdTZMUWhiM2pPYlNHWW5TTk9tcGN1V1YxNGF5CnhSbDVvRlNxQnJERHpNSkduUEhpa0NCUmdpNmUwYkRxWjllVm9tbFFWdkwwb0czallYTFFpcDVFSGttSjhRQy8KeDRLR2tTbkdtTDk0RXdSYS9OYzNmM29xODlhdXFmbWVkeHhMNVZ6O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NMVd6U3FWZU1UUkN4V3dtamc1ZXJ6dEN3V3RZdlRnc1doMEwKVy96aVA1cE55eDBjQzE0SFk5eTFja1BxdFNjRUJFRlFQRlJRY1hMYXVqaGtKU283TDgybDhaOGttWjEwQ2VtbApFNVN4M3ArUklnalJNU3kydk8zK2RRZElnTmpTcnNxNVYzSnZQZy85MlYxQWYxeGVkSFdYeEJ2WWJOOD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= |
||||
server: https://10.3.252.1:443 |
||||
name: cls-0jzoeas4 |
||||
contexts: |
||||
- context: |
||||
cluster: cls-0jzoeas4 |
||||
user: "100029745731" |
||||
name: cls-0jzoeas4-100029745731-context-default |
||||
current-context: cls-0jzoeas4-100029745731-context-default |
||||
kind: Config |
||||
preferences: {} |
||||
users: |
||||
- name: "100029745731" |
||||
user: |
||||
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURERENDQWZTZ0F3SUJBZ0lJQVBGMVd1a0xpNG93RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TXpBNU1qVXdNakE1TlRoYUZ3MDBNekE1TWpVd01qQTVOVGRhTURZeApFakFRQmdOVkJBb1RDWFJyWlRwMWMyVnljekVnTUI0R0ExVUVBeE1YTVRBd01ESTVOelExTnpNeExURTJPVFUyCk1EYzNPVGN3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRQzNaZDdLMHJWblcxdGoKbFNnaFlYcUZCMlpEOUJrV0Foc1hmV3FjQkVZNjRscmZEOGZxaWJhay9MZms3aHlNVEJaZnRsR3hzV3VXdXFwdApxUDhSMkVqZ0VoNHRCUTNsdGJVcktNd3V2akhQZUROaW9YOTZETWhjQ2VyK0pyKzdEbExkOWlRdFIzeVEwK0lMCjlZT0dsdytkdW5ZWTh1Ykd6ekMwdTRvRmtWSFJWMS9NMD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spot_queue |
||||
|
||||
go 1.20 |
||||
|
||||
require ( |
||||
git.gz.internal.jumaiyx.cn/jm/jmproto v0.0.0-20231031083052-76fc676bf524 |
||||
git.gz.internal.jumaiyx.cn/pkg/client v0.0.0-20231031080505-e9d6750fb998 |
||||
git.gz.internal.jumaiyx.cn/pkg/config/v2 v2.0.0-20231031123738-f6698f93632e |
||||
git.gz.internal.jumaiyx.cn/pkg/jtime v0.0.0-20230627153611-5d9e320123cc |
||||
github.com/redis/go-redis/v9 v9.3.0 |
||||
) |
||||
|
||||
require ( |
||||
git.gz.internal.jumaiyx.cn/pkg/k8s-client/v2 v2.0.3-0.20231031073900-0935c19ca12d // indirect |
||||
git.gz.internal.jumaiyx.cn/pkg/kubediscovery v0.0.0-20231101015739-a581c91458c3 // indirect |
||||
git.gz.internal.jumaiyx.cn/proto/game-server v0.0.0-20231031074443-b9b51900f07a // indirect |
||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect |
||||
github.com/davecgh/go-spew v1.1.1 // indirect |
||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect |
||||
github.com/emicklei/go-restful/v3 v3.11.0 // indirect |
||||
github.com/go-kratos/aegis v0.2.0 // indirect |
||||
github.com/go-kratos/kratos/v2 v2.7.1 // indirect |
||||
github.com/go-logr/logr v1.3.0 // indirect |
||||
github.com/go-openapi/jsonpointer v0.20.0 // indirect |
||||
github.com/go-openapi/jsonreference v0.20.2 // indirect |
||||
github.com/go-openapi/swag v0.22.4 // indirect |
||||
github.com/go-playground/form/v4 v4.2.1 // indirect |
||||
github.com/gogo/protobuf v1.3.2 // indirect |
||||
github.com/golang/protobuf v1.5.3 // indirect |
||||
github.com/google/gnostic-models v0.6.8 // indirect |
||||
github.com/google/gofuzz v1.2.0 // indirect |
||||
github.com/google/uuid v1.4.0 // indirect |
||||
github.com/gorilla/mux v1.8.0 // indirect |
||||
github.com/imdario/mergo v0.3.16 // indirect |
||||
github.com/josharian/intern v1.0.0 // indirect |
||||
github.com/json-iterator/go v1.1.12 // indirect |
||||
github.com/mailru/easyjson v0.7.7 // indirect |
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect |
||||
github.com/modern-go/reflect2 v1.0.2 // indirect |
||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect |
||||
github.com/pkg/errors v0.9.1 // indirect |
||||
github.com/spf13/pflag v1.0.5 // indirect |
||||
golang.org/x/net v0.17.0 // indirect |
||||
golang.org/x/oauth2 v0.13.0 // indirect |
||||
golang.org/x/sys v0.13.0 // indirect |
||||
golang.org/x/term v0.13.0 // indirect |
||||
golang.org/x/text v0.13.0 // indirect |
||||
golang.org/x/time v0.3.0 // indirect |
||||
google.golang.org/appengine v1.6.8 // indirect |
||||
google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect |
||||
google.golang.org/genproto/googleapis/api v0.0.0-20231030173426-d783a09b4405 // indirect |
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect |
||||
google.golang.org/grpc v1.59.0 // indirect |
||||
google.golang.org/protobuf v1.31.0 // indirect |
||||
gopkg.in/inf.v0 v0.9.1 // indirect |
||||
gopkg.in/yaml.v2 v2.4.0 // indirect |
||||
gopkg.in/yaml.v3 v3.0.1 // indirect |
||||
k8s.io/api v0.28.3 // indirect |
||||
k8s.io/apimachinery v0.28.3 // indirect |
||||
k8s.io/client-go v0.28.3 // indirect |
||||
k8s.io/klog/v2 v2.110.1 // indirect |
||||
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect |
||||
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect |
||||
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect |
||||
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect |
||||
sigs.k8s.io/yaml v1.4.0 // indirect |
||||
) |
@ -0,0 +1,24 @@
|
||||
apiVersion: batch/v1beta1 |
||||
kind: CronJob |
||||
metadata: |
||||
name: hotspot-queue-job |
||||
namespace: dev |
||||
spec: |
||||
schedule: "0 5 * * *" |
||||
jobTemplate: |
||||
spec: |
||||
template: |
||||
spec: |
||||
containers: |
||||
- name: hotspot-queue-job |
||||
image: registry.internal.jumaiyx.cn/job/room-server-clear:1 |
||||
|
||||
imagePullPolicy: IfNotPresent |
||||
command: |
||||
- ./server |
||||
env: |
||||
- name: JM_ENVIRONMENT |
||||
value: dev |
||||
restartPolicy: OnFailure |
||||
imagePullSecrets: |
||||
- name: registry-harbor |
Binary file not shown.
@ -0,0 +1,188 @@
|
||||
package task |
||||
|
||||
import ( |
||||
"context" |
||||
"fmt" |
||||
giftv1 "git.gz.internal.jumaiyx.cn/jm/jmproto/gift/v1" |
||||
livev1 "git.gz.internal.jumaiyx.cn/jm/jmproto/live/v1" |
||||
v2 "git.gz.internal.jumaiyx.cn/jm/jmproto/room/v2" |
||||
"git.gz.internal.jumaiyx.cn/pkg/client" |
||||
configv2 "git.gz.internal.jumaiyx.cn/pkg/config/v2" |
||||
"git.gz.internal.jumaiyx.cn/pkg/config/v2/cproto" |
||||
"git.gz.internal.jumaiyx.cn/pkg/jtime" |
||||
"github.com/redis/go-redis/v9" |
||||
"strconv" |
||||
"sync" |
||||
"time" |
||||
) |
||||
|
||||
const ( |
||||
hotspotQueueKey = "room:hotspot:sort" |
||||
hotKey = "room:hot:ranking" |
||||
) |
||||
|
||||
var ( |
||||
redisInstance *redis.Client |
||||
once sync.Once |
||||
) |
||||
|
||||
func NewRedis() *redis.Client { |
||||
redisConfig := &cproto.Redis{} |
||||
err := configv2.Get(context.Background(), configv2.Redis, redisConfig) |
||||
if err != nil { |
||||
|
||||
} |
||||
once.Do(func() { |
||||
redisInstance = redis.NewClient(&redis.Options{ |
||||
Addr: redisConfig.Addr, |
||||
Password: redisConfig.Password, |
||||
PoolSize: 10, |
||||
ReadTimeout: 100 * time.Second, |
||||
WriteTimeout: 100 * time.Second, |
||||
}) |
||||
}) |
||||
return redisInstance |
||||
} |
||||
|
||||
type Task struct { |
||||
} |
||||
|
||||
func NewTask() { |
||||
for { |
||||
redisClient := NewRedis() |
||||
ctx := context.Background() |
||||
lLen := redisClient.LLen(ctx, hotspotQueueKey).Val() |
||||
if lLen == 0 { |
||||
return |
||||
} |
||||
result, err := redisClient.RPop(ctx, hotspotQueueKey).Result() |
||||
if err != nil { |
||||
continue |
||||
} |
||||
id, _ := strconv.Atoi(result) |
||||
if id == 0 { |
||||
continue |
||||
} |
||||
roomId := int64(id) |
||||
var ( |
||||
value int64 // 房间初始热度值
|
||||
currentOnlineTotal int64 // 实时在线人数总值
|
||||
todayOnlineTotal int64 // 一天的人数总值
|
||||
amountTotal int64 // 金额总数值
|
||||
//lastAmountTotal int64 // 上次金额总值
|
||||
) |
||||
now := time.Now() |
||||
// 获取房间信息
|
||||
roomClientV2, err := client.GetRoomClientV2(ctx) |
||||
//roomClientV2, err := client.GetRoomClientLocalV2("127.0.0.1:9001")
|
||||
if err != nil { |
||||
return |
||||
} |
||||
roomRsp, err := roomClientV2.GetRoom(ctx, &v2.GetRoomReq{ |
||||
RoomId: roomId, |
||||
}) |
||||
if err != nil { |
||||
continue |
||||
} |
||||
|
||||
// 忽略下播的房间和广场房间
|
||||
if roomRsp.Status != v2.RoomStatus_RoomStatusUp || roomRsp.RoomType == v2.RoomType_Hall { |
||||
return |
||||
} |
||||
|
||||
// 获取房间
|
||||
// 获取房间初始值
|
||||
value = 100 |
||||
|
||||
liveClientV2, err := client.GetLiveClient(ctx) |
||||
if err != nil { |
||||
continue |
||||
} |
||||
defaultHotValueResp, err := liveClientV2.GetDefaultHotValueList(ctx, &livev1.GetDefaultHotValueListReq{ |
||||
RoomList: []int64{roomId}, |
||||
}) |
||||
if err != nil { |
||||
continue |
||||
} |
||||
if len(defaultHotValueResp.Items) != 0 { |
||||
value = int64(defaultHotValueResp.Items[0].HotValue) |
||||
} |
||||
// 获取房间在线人数
|
||||
onlineCountRsp, err := roomClientV2.GetOnlineListCount(ctx, &v2.GetOnlineListReq{ |
||||
RoomIdList: []int64{roomId}, |
||||
StatusList: []int32{1}, |
||||
}) |
||||
if err != nil { |
||||
continue |
||||
} |
||||
currentOnlineTotal = onlineCountRsp.Total |
||||
|
||||
// 一天之前的时间
|
||||
//todayMinutesSecond := (now.Unix() - 10*60) * 1000
|
||||
todayMinutes := jtime.TimeTimestamp(jtime.SecondsAgoTime(now, -(86400))) |
||||
|
||||
// 一个星期前的时间
|
||||
prevWeekTime := jtime.SecondsAgoTime(time.Now(), -86400*7) |
||||
startTime := prevWeekTime.UnixMilli() |
||||
|
||||
// 获取房间总流水
|
||||
giftClient, err := client.GetGiftClient(ctx) |
||||
if err != nil { |
||||
return |
||||
} |
||||
giftRsp, err := giftClient.QueryGiveRoomGift(ctx, &giftv1.QueryGiveRoomGiftReq{ |
||||
RoomIdList: []int64{roomId}, |
||||
CreateAtStart: &startTime, |
||||
}) |
||||
if err != nil { |
||||
return |
||||
} |
||||
amountTotal = giftRsp.TotalAmountDiamond + giftRsp.TotalAmountGoldCoins |
||||
|
||||
// 获取一天的总人数
|
||||
lastOnlineCountRsp, err := roomClientV2.GetOnlineListCount(ctx, &v2.GetOnlineListReq{ |
||||
RoomIdList: []int64{roomId}, |
||||
CreatedStart: todayMinutes, |
||||
Deleted: true, |
||||
}) |
||||
if err != nil { |
||||
return |
||||
} |
||||
todayOnlineTotal = lastOnlineCountRsp.Total |
||||
|
||||
// 初始热度值 + (一个小时内总人数 * 10 + 一个星期内总流水) - 时间段内((十分钟之前总数 - 现在总人数) + (十分钟之前总流水 - 总流水【一个星期内】)) = 热度值
|
||||
// 总人数【一天内】+(实时在线人数/总人数)* 10 = 人数热度值
|
||||
// 总流水【一个星期内】 * 10 = 流水热度值
|
||||
//currentOnlineTotal + (todayOnlineTotal * todayOnlineTotal) * 10
|
||||
fmt.Println("amountTotal:", (todayOnlineTotal*todayOnlineTotal)*10) |
||||
fmt.Println("amountTotal:", amountTotal*10) |
||||
v := value + currentOnlineTotal + (todayOnlineTotal*todayOnlineTotal)*10 + amountTotal*10 |
||||
fmt.Println(v) |
||||
//usecase.logger.Info("实际人数:", onlineTotal)
|
||||
//usecase.logger.Info("总流水:", amountTotal)
|
||||
//usecase.logger.Info("十分钟之前总数:", lastOnlineTotal)
|
||||
//usecase.logger.Info("十分钟之前总流水:", lastAmountTotal)
|
||||
//usecase.logger.Info("热度值:", v)
|
||||
|
||||
err = redisClient.HSet(ctx, hotKey, redis.Z{ |
||||
Member: roomId, |
||||
Score: float64(v), |
||||
}).Err() |
||||
if err != nil { |
||||
continue |
||||
} |
||||
|
||||
// 写入数据库
|
||||
hotValue := int32(v) |
||||
_, err = roomClientV2.UpdateRoom(ctx, &v2.UpdateRoomReq{ |
||||
Id: roomId, |
||||
Data: &v2.UpdateRoomReq_Data{ |
||||
HotValue: &hotValue, |
||||
}, |
||||
}) |
||||
if err != nil { |
||||
continue |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue