ubox 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -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: bf3172df50aa56c227751f00e288ee2831fec66d
|
4
|
+
data.tar.gz: d246972a9f42c2216cf1ba53e09c4802b1052b95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 550282ec578a698343df9a8594baa75887153393f689c69b41c842aed28b43f5f68cd383028577083e66dbcc4a988122e5fe8a8f183bc8a5cd2efe3517d45e7f
|
7
|
+
data.tar.gz: ba40c15c7319f4cb71892bda478c304a9d7bbd236551dd30ab1d5ef565a0318d9da66128e76fb093d0d1e3fd9c564a2b5919faa24c3fddb4d6384e1bef21d33d
|
data/README.md
CHANGED
@@ -332,6 +332,28 @@ products = Ubox.product_list(vmid: '0061029')
|
|
332
332
|
}
|
333
333
|
}
|
334
334
|
```
|
335
|
+
### orderCode 根据商品和售货机买码接口
|
336
|
+
```ruby
|
337
|
+
delivery_code = Ubox.order_code(vmid: '0061029',
|
338
|
+
product_id: list['body']['products'][0]['id'],
|
339
|
+
app_uid: Random.rand_str(32),
|
340
|
+
app_tran_id: Random.rand_str(32))
|
341
|
+
```
|
342
|
+
```json
|
343
|
+
{
|
344
|
+
"head": {
|
345
|
+
"return_code": 200,
|
346
|
+
"return_msg": "正常响应"
|
347
|
+
},
|
348
|
+
"body": {
|
349
|
+
"delivery_code": "53830",
|
350
|
+
"vmid": "0061029",
|
351
|
+
"expire_time": 1464862845,
|
352
|
+
"box_number": "A07",
|
353
|
+
"tran_id": "106179946"
|
354
|
+
}
|
355
|
+
}
|
356
|
+
```
|
335
357
|
|
336
358
|
## Development
|
337
359
|
|
data/lib/ubox.rb
CHANGED
data/lib/ubox/version.rb
CHANGED