From c310c4d8338d1fe3c0320a8d4d93f23fbe7ffd3c 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, 1 Dec 2025 15:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E7=BA=A6=E7=BB=93=E6=9D=9F=E8=BA=AB?= =?UTF-8?q?=E4=BB=B7=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/MarketValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/model/MarketValue.php b/application/api/model/MarketValue.php index d043e51..85d1a21 100644 --- a/application/api/model/MarketValue.php +++ b/application/api/model/MarketValue.php @@ -16,7 +16,7 @@ class MarketValue extends Model */ public function change($user_id,$change_value,$type){ $before = db::name('user')->where('id',$user_id)->value('market_value'); - if($type == 0){ + if($type == 0 || $type == 3){ $result = db::name('user')->where('id',$user_id)->setInc('market_value',$change_value); if($result){ //记录一条日志