Commit e67acac9 authored by hangjun83's avatar hangjun83

财务开票模块更新

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