ubox 0.2.0 → 0.2.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -0
  3. data/lib/ubox.rb +5 -0
  4. data/lib/ubox/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68a992421e78dc5d648c01eccfa1f4b3ca8ba48a
4
- data.tar.gz: 7c8c93d020bb5fe67ed23e4dbc83db013814736f
3
+ metadata.gz: 3b543a18379473b965419423095cfb1e7abd70c6
4
+ data.tar.gz: 69bf6b9d72504242ff5cd85096880ff0344915e8
5
5
  SHA512:
6
- metadata.gz: 011d275f263b932d34ef039e50d22ee4145cb5e21a1c264ebf71be02849be12db9d5c0cc9f4582ffc6f387b82915950ba619e1b3c44ed956d0b7b5f56fe01b9e
7
- data.tar.gz: 85db45c3c24f7ebcf37ef30d2cad61351c85f3c1a08776e0ba3ee16cc270073704e302a94c4f8b9252ea4e67e87038844653b482f6819712c543a184f073d3f2
6
+ metadata.gz: afb815679b21444d8189fe505822dd88df09dd856ba293d46e8c09d03a8c5326fc8d1a5ec813a78ba621704b05acd80f4abacd03851f0b17987858027daa4daa
7
+ data.tar.gz: 6c00c517665f9501e71bf647d19bb70c81dbbd5a87b994c3c36d2a3305c3560cf6857c1b1403cb3e8f1988770e23584b2e15b9e1ec07e45dc3eb2a822cf170b2
data/README.md CHANGED
@@ -366,6 +366,7 @@ deliver = Ubox.deliver_trade(tran_id: delivery_code['body']['delivery_code'])
366
366
  ```ruby
367
367
  in_vm = Ubox.check_product_in_vm(vmid: '0061029', product_id: 19458, vTypeId: 1)
368
368
  ```
369
+
369
370
  ```json
370
371
  {
371
372
  "head": {
@@ -373,7 +374,21 @@ in_vm = Ubox.check_product_in_vm(vmid: '0061029', product_id: 19458, vTypeId: 1)
373
374
  "return_msg": "不支持售卖"
374
375
  }
375
376
  }
377
+ ```
378
+
379
+ ### checkVmstatus 检查售货机是否联网
380
+ ```ruby
381
+ vm_status = Ubox.check_vm_status(vmid: '0061029')
382
+ ```
383
+
376
384
  ```json
385
+ {
386
+ "head": {
387
+ "return_code": 200,
388
+ "return_msg": "正常响应"
389
+ }
390
+ }
391
+ ```
377
392
 
378
393
  ## Development
379
394
 
@@ -97,4 +97,9 @@ module Ubox
97
97
  def check_product_in_vm(attributes)
98
98
  post_request('/checkProductInVm', attributes)
99
99
  end
100
+
101
+ #检查售货机是否联网
102
+ def check_vm_status(attributes)
103
+ post_request('/checkVmstatus', attributes)
104
+ end
100
105
  end
@@ -1,3 +1,3 @@
1
1
  module Ubox
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ubox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saxer