修正 Telegram 控制器與帳戶服務相關邏輯

This commit is contained in:
2025-05-20 16:07:35 +07:00
parent 5e392ae581
commit 92ad9debe8
6 changed files with 60 additions and 40 deletions
+7
View File
@@ -30,4 +30,11 @@ public static function AddIncome($data){
}
}
// public static function UpdateUser($data){
// return UserAccount::where([
// 'chat_id' => $data['chat_id'],
// 'user_id' => $data['user_id'],
// ])->update('balance', $data['amount']);
// }
}
+1 -1
View File
@@ -8,7 +8,7 @@
class UserAccount extends Model
{
// 显式指定表名
protected $table = ' user_account';
protected $table = 'user_account';
protected $guarded = ['id'];
// 时间字段类型自动转为 Carbon 实例