Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmhub committed Mar 14, 2022
1 parent e9f05f6 commit 70b227d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion callback_generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"github.com/PuerkitoBio/goquery"
"github.com/miku/zek"
"gitlab.ydjdev.com/ydjai/workweixin/callbacks"
"github.com/zsmhub/workweixin/callbacks"
"html/template"
"io/ioutil"
"net/http"
Expand Down
6 changes: 3 additions & 3 deletions callbacks/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package callbacks

import (
"errors"
"gitlab.ydjdev.com/ydjai/workweixin/internal/encryptor"
"gitlab.ydjdev.com/ydjai/workweixin/internal/envelope"
"gitlab.ydjdev.com/ydjai/workweixin/internal/signature"
"github.com/zsmhub/workweixin/internal/encryptor"
"github.com/zsmhub/workweixin/internal/envelope"
"github.com/zsmhub/workweixin/internal/signature"
"io/ioutil"
"net/http"
"net/url"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gitlab.ydjdev.com/ydjai/workweixin
module github.com/zsmhub/workweixin

go 1.14

Expand Down
3 changes: 0 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ github.com/miku/zek v0.1.11 h1:rUv4Y04VXiZLrV5eGjgQqgffGmSBH+VdOPmE7S6DF70=
github.com/miku/zek v0.1.11/go.mod h1:GVAsQKyyE1uO9uzZze0G2YDmO7uEg2b17ZjDQCh4Bas=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/sethgrid/pester v0.0.0-20190127155807-68a33a018ad0 h1:X9XMOYjxEfAYSy3xK1DzO5dMkkWhs9E9UCcS1IERx2k=
github.com/sethgrid/pester v0.0.0-20190127155807-68a33a018ad0/go.mod h1:Ad7IjTpvzZO8Fl0vh9AzQ+j/jYZfyp2diGwI8m5q+ns=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
Expand All @@ -35,7 +34,6 @@ golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da h1:b3NXsE2LusjYGGjL5bxEVZZORm/YEFFrWFjR8eFrw/c=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand All @@ -44,7 +42,6 @@ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9sn
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
Expand Down
2 changes: 1 addition & 1 deletion internal/encryptor/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/base64"
"encoding/binary"
"errors"
"gitlab.ydjdev.com/ydjai/workweixin/internal/encryptor/pkcs7"
"github.com/zsmhub/workweixin/internal/encryptor/pkcs7"
"io"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/envelope/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"crypto/rand"
"encoding/xml"
"errors"
"gitlab.ydjdev.com/ydjai/workweixin/internal/encryptor"
"gitlab.ydjdev.com/ydjai/workweixin/internal/signature"
"github.com/zsmhub/workweixin/internal/encryptor"
"github.com/zsmhub/workweixin/internal/signature"
"io"
"math/big"
"net/url"
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package workweixin
import (
"errors"
"fmt"
"gitlab.ydjdev.com/ydjai/workweixin/apis"
"gitlab.ydjdev.com/ydjai/workweixin/callbacks"
"github.com/zsmhub/workweixin/apis"
"github.com/zsmhub/workweixin/callbacks"
"sync"
)

Expand Down

0 comments on commit 70b227d

Please # to comment.