'syb.opt.voucher.createOrder', ]; $body = [ 'orgNo' => config('crypto.company_no'), 'model' => $data['model']??'', 'voucherAmount' => $data['voucherAmount']??'', 'fullAmount' => $data['fullAmount']??'', 'storeNum' => $data['storeNum']??'', 'validTime' => $data['validTime']??'', ]; $response = $this->sendRequest(config('crypto.url').'/api/1.0.0/voucher/createOrder', $body, $header); $this->saveLogStore("优惠券下单".json_encode($response,320)); return $response; } /** 优惠券订单查询 * @param $data * @return array|mixed|string[] */ public function voucherOrderListPage($data) { $header = [ 'method' => 'syb.opt.voucher.order.listPage', ]; $body = [ 'orgNo' => config('crypto.company_no'), 'orderNo' => $data['orderNo']??'', 'model' => $data['model']??'', 'pageLimit' => $data['pageLimit']??'', 'pageNum' => $data['pageNum']??'', ]; $response = $this->sendRequest(config('crypto.url').'/api/1.0.0/voucher/order/listPage', $body, $header); $this->saveLogStore("优惠券订单查询".json_encode($response,320)); return $response; } /** 卡券查询 * @param $data * @return array|mixed|string[] */ public function voucherItemListPage($data) { $header = [ 'method' => 'syb.opt.voucher.item.listPage', ]; $body = [ 'orgNo' => config('crypto.company_no'), 'orderNo' => $data['orderNo']??'', 'model' => $data['model']??'', 'pageLimit' => $data['pageLimit']??'', 'pageNum' => $data['pageNum']??'', ]; $response = $this->sendRequest(config('crypto.url').'/api/1.0.0/voucher/item/listPage', $body, $header); $this->saveLogStore("卡券查询".json_encode($response,320)); return $response; } }