PR

季節ガチャおまけアイテム交換所 #3885

wada opened this at 2025-01-27T14:42:21; closed

Description

opened by wada at 2025-01-27T14:42:21; updated 2025-02-04T12:00:23

概要

対応シート

おまけアイテム期限切れ告知はガチャ終了前日掲載
交換所はガチャ終了3日後まで

ガチャ終了(3/31)までに対応

交換所バナー画像が納品されたら各ページの終了後バナー画像を切り替え
メインページ、イベントページの終了後交換所バナー対応は未対応
・対応ができなかったら管理画面バナー設定で表示

おまけアイテム追加方法

SPGachaConfig

//config設定例
$this->_config['banner_display'][$id]       = true; //集金ページ、0スタミナページに掲載するか(同時開催中の季節ガチャから1つだけtrueにする)
$this->_config['omake_single'][$id]         = 1; //0or1
$this->_config['omake_single_present'][$id] = [
	'type'       => PresentBoxContent::TYPE_LIMITEDE_TRADE_SHOP_ITEM,
	'present_id' => [1], //master_limited_trade_shop.item_no、既存処理が配列を採用していたためそのまま
	'count'      => 1,
	'item_text'  => '青いアネモネ',
	'ts_id'      => 1, //master_limited_trade_shop.trade_shop_no
];

Bar-SPGacha_{$gacha_id}.tpl

Bar-SPGachaYamada.tplを使用するなら対応不要

public_html/template/Bar-SPGachaYamada.tplの更新内容を実装

  • コイン画像の切替
  • 注意文言の追加
  • 交換所導線の設置

DB更新内容

季節ガチャおまけアイテム交換所 jolly/jrye-db#982

追加テーブルSQLクエリ

本家SQL
masterテーブルはdbブランチから作成

CREATE TABLE `user_limited_trade_shop_item` (
  `user_no` bigint(20) NOT NULL,
  `item_no` int(11) NOT NULL,
  `item_count` int(11) NOT NULL,
  PRIMARY KEY (`user_no`,`item_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `log_user_limited_trade_shop_item` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_no` bigint(20) NOT NULL,
  `trade_shop_no` int(11) NOT NULL,
  `lineup_no` tinyint(4) NOT NULL,
  `shop_item_no` int(11) NOT NULL,
  `shop_item_count` int(11) NOT NULL COMMENT '交換アイテムの増減数',
  `after_count` int(11) NOT NULL COMMENT '交換アイテムの所持数',
  `reg_date` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_no` (`user_no`,`reg_date`),
  KEY `reg_date` (`reg_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

テストした内容や、確認した内容を記載。

TODO

  • [ ] 終了後交換所バナー画像差し替え(2/26締め切り)
  • [ ] メイン、イベントページ終了後バナー画像遷移先切り替え(ガチャ終了までに対応)

Comment

#38621 by wada at 2025-01-28T11:34:39; updated 2025-01-28T11:34:39

@kouho
レビューおねがいします。

kouho add_label at 2025-01-29T09:39:56: 皇甫 LGTM

Comment

#38636 by kouho at 2025-01-29T09:40:19; updated 2025-01-29T09:40:19

@wada
確認OKです

wada close at 2025-02-04T12:00:23: Close

Commit range

basef592d12d54f480cc5fda90cd43331458c3acf6c5
headf592d12d54f480cc5fda90cd43331458c3acf6c5
base branchjolly/jr-web:master
head branchjolly/jr-web:limited_trade_shop

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changeddiff unavailable from SQL export only
The SQL dump stores PR commit IDs, but not the actual file patch. Regenerate with --repositories-root /path/to/gitbucket/repositories after mirroring repositories to include unified diff output.