PR

【10/21】ガチャチケットログ対応 #1242

kouho opened this at 2021-10-21T15:54:12; closed

Description

opened by kouho at 2021-10-21T15:54:12; updated 2025-11-14T16:01:57

概要

【10/22】コインガチャチケット使用時ログ記録 #1237
のリリース用PRです。確認がOKでしたら本番に反映させようと思います。

テスト方法、確認した内容

  • 開発での更新が含まれていて、余分な更新が含まれていないか

TODO

以下のクエリを実行してテーブルを作成した後リリース

CREATE TABLE `log_gacha_ticket` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_no` int(11) NOT NULL,
  `before_count` smallint(11) NOT NULL,
  `after_count` smallint(11) NOT NULL,
  `type` tinyint(11) NOT NULL COMMENT '1:獲得 2:消費',
  `status` smallint(11) NOT NULL COMMENT 'type1の場合は1がプレゼントから獲得,2がその他type2の場合はgacha_no',
  `reg_date` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE log_gacha_ticket ADD INDEX user_no_type_status_reg_date (user_no,type,status,reg_date);

Comment

#14542 by kouho at 2021-10-21T15:55:59; updated 2021-10-21T15:55:59

@wada @iwamoto
念のため確認をお願いいたします。

Comment

#14543 by iwamoto at 2021-10-21T16:17:17; updated 2021-10-21T16:17:17

@kouho
確認しました

Comment

#14544 by wada at 2021-10-21T16:41:46; updated 2021-10-21T16:41:46

@kouho
確認しました。

kouho merge at 2021-10-21T16:44:08: 【10/21】ガチャチケットログ対応
kouho close at 2021-10-21T16:44:08: Close

Commit range

base4adc8e79e5b9c9d4aa1a5d3ea2b828b131fcfa20
head89e38252d85402e69d1727efa17bcf11ab01e571
base branchjolly/jr-web:master
head branchjolly/jr-web:release_102116

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed14 filesView patch
statusfile
modifiedlib/SubFunc.inc
modifiedlib/ajax/present_getResult.inc
modifiedlib/mobile/Bar__GachaExec.inc
modifiedlib/mobile/Bar__MonsterGachaExec.inc
modifiedlib/mobile/Bar__PickupGachaExec.inc
modifiedlib/mobile/Bar__SPGachaExec.inc
modifiedlib/mobile/Present__Default.inc
modifiedlib/models/Gacha_payment.php
modifiedlib/models/Shop_payment.php
modifiedlib/public/Bar-GachaExec.inc
modifiedlib/public/Bar-MonsterGachaExec.inc
modifiedlib/public/Bar-PickupGachaExec.inc
modifiedlib/public/Bar-SPGachaExec.inc
modifiedlib/public/Present-Default.inc
Patch body is stored as a separate file to keep this page lightweight.