lanxin_open 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/lanxin_open.rb +8 -3
- data/lib/lanxin_open/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZjBlNDM4NWM0YmU3OGYzYjZiYTMzNjhmY2FjYmQ4YjVmNzJjOWI3Yg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZGQ3YWI4NjNlNzUwY2VmMjcwNTU5OWIwYzI5YTYyOTMyZmNhMjg5Zg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YjgxMGE1OGY2NWQyOWVkOWZiY2ZmYTcyNDYzZTc2NjcxYTEzNGQxMzkyZjY5
|
|
10
|
+
MGMxZWVkODU2OGQ0NDNhNmI5NzVmMDFmMTZlNTA2MmE2ZTI5Yjc2ODQ3MDJh
|
|
11
|
+
OTM3OWY3Yzc2MjEyOGQzNmQzYjQ4MzBlYTBhNTczMjNlODQ4YTQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZjkyYWUwMDM4YmY5MDcyNTYzNjIxNTNlNWQxZmU0NDhjMDQxZDg5Y2ZjMTM0
|
|
14
|
+
M2M0MDQ3YTdhMjJjYjFjNzQwYmY2ZDYwNGRhM2RjMjM0YzI0Y2EwNTc1Mzgz
|
|
15
|
+
M2M0ZTM2MmZmZThjZjhlZjRkYzY5MjNmMzA3MTk3OThhY2IyNWM=
|
data/lib/lanxin_open.rb
CHANGED
|
@@ -24,7 +24,7 @@ module LanxinOpen
|
|
|
24
24
|
instance_eval &block
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
def self.
|
|
27
|
+
def self.new_with_params(args)
|
|
28
28
|
OpenPlatformV1.new(args)
|
|
29
29
|
end
|
|
30
30
|
|
|
@@ -127,7 +127,11 @@ module LanxinOpen
|
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
def host_with_port
|
|
130
|
-
|
|
130
|
+
if port and port.length > 0
|
|
131
|
+
"#{host}:#{port}"
|
|
132
|
+
else
|
|
133
|
+
host
|
|
134
|
+
end
|
|
131
135
|
end
|
|
132
136
|
|
|
133
137
|
def lx_url(path)
|
|
@@ -299,7 +303,8 @@ module LanxinOpen
|
|
|
299
303
|
"t_id" => 16,
|
|
300
304
|
"d_id" => 1,
|
|
301
305
|
"url" => "/query_menu.shtml",
|
|
302
|
-
"publicno" => publicno
|
|
306
|
+
"publicno" => publicno,
|
|
307
|
+
"skey" => skey
|
|
303
308
|
}
|
|
304
309
|
req_url = lx_url("/opc/ishow")
|
|
305
310
|
body = encode_resbody(NetUtil.post_req(req_url,params).body)
|
data/lib/lanxin_open/version.rb
CHANGED