From 683816d3ec8d9f483f95fc4822bd1372b0b01a03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Sat, 6 Dec 2025 19:02:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E7=88=B5=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Payment.php | 2 +- application/common.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Payment.php b/application/api/controller/Payment.php index 3283b79..b9eb258 100644 --- a/application/api/controller/Payment.php +++ b/application/api/controller/Payment.php @@ -61,7 +61,7 @@ class Payment extends Controller return V(0, '请选择正确的充值金额', null); } $user_code = db::name('user')->where(["id" => $user_id])->value('user_code'); - $title = "APP充值到用户". ($user_code ?? "") ."余额!"; + $title = $nobility_id == 0 ? '充值到app用户'.($user_code ?? "") ."余额!" :'购买爵位'; $order_number = $this->createOrderSn(); $data['order_sn'] = $order_number; diff --git a/application/common.php b/application/common.php index b02c8e8..55e571b 100644 --- a/application/common.php +++ b/application/common.php @@ -1138,7 +1138,7 @@ function handelCharge($where,$data){ if(!$orderModel){ return 0; } - if($orderModel['nobility_id'] != 0){//购买爵位 + if($orderModel['nobility_id'] > 0){//购买爵位 //修改订单状态 $res1 = db::name('vs_user_recharge')->where($where)->update([ 'pay_status' => 2,