Commit d2a02398 authored by hangjun83's avatar hangjun83

百化接口

parent 53e61dc8
......@@ -23,6 +23,7 @@ class CustomersController extends Controller
$message = [
'customerCode.required' => "客户编号必传",
'customerType.required' => "客户类型必传",
'customerCompany.required' => "客户公司必传",
];
$this->validateRequest($request, $message);
......
......@@ -39,11 +39,11 @@ $api->version('v1', function($api) {
// 百化接口
$api->group(['namespace'=>'App\Http\Controllers\V1\Bhua','middleware' => ['throttle:60,1','apiAuth'], 'providers' => 'jwt'], function($api) {
// 新建订单
$api->post('/openapi/Bhua/orders/createBhuaOrders', ['permission' => 'orders.createBhuaOrders', 'uses'=>'OrdersController@createCustomerNewOrder']);
$api->post('/openapi/bhua/orders/createBhuaOrders', ['permission' => 'orders.createBhuaOrders', 'uses'=>'OrdersController@createCustomerNewOrder']);
});
$api->group(['namespace'=>'App\Http\Controllers\V1\Bhua','middleware' => ['throttle:60,1','apiAuth'], 'providers' => 'jwt'], function($api) {
$api->post('/openapi/Bhua/products/getAllBrands', ['permission' => 'orders.getAllBrands', 'uses'=>'ProductsController@getAllBrands']);
$api->post('/openapi/bhua/products/getAllBrands', ['permission' => 'orders.getAllBrands', 'uses'=>'ProductsController@getAllBrands']);
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment