guanyi-erp 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guanyi_erp/request.rb +1 -1
- data/lib/guanyi_erp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec373f9a3b44e23bf63cc155be778fabd34aad78
|
4
|
+
data.tar.gz: d3b346207b5fbb2c88a4fb972138cc9926f4078a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce797e7a149521004b29c7067042826267b9c618fee2a593b1497393fd14eb26bfaf5f09c519272b221236bcc48ceb67c5751979d50a93f0dab2a81c8a0f954
|
7
|
+
data.tar.gz: abaca6ea48af6afeac275178f6b68fd49e21d0959e5e388fa711542d79e43a90d8e26d26344a2530300897c4c7ddca117d2a453c0470cd2921732556e9f5bd82
|
data/lib/guanyi_erp/request.rb
CHANGED
@@ -30,7 +30,7 @@ module GuanyiErp
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.sign(body_hash)
|
33
|
-
Digest::MD5.hexdigest("#{GuanyiErp::Config.secret}#{body_hash.to_json}#{GuanyiErp::Config.secret}")
|
33
|
+
Digest::MD5.hexdigest("#{GuanyiErp::Config.secret}#{body_hash.to_json.gsub(/\\u([0-9a-z]{4})/){|s| [$1.to_i(16)].pack("U")}}#{GuanyiErp::Config.secret}")
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/lib/guanyi_erp/version.rb
CHANGED