You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

<?php
namespace yisheng\account;
use yisheng\Base;
class Account extends Base
{
/**
* 添加企业收款方(没有对接完)
* @date 2022-06-07
*/
public function accountCompanyAdd($company_data = [])
{
//请求参数
$data = [
'version' => '1.0',
'clientCode' => $this->config['client_code'],
'bankName' => $company_data['bank_name'],
'accType' => $company_data['acc_type'],
'bankCode' => $company_data['bank_code'],
'accNo' => $company_data['acc_no'],
'accName' => $company_data['acc_name'],
'businLic' => $company_data['busin_lic'],
'businName' => $company_data['busin_name'],
'picInfo' => json_encode($company_data['pic_info'])
];
// $mac = new Mac();
// $mac -> GetMacAddr();
// $data['MAC'] = $mac->mac_addr;
$data['MAC'] = getSign($data, $this->config['client_key']); //签名
$this->setUrl($this->cashierUrl);
return $this->actionApi($data, '/AG_MerchantManagementSystem_Core/jzt/api/ent');
}
}