Code Monkey home page Code Monkey logo

Comments (2)

drakontia avatar drakontia commented on September 4, 2024

MySQLデータを確認すると、プログラム側の問題より操作ミスのような気がしてきた。

mysql> select * from report where clanId=4 and userId=22;
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
| id | clanId | userId | eventId | bossId | lap | day | attackCount | damage | isCarryOver | CreatedAt | UpdatedAt | isDefeat |
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
| 304 | 4 | 22 | 2 | 3 | 0 | 2 | 3 | 0 | 0 | 2023-09-27 01:48:21.350459 | 2023-09-27 01:48:21.350459 | 1 |
| 306 | 4 | 22 | 2 | 3 | 0 | 2 | 3 | 0 | 0 | 2023-09-27 01:52:01.994335 | 2023-09-27 01:52:01.994335 | 0 |
| 307 | 4 | 22 | 2 | 2 | 0 | 2 | 3 | 0 | 0 | 2023-09-27 01:53:31.134587 | 2023-09-27 01:53:31.134587 | 0 |
| 308 | 4 | 22 | 2 | 3 | 0 | 2 | 1 | 0 | 0 | 2023-09-27 01:53:52.837806 | 2023-09-27 01:53:52.837806 | 0 |
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
4 rows in set (0.00 sec)

mysql> select * from report where clanId=4 and userId=20;
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
| id | clanId | userId | eventId | bossId | lap | day | attackCount | damage | isCarryOver | CreatedAt | UpdatedAt | isDefeat |
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
| 270 | 4 | 20 | 2 | 1 | 0 | 2 | 1 | 0 | 0 | 2023-09-26 23:15:16.349362 | 2023-09-26 23:15:16.349362 | 0 |
| 271 | 4 | 20 | 2 | 4 | 0 | 2 | 3 | 0 | 0 | 2023-09-26 23:15:27.094675 | 2023-09-26 23:15:27.094675 | 0 |
| 274 | 4 | 20 | 2 | 2 | 0 | 2 | 1 | 0 | 0 | 2023-09-26 23:29:43.918005 | 2023-09-26 23:29:43.918005 | 1 |
| 277 | 4 | 20 | 2 | 2 | 0 | 2 | 3 | 0 | 0 | 2023-09-26 23:47:48.896445 | 2023-09-26 23:47:48.896445 | 0 |
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
4 rows in set (0.00 sec)

mysql> select * from report where clanId=4 and userId=24;
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
| id | clanId | userId | eventId | bossId | lap | day | attackCount | damage | isCarryOver | CreatedAt | UpdatedAt | isDefeat |
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
| 242 | 4 | 24 | 2 | 3 | 0 | 2 | 1 | 0 | 0 | 2023-09-26 21:53:30.767223 | 2023-09-26 21:53:30.767223 | 0 |
| 245 | 4 | 24 | 2 | 2 | 0 | 2 | 1 | 0 | 0 | 2023-09-26 22:05:40.036570 | 2023-09-26 22:05:40.036570 | 1 |
| 247 | 4 | 24 | 2 | 2 | 0 | 2 | 2 | 0 | 0 | 2023-09-26 22:09:23.554024 | 2023-09-26 22:09:23.554024 | 0 |
| 269 | 4 | 24 | 2 | 4 | 0 | 2 | 3 | 0 | 0 | 2023-09-26 23:13:14.233123 | 2023-09-26 23:13:14.233123 | 0 |
+-----+--------+--------+---------+--------+-----+-----+-------------+--------+-------------+----------------------------+----------------------------+----------+
4 rows in set (0.00 sec)

image

1例目で見ると、id307は2凸目であるはずなのにattackCountが3になっている。
2例目は、2凸目がない。
3例目は、撃破してから削りのはずなのに、順序が逆になっている。これは大して問題ないかもしれないが。

attackCountを変更するような処理がなければ、だいたいは操作ミスなのかもしれない。
ただ、操作ミスを誘発しているかもしれないので、そこを防ぐようなUIにする必要はあるかもしれない。

from clanbattlebot.

yuina1056 avatar yuina1056 commented on September 4, 2024

今月の各種修正でほぼ解消されているのでくろうず

from clanbattlebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.