PR

【5/4】覇戦勲章 #746

wada opened this at 2021-04-19T14:20:04; closed

Description

opened by wada at 2021-04-19T14:20:04; updated 2024-05-29T16:03:16

覇戦リーグ設定

https://docs.google.com/spreadsheets/d/15nYlJkGb9UPFO1poYmxh4v9w29buc3q1FlD3IfxyMXA/edit#gid=692811196

本家の更新内容

jolly/jr-rzst#25

覇戦リーグごとに覇戦勲章を獲得できるように設定
・勲章日付は予選開始月
本戦報酬配布時に、参加した全てのチームに対して勲章を配布

#作成が必要なテーブル
CREATE TABLE teamWar_medal (
team_no int(11) NOT NULL,
trial_start_date int(11) NOT NULL COMMENT '予選開始日',
spirit_league int(11) NOT NULL,
spirit_pt int(11) NOT NULL,
spirit_rank int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

ALTER TABLE teamWar_medal
ADD PRIMARY KEY (team_no,trial_start_date);

表示周り

海賊団ページのTOPデ、覇戦リーグ本戦の戦績を表示

<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/1618820341610XNzReg7qwB" width="200">

上の段は、戦績が上位の勲章を5つ表示
下の段は、開催順に勲章を表示

<hr>

他の海賊リストの表示を調整

<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/1618820664950wqyg85w6yb" width="200">

メンバーのヤマダアバター画像と、所持している場合は、勲章の上位5つを表示

wada change_title at 2021-04-19T17:31:44: [WIP]【5/4】覇戦勲章 【5/4】覇戦勲章
wada add_label at 2021-04-19T17:31:56: レビュー待ち

Comment

#10430 by wada at 2021-04-19T17:37:26; updated 2021-04-19T17:37:26

@iwamoto @kouho
レビューお願いします。デバッグは4/28なので急いでないです。

確認前にテーブルの作成が必要です。
勲章表示が海賊団TOP、海賊団詳細(別チーム)で問題ないか、
覇戦リーグ本戦報酬配布時に、勲章が作成されるか、
確認お願いします。

Comment

#10556 by wada at 2021-04-26T17:48:31; updated 2021-04-26T17:48:31

覇戦リーグの設定を忘れていたので、こちらのprを更新しました。
覇戦リーグの設定も確認お願いします。

Comment

#10559 by kouho at 2021-04-26T19:30:06; updated 2021-04-26T19:30:30

@wada
画像確認以外の確認しました。
・海賊団TOPの勲章表示
・海賊団詳細(別チーム)での勲章表示
・覇戦リーグ本戦報酬配布時に、勲章が作成されるか
を確認し問題なかったです。

一応少しハマった点の共有で teamWar_medal はjryeデータベースに作成
覇戰報酬配布バッチはdebug_flg=0にして配布(いつもの)

Comment

#10570 by iwamoto at 2021-04-27T12:55:29; updated 2021-04-27T12:55:29

@wada
こちら問題ないと思われます。

・勲章表示が海賊団TOP、海賊団詳細(別チーム)で問題ないか
・覇戦リーグ本戦報酬配布時に、勲章が作成されるか
kouho add_label at 2021-04-27T14:42:17: 皇甫 LGTM
iwamoto add_label at 2021-04-27T15:18:58: 岩本 LGTM
wada merge at 2021-04-30T10:24:28: 【5/4】覇戦勲章
wada close at 2021-04-30T10:24:28: Close

Commit range

base149db4ed257731e0705a0478dcc3e82e85d12fa6
headd537ba4ee566b8c5525b4b370a7f68fe4be3cf2f
base branchjolly/jr-web:develop
head branchjolly/jr-web:team_war_medal

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed37 filesView patch
statusfile
modifiedlib/SubFunc.inc
modifiedlib/ajax/team_detail.inc
modifiedlib/conf/class/JackpotWarConfig.class.php
modifiedlib/exec/event_war_spirit_point_present_1.inc
modifiedpublic_html/css/design.css
addedpublic_html/img/info_jrye/665/item_1.jpg
addedpublic_html/img/info_jrye/665/item_2.jpg
addedpublic_html/img/info_jrye/665/item_3.jpg
addedpublic_html/img/info_jrye/665/item_4.jpg
addedpublic_html/img/team/pirate_flag_board_02.png
addedpublic_html/img/team/teamWar_medal/A_1.png
addedpublic_html/img/team/teamWar_medal/A_10.png
addedpublic_html/img/team/teamWar_medal/A_100.png
addedpublic_html/img/team/teamWar_medal/A_2.png
addedpublic_html/img/team/teamWar_medal/A_25.png
addedpublic_html/img/team/teamWar_medal/A_3.png
addedpublic_html/img/team/teamWar_medal/A_4.png
addedpublic_html/img/team/teamWar_medal/A_5.png
addedpublic_html/img/team/teamWar_medal/A_50.png
addedpublic_html/img/team/teamWar_medal/B_10.png
addedpublic_html/img/team/teamWar_medal/B_100.png
addedpublic_html/img/team/teamWar_medal/B_25.png
addedpublic_html/img/team/teamWar_medal/B_50.png
addedpublic_html/img/team/teamWar_medal/B_9999.png
addedpublic_html/img/team/teamWar_medal/C_10.png
addedpublic_html/img/team/teamWar_medal/C_100.png
addedpublic_html/img/team/teamWar_medal/C_25.png
addedpublic_html/img/team/teamWar_medal/C_50.png
addedpublic_html/img/team/teamWar_medal/C_9999.png
addedpublic_html/img/team/teamWar_medal/D_9999.png
addedpublic_html/img/team/teamWar_medal/btn_best5.png
addedpublic_html/img/team/teamWar_medal/btn_more_a.png
addedpublic_html/img/team/teamWar_medal/btn_more_b.png
modifiedpublic_html/js/JOLLYROGER.js
modifiedpublic_html/template/Team.tpl
modifiedpublic_html/template/footer.tpl
modifiedpublic_html/template/footer_nolink.tpl
Patch body is stored as a separate file to keep this page lightweight.