README.md
1.5 KB
第e仓代售商API
install
composer require lackoxygen/top-warehouse
git
http://47.107.73.162:8099/lackoxygen/top-warehouse.git
配置仓库
{
"type": "git",
"url": "http://47.107.73.162:8099/lackoxygen/top-warehouse.git"
}
配置文件
发布暂时无法生成,手动copy到config
用法
/**
* 订单推送
*/
$response = TopWarehouseFacade::ordersB2cAdd(function (OrdersB2cAddRequest $request){
$request->warehouse_id = 1;
});
/**
* 状态回退
*/
$response = TopWarehouseFacade::orderEntryStatus(function (OrderEntryStatusRequest $request){
});
/**
* 货运装载
*/
$response = TopWarehouseFacade::loadDelivery(function (OrderLoadingDeliveryRequest $request){
});
/**
* 查询库存
*/
$response = TopWarehouseFacade::getStockInventory(function (GetStockInventoryRequest $request){
});
/**
* 验签
*/
TopWarehouseFacade::verify(request()->post());
/**
* 判断数据是否有效
*/
if ($response->isSuccess()){
}
/**
* 异常
*/
\Lackoxygen\TopWarehouse\Exception\Exception\Exception::class;
/**
* 获取返回内容 string
*/
$response->getContents();
/**
* 获取返回内容 array
*/
$response->toArray();