|
@@ -16,7 +16,7 @@ class MayCurVouchersServerService extends Service
|
|
|
public function __construct($data)
|
|
|
{
|
|
|
$param = config("maycur");
|
|
|
- if(! isset($data['is_formal_vouch'])){
|
|
|
+ if(empty($data['is_formal_vouch'])){
|
|
|
$this->param = $param['voucher_cs'] ?? [];
|
|
|
$this->domain_url = $this->param['ip'] ?? "";
|
|
|
}else{
|
|
@@ -92,7 +92,7 @@ class MayCurVouchersServerService extends Service
|
|
|
$url_array = $this->param;
|
|
|
//组织获取参数
|
|
|
$url = $this->domain_url . $url_array['voucher_insert'];
|
|
|
- $post = $data;
|
|
|
+ $post = $data['body'] ?? [];
|
|
|
$header = array_merge(['Content-Type:application/json'], $header);
|
|
|
list($status, $result) = $this->post_helper($url,$post, $header);
|
|
|
if(! $status) return [$status, $result];
|