PR

【3/21】新PFの判定追加 #3972

wada opened this at 2025-03-17T09:32:09; closed

Description

opened by wada at 2025-03-17T09:32:09; updated 2025-03-31T10:42:12

概要

PF専用処理の実装準備
PFによって処理を切り分ける箇所に新PF(gesoten)用の判定追加
新PFは未実装のため、ヤマダとして動作
gesoten設定方法は、テスト方法を参照

更新内容

SubFunc
・SubFuncの切り分け用ファイル(SubFunc_platform.inc)作成
・$_df['PLATFORM']のPF判定をGlobalConfigに書き換え
・ゲソ天用処理をヤマダ処理で仮実装
・更新箇所周辺のコロプラ、dgame判定を削除

SubFunc_platform
・PFによって処理を書き換え
(運用的に問題がある可能性があるため、運用テスト中に調整するか)

PlatformConst.class.php
・ゲソ天判定追加

define.inc
・ゲソ天判定をヤマダとして仮設定
・サーバ変数へゲソ天設定時、ゲソ天環境に設定

Bar-〇〇.inc
・$_df['PLATFORM']のPF判定をGlobalConfigに書き換え
・更新箇所周辺のコロプラ、dgame判定を削除

Debug.inc
・ログアウト機能を追加

autoload_platform_js.php
・ゲソ天判定をヤマダとして仮設定

Bar-〇〇.tpl / Shop-〇〇.tpl
・コイン購入リンク関数をPF統一
・コピーして使用させる可能性があため、使用していないファイルも書き換え

footer_nolink.tpl / header_sp.tpl
・ゲソ天判定をヤマダとして仮設定
・サーバ変数へゲソ天設定時、ゲソ天環境に設定

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

PF切り替え

$_SERVER['HTTP_PF']gesotenを設定
▼ModHeaderを使用した場合
<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/1742171207346qpRZ15fwhf" width="300">

gesotenuser_platformにデータが作成され、gesotenとして動作

ログアウト

$_SERVER['HTTP_PF']の設定をOFFにし、デバッグツールでログアウト実施

確認

新PF、既存PFでの切り分け箇所の動作確認
対応に過不足、問題がないか

Comment

#39496 by wada at 2025-03-17T09:32:19; updated 2025-03-17T09:32:19

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

wada refer at 2025-03-24T10:09:33: 3979:【3/28】新PFの表示切り分け(告知・ガチャ)
kouho add_label at 2025-03-24T10:19:24: 皇甫 LGTM

Comment

#39570 by kouho at 2025-03-24T10:19:33; updated 2025-03-24T10:19:33

@wada
確認OKです

wada merge at 2025-03-26T15:17:08: 【3/21】新PFの判定追加
wada close at 2025-03-26T15:17:08: Close
wada delete_branch at 2025-03-26T15:17:26: new_platform
wada refer at 2025-03-31T10:42:12: 3993:【4/4】新PFの表示切り分け(その他)

Commit range

base80ffc6c2c191c401236c1587127409a44fba52a6
head46548d91b18f7c48c91778b30f51ee251fd434ca
base branchjolly/jr-web:master
head branchjolly/jr-web:new_platform

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed92 filesView patch
statusfile
modifiedlib/SubFunc.inc
addedlib/SubFunc/SubFunc_platform.inc
modifiedlib/class/const/PlatformConst.class.php
modifiedlib/conf/class/GlobalConfig.class.php
modifiedlib/conf/define.inc
modifiedlib/public/Bar-GachaExec.inc
modifiedlib/public/Bar-SelectCheck.inc
modifiedlib/public/Bar-SelectCoinResult.inc
modifiedlib/public/Debug.inc
modifiedpublic_html/js/autoload_platform_js.php
modifiedpublic_html/template/Bar-DrinkItemGacha.tpl
modifiedpublic_html/template/Bar-Gacha.tpl
modifiedpublic_html/template/Bar-GachaCheck.tpl
modifiedpublic_html/template/Bar-GachaCheckReprint2.tpl
modifiedpublic_html/template/Bar-GachaCheckReprint3.tpl
modifiedpublic_html/template/Bar-GachaReprint2.tpl
modifiedpublic_html/template/Bar-GachaReprint3.tpl
modifiedpublic_html/template/Bar-Gacha_old.tpl
modifiedpublic_html/template/Bar-ItemGachaCheck.tpl
modifiedpublic_html/template/Bar-ItemGachaResult.tpl
modifiedpublic_html/template/Bar-MonsterGachaCheck.tpl
modifiedpublic_html/template/Bar-MonsterGacha_Default.tpl
modifiedpublic_html/template/Bar-PickupGacha.tpl
modifiedpublic_html/template/Bar-PickupGachaCheck.tpl
modifiedpublic_html/template/Bar-PickupGachaResult.tpl
modifiedpublic_html/template/Bar-PickupGachaSP.tpl
modifiedpublic_html/template/Bar-PointGacha.tpl
modifiedpublic_html/template/Bar-PointGachaCheck.tpl
modifiedpublic_html/template/Bar-PointGachaResult.tpl
modifiedpublic_html/template/Bar-PointGacha_456.tpl
modifiedpublic_html/template/Bar-PointGacha_496.tpl
modifiedpublic_html/template/Bar-PointGacha_606.tpl
modifiedpublic_html/template/Bar-SPGachaCheck.tpl
modifiedpublic_html/template/Bar-SPGachaYamada.tpl
modifiedpublic_html/template/Bar-SPGacha_104.tpl
modifiedpublic_html/template/Bar-SPGacha_106.tpl
modifiedpublic_html/template/Bar-SPGacha_117.tpl
modifiedpublic_html/template/Bar-SPGacha_152.tpl
modifiedpublic_html/template/Bar-SPGacha_167.tpl
modifiedpublic_html/template/Bar-SPGacha_218.tpl
modifiedpublic_html/template/Bar-SPGacha_223.tpl
modifiedpublic_html/template/Bar-SPGacha_224.tpl
modifiedpublic_html/template/Bar-SPGacha_227.tpl
modifiedpublic_html/template/Bar-SPGacha_254.tpl
modifiedpublic_html/template/Bar-SPGacha_256.tpl
modifiedpublic_html/template/Bar-SPGacha_262.tpl
modifiedpublic_html/template/Bar-SPGacha_276.tpl
modifiedpublic_html/template/Bar-SPGacha_298.tpl
modifiedpublic_html/template/Bar-SPGacha_301.tpl
modifiedpublic_html/template/Bar-SPGacha_302.tpl
modifiedpublic_html/template/Bar-SPGacha_305.tpl
modifiedpublic_html/template/Bar-SPGacha_309.tpl
modifiedpublic_html/template/Bar-SPGacha_318.tpl
modifiedpublic_html/template/Bar-SPGacha_339.tpl
modifiedpublic_html/template/Bar-SPGacha_362.tpl
modifiedpublic_html/template/Bar-SPGacha_363.tpl
modifiedpublic_html/template/Bar-SPGacha_372.tpl
modifiedpublic_html/template/Bar-SPGacha_378.tpl
modifiedpublic_html/template/Bar-SPGacha_379.tpl
modifiedpublic_html/template/Bar-SPGacha_381.tpl
modifiedpublic_html/template/Bar-SPGacha_394.tpl
modifiedpublic_html/template/Bar-SPGacha_397.tpl
modifiedpublic_html/template/Bar-SPGacha_403.tpl
modifiedpublic_html/template/Bar-SPGacha_408.tpl
modifiedpublic_html/template/Bar-SPGacha_424.tpl
modifiedpublic_html/template/Bar-SPGacha_437.tpl
modifiedpublic_html/template/Bar-SPGacha_451.tpl
modifiedpublic_html/template/Bar-SPGacha_464.tpl
modifiedpublic_html/template/Bar-SPGacha_470.tpl
modifiedpublic_html/template/Bar-SPGacha_479.tpl
modifiedpublic_html/template/Bar-SPGacha_480.tpl
modifiedpublic_html/template/Bar-SPGacha_489.tpl
modifiedpublic_html/template/Bar-SPGacha_490.tpl
modifiedpublic_html/template/Bar-SPGacha_508.tpl
modifiedpublic_html/template/Bar-SPGacha_509.tpl
modifiedpublic_html/template/Bar-SPGacha_610.tpl
modifiedpublic_html/template/Bar-SelectCheck.tpl
modifiedpublic_html/template/Bar-SetupGacha.tpl
modifiedpublic_html/template/Bar-SetupGachaCheck.tpl
modifiedpublic_html/template/Bar-SetupGachaResult.tpl
modifiedpublic_html/template/Main-Location.tpl
modifiedpublic_html/template/Shop-Assortment.tpl
modifiedpublic_html/template/Shop-CardHolderPack.tpl
modifiedpublic_html/template/Shop-GainSet.tpl
modifiedpublic_html/template/Shop-GainSet_91.tpl
modifiedpublic_html/template/Shop-GoldSet.tpl
modifiedpublic_html/template/Shop-PurchaseLoginBonus.tpl
modifiedpublic_html/template/Shop-StarterPack.tpl
modifiedpublic_html/template/Shop-TrainingPack.tpl
modifiedpublic_html/template/Shop.tpl
modifiedpublic_html/template/footer_nolink.tpl
modifiedpublic_html/template/header_sp.tpl
Patch body is stored as a separate file to keep this page lightweight.