fix: wecom user agent
CI / changes (push) Successful in 12s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Failing after 25s
CI / chore (push) Successful in 1s
CI / express (push) Successful in 0s
CI / product (push) Successful in 27s
CI / sale (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 25s

This commit is contained in:
zzw
2026-08-31 15:22:44 +08:00
parent 9111cb26e7
commit ce7aa18477
5 changed files with 0 additions and 11 deletions
-2
View File
@@ -20,7 +20,6 @@ const (
applyMd5Key = "keys:"
)
// Data Redis 中的编辑申请状态
type Data struct {
Uid int `json:"uid"`
Id int `json:"id"`
@@ -38,7 +37,6 @@ func md5MapKey(md5 string) string {
return applyProductEditKey + applyMd5Key + md5
}
// Get 读取申请状态
func Get(ctx context.Context, uId, objId int) (Data, error) {
var data Data
if redis.Client == nil {
-1
View File
@@ -55,7 +55,6 @@ func resolveStatus(reqStatus uint32, current uint8) uint8 {
return dao.StatusEnabled
}
// buildAgentsJSON 按 agents 表主键 id 查出应用,落库为 [{id,agent_id,name}]
func buildAgentsJSON(ids []int64) (string, error) {
ids = cleanAgentIds(ids)
if len(ids) == 0 {