|
...
|
...
|
@@ -21,36 +21,37 @@ http://47.107.73.162:8099/lackoxygen/top-warehouse.git |
|
|
|
|
|
|
|
### 配置文件
|
|
|
|
```
|
|
|
|
发布暂时无法生成,手动copy到config
|
|
|
|
php artisan vendor:publish --tag=lackoxygen-top-warehouse
|
|
|
|
```
|
|
|
|
|
|
|
|
### 用法
|
|
|
|
```
|
|
|
|
try {
|
|
|
|
/**
|
|
|
|
* 订单推送
|
|
|
|
*/
|
|
|
|
$response = TopWarehouseFacade::ordersB2cAdd(function (OrdersB2cAddRequest $request){
|
|
|
|
$response = TopWarehouseFacade::ordersB2cAdd(static function (OrdersB2cAddRequest $request){
|
|
|
|
$request->warehouse_id = 1;
|
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 状态回退
|
|
|
|
*/
|
|
|
|
$response = TopWarehouseFacade::orderEntryStatus(function (OrderEntryStatusRequest $request){
|
|
|
|
$response = TopWarehouseFacade::orderEntryStatus(static function (OrderEntryStatusRequest $request){
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 货运装载
|
|
|
|
*/
|
|
|
|
$response = TopWarehouseFacade::loadDelivery(function (OrderLoadingDeliveryRequest $request){
|
|
|
|
$response = TopWarehouseFacade::loadDelivery(static function (OrderLoadingDeliveryRequest $request){
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询库存
|
|
|
|
*/
|
|
|
|
$response = TopWarehouseFacade::getStockInventory(function (GetStockInventoryRequest $request){
|
|
|
|
$response = TopWarehouseFacade::getStockInventory(static function (GetStockInventoryRequest $request){
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
...
|
...
|
@@ -66,10 +67,7 @@ http://47.107.73.162:8099/lackoxygen/top-warehouse.git |
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 异常
|
|
|
|
*/
|
|
|
|
\Lackoxygen\TopWarehouse\Exception\Exception\Exception::class;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取返回内容 string
|
|
...
|
...
|
@@ -80,6 +78,9 @@ http://47.107.73.162:8099/lackoxygen/top-warehouse.git |
|
|
|
* 获取返回内容 array
|
|
|
|
*/
|
|
|
|
$response->toArray();
|
|
|
|
}catch (Lackoxygen\TopWarehouse\Exception\Exception\Exception $exception){
|
|
|
|
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
...
|
...
|
|