From bde107a92d63d6d1de4f9b59f29e46d2440cf4ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Mon, 10 Nov 2025 14:46:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=B5=E4=BD=8D=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Payment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Payment.php b/application/api/controller/Payment.php index 7e8cb53..3283b79 100644 --- a/application/api/controller/Payment.php +++ b/application/api/controller/Payment.php @@ -36,7 +36,7 @@ class Payment extends Controller } } - if(!$coin){ + if(!$coin && $nobility_id == 0){ $coin = $money * get_system_config_value('rmb_coin_ratio'); } if (!$user_id) { @@ -70,7 +70,7 @@ class Payment extends Controller $data['user_id'] = $user_id; $data['pay_type'] = $type; $data['createtime'] = time(); - $data['remarke'] = '充值到app用户'.($user_code ?? "") ."余额!"; + $data['remarke'] = $nobility_id == 0 ? '充值到app用户'.($user_code ?? "") ."余额!" :'购买爵位'; $data['type_params'] = $type_params; $data['type_id'] = $type_id; $data['nobility_id'] = $nobility_id;