diff --git a/app/adminapi/logic/finance/FinancePaymentPlanLogic.php b/app/adminapi/logic/finance/FinancePaymentPlanLogic.php index 889a858ad..93643f021 100644 --- a/app/adminapi/logic/finance/FinancePaymentPlanLogic.php +++ b/app/adminapi/logic/finance/FinancePaymentPlanLogic.php @@ -63,7 +63,7 @@ class FinancePaymentPlanLogic extends BaseLogic 'foreign_currency_remark' => $params['foreign_currency_remark'] ?? '', 'status' => $params['status'], 'remark' => $params['remark'] ?? '', - 'annex' => !empty( $params['annex']) ? $params['annex'] : null, + 'annex' => $params['annex'] ? json_encode($params['annex']) : null, ]); Db::commit(); return true; @@ -105,7 +105,7 @@ class FinancePaymentPlanLogic extends BaseLogic 'foreign_currency_remark' => $params['foreign_currency_remark'] ?? '', 'status' => $params['status'], 'remark' => $params['remark'] ?? '', - 'annex' => !empty( $params['annex']) ? $params['annex'] : null, + 'annex' => $params['annex'] ? json_encode($params['annex']) : null, ]); Db::commit(); return true;