diff --git a/Makefile b/Makefile index 86fc9a1..e3e55e1 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ build: go build -o go-ldap-admin main.go build-linux: - CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o go-ldap-admin main.go + CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o go-ldap-admin main.go && upx -9 go-ldap-admin build-linux-arm: CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -o go-ldap-admin main.go diff --git a/public/common/init_mysql_data.go b/public/common/init_mysql_data.go index 9028976..01754c5 100644 --- a/public/common/init_mysql_data.go +++ b/public/common/init_mysql_data.go @@ -808,7 +808,7 @@ func InitData() { }, { Flag: "wecom_group", - Attributes: datatypes.JSON(`{"groupName":"custom_name_pinyin","remark":"name","sourceDeptId":"parentid","sourceDeptParentId":"id"}`), + Attributes: datatypes.JSON(`{"groupName":"custom_name_pinyin","remark":"name","sourceDeptId":"id","sourceDeptParentId":"parentid"}`), }, { Flag: "wecom_user",