From ebc1cb94f2cb719dd1c8bea010251c9e692e69c7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 16 Oct 2024 14:17:40 +0800 Subject: [PATCH] 1 --- webapp/models/LuckySymbol.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/models/LuckySymbol.php b/webapp/models/LuckySymbol.php index 9005939f..01cb3ef3 100644 --- a/webapp/models/LuckySymbol.php +++ b/webapp/models/LuckySymbol.php @@ -16,7 +16,7 @@ class LuckySymbol extends BaseModel { 'account_id' => myself()->_getAccountId(), ) ); - $has = empty($row) ? false : $row['in_use_item'] > 0; + $has = empty($row) ? false : $row['in_use_num'] > 0; return $has ? 1 : 0; } @@ -44,12 +44,12 @@ class LuckySymbol extends BaseModel { 'account_id' => myself()->_getAccountId(), ), array( - 'in_use_num' => function () { return "item_num + 1";}, + 'in_use_num' => function () { return "in_use_num + 1";}, 'modifytime' => myself()->_getNowTime(), ), array( 'account_id' => myself()->_getAccountId(), - 'in_use_num' => function () { return "1";}, + 'in_use_num' => 1, 'createtime' => myself()->_getNowTime(), 'modifytime' => myself()->_getNowTime(), )