Skip to content

Commit

Permalink
增加代理商模式
Browse files Browse the repository at this point in the history
  • Loading branch information
payuni committed Jan 18, 2023
1 parent c8e1c92 commit 553a65b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/PayuniApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,15 @@ private function CheckParams() {
* @ dateTime 2022-08-23
*/
private function SetParams(string $type = '') {
$isPlatForm = '';
if(!empty($this->encryptInfo['IsPlatForm'])){
$isPlatForm = $this->encryptInfo['IsPlatForm'];
unset($this->encryptInfo['IsPlatForm']);
}
$this->parameter['MerID'] = $this->encryptInfo['MerID'];
$this->parameter['EncryptInfo'] = $this->Encrypt();
$this->parameter['HashInfo'] = $this->HashInfo($this->parameter['EncryptInfo']);
$this->parameter['IsPlatForm'] = $isPlatForm;
$this->curlUrl = $this->apiUrl . $type;
}
/**
Expand Down

0 comments on commit 553a65b

Please sign in to comment.