changeset 1801:c0628bd105da

idol
author KASHIWAGURA Aya<c115046@?.koeki-u.ac.jp>
date Sun, 30 Jul 2017 10:21:22 +0900
parents e89ddf47a650
children 7a9d65214e3a
files event/oasis2017/idol/home.rb
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/event/oasis2017/idol/home.rb	Sun Jul 30 08:50:00 2017 +0900
+++ b/event/oasis2017/idol/home.rb	Sun Jul 30 10:21:22 2017 +0900
@@ -53,6 +53,7 @@
 end
 if form_name > ""             # formからの名前設定がもしあれば
   db.execute("REPLACE INTO users VALUES(?, ?, ?)", id, form_name, Time.now.to_s)
+  db.execute("REPLACE INTO users VALUES(?, ?, ?)", id, form_name, gin) #ユーザーがどのキャラを選択したか
 end
 
 pt = 0 # 開始直後は0点
@@ -154,7 +155,7 @@
 pt = (r ? r[0].to_i : 0)
 
 lp = pt * 65
-
+p pt
 
 
 printf("<br>現在の獲得ファン数:%s<br>",lp)

yatex.org