mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-25 11:58:33 +08:00
任务,通知功能完成
This commit is contained in:
@@ -3,7 +3,6 @@ package utils
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/kakuilan/kgo"
|
||||
"log"
|
||||
"strings"
|
||||
"text/template"
|
||||
)
|
||||
@@ -78,7 +77,6 @@ func DeptPCIds(deptIds []string, id int64, isP bool) []int64 {
|
||||
is := true
|
||||
for _, deptId := range deptIds {
|
||||
did := kgo.KConv.Str2Int64(deptId)
|
||||
log.Println(did)
|
||||
if is {
|
||||
pRes = append(pRes, did)
|
||||
}
|
||||
|
||||
@@ -17,10 +17,8 @@ func TestGetRealAddressByIP(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestDeptPCIds(t *testing.T) {
|
||||
ss := strings.Trim("/0/2/6/4", "/")
|
||||
|
||||
split := strings.Split(ss, "/")
|
||||
split := strings.Split(strings.Trim("/0/2", "/"), "/")
|
||||
log.Println("split", split)
|
||||
ids := DeptPCIds(split, 4, false)
|
||||
ids := DeptPCIds(split, 2, true)
|
||||
t.Log(ids)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user