Commit e67acac9 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 196bcb4c
......@@ -18,6 +18,11 @@ class BaiwangApiService extends PlatformAbstractService
$this->getPlatformInfo();
}
public function setInvoicePlatform($platformName)
{
$this->invoicePlatform = $platformName;
}
/**
* 查询企业唯一标识
*/
......@@ -26,8 +31,8 @@ class BaiwangApiService extends PlatformAbstractService
try{
if($this->checkPlatformStatus()){
$qiyeParams = [
'nsrmc' => $this->platformInfo['platform_params'][$platform]['nsrmc'],
'nsrsbh' => $this->platformInfo['platform_params'][$platform]['nsrsbh']
'nsrmc' => $this->platformInfo['platform_params'][$this->invoicePlatform]['nsrmc'],
'nsrsbh' => $this->platformInfo['platform_params'][$this->invoicePlatform]['nsrsbh']
];
$response = $this->sendPost($this->getPlatformApiUrl().'/cloud/queryUniqueSign',$qiyeParams);
return $this->response($response);
......@@ -181,8 +186,8 @@ class BaiwangApiService extends PlatformAbstractService
*/
private function authHeaders($path)
{
$key = $this->platformInfo['platform_params']['rhawn']['key'];
$sercret = $this->platformInfo['platform_params']['rhawn']['secret'];
$key = $this->platformInfo['platform_params'][$this->invoicePlatform]['key'];
$sercret = $this->platformInfo['platform_params'][$this->invoicePlatform]['secret'];
$serverName = "/bwdpzx/agentinvoiceservice-cloud/agentiscloud";
$date = gmdate("D, d M Y H:i:s")." GMT";
......
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