Commit c5cf798d authored by hangjun83's avatar hangjun83

接口安全认证

parent f031ba45
......@@ -33,6 +33,7 @@ class OrdersController extends Controller
public function __construct(BhuaOrdersService $bhuaOrdersService)
{
$this->bhuaOrdersService = $bhuaOrdersService;
$this->controllerType = 'bh';
}
/**
......@@ -130,6 +131,9 @@ class OrdersController extends Controller
$requestParams = $this->formatKeysfromArray($request->all(),'toUnderScore');
$requestParams = array_merge($requestParams,['customer_code' => $customerCode]);
try{
$this->checkCustomerType($customerCode,$this->controllerType);
$orderDetail = $this->bhuaOrdersService->createNewCustomerOrders($requestParams);
if($orderDetail){
$orderDetail = $this->formatKeysfromArray($orderDetail,'toCamelCase');
......
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