$this->feeRate, 'fee_amount' => $this->feeAmount, 'actual_amount' => $this->actualAmount, 'original_amount' => $this->originalAmount, 'has_error' => $this->hasError, ]; $result['error'] = $this->errorMessage; $result['additionalInfo'] = $this->additionalInfo; return $result; } /** * 判断是否计算成功 * * @return bool */ public function isSuccess(): bool { return !$this->hasError; } }