From 691146a3a444a9564626e727f33c6e2849a49677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Fri, 28 Nov 2025 15:32:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E4=BB=B7=E6=B6=A8=E8=BA=AB=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/MarketValue.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/api/model/MarketValue.php b/application/api/model/MarketValue.php index 4e9f476..157c546 100644 --- a/application/api/model/MarketValue.php +++ b/application/api/model/MarketValue.php @@ -16,9 +16,9 @@ class MarketValue extends Model */ public function change($user_id,$change_value,$type){ //判断是否为整数 - if(!is_int($change_value)){ - return ['code' => 0, 'msg' => '身价变化参数错误=》'.$change_value]; - } +// if(!is_int($change_value)){ +// return ['code' => 0, 'msg' => '身价变化参数错误=》'.$change_value]; +// } $before = db::name('user')->where('id',$user_id)->value('market_value'); if($type == 0){ $result = db::name('user')->where('id',$user_id)->setInc('market_value',$change_value);