ubox 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/lib/ubox.rb +5 -0
- data/lib/ubox/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: 3b543a18379473b965419423095cfb1e7abd70c6
|
4
|
+
data.tar.gz: 69bf6b9d72504242ff5cd85096880ff0344915e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/ubox.rb
CHANGED
data/lib/ubox/version.rb
CHANGED