PR

【12/10】お出かけイベント #1362

wada opened this at 2021-12-06T11:26:58; closed

Description

opened by wada at 2021-12-06T11:26:58; updated 2026-03-27T13:50:31

概要

期間中にイベントスポット、イベント地域で位置登録するとアイテムを付与

イベントスポット

全国で50箇所(神社)
・予告でヒントを公開
一箇所につき一回だけ報酬受け取り可能
指定位置から2.5kmが登録判定範囲
m_event_spot にデータ格納

イベント地域

日替わりの全国55箇所(エリア)
・どの地域かはユーザーに知らせない
一箇所につき1日1回報酬受け取り可能
・日付が変わるとカウントはリセット
通常の位置登録と同じ処理(エリア内にいるかどうか)
LocationShipConfig.class.php にデータ格納

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

テーブル構造、マスタデータ更新が必須です。
master_event_spot.sql

イベントスポット

local環境なら位置登録できるので、以下のどれかで確認

  • chromeのdevツールで位置情報を変更して登録確認
  • master_event_spot に近隣のスポットを追加して登録確認
  • デバッグ用(event_no=1)のスポットで登録確認
  • 近隣スポットの master_event_spot.radius を大きくして登録確認

イベント地域

$this->_config['small']['treasure_position'] のエリアidを変更

wada assign at 2021-12-06T11:46:25: Not assigned:wada
wada change_title at 2021-12-07T18:34:03: [WIP]お出かけイベント 【12/10】お出かけイベント

Comment

#15702 by wada at 2021-12-07T18:35:29; updated 2021-12-07T18:35:29

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

Comment

#15753 by kouho at 2021-12-09T14:46:00; updated 2021-12-09T14:49:09

@wada
以下確認して問題ないと思います。

  • 告知用の画像
  • 大当たりの神社でのアイテム獲得
  • 大当たりの神社の設定
  • 日替わりでの沈没船からのGOLD獲得
  • 日替わりの設定の確認
  • master_event_spotのテーブル構造
kouho add_label at 2021-12-09T14:46:04: 皇甫 LGTM

Comment

#15762 by iwamoto at 2021-12-09T16:49:19; updated 2021-12-09T16:49:19

@wada
こちら確認しました、動作等問題ないように思います。

iwamoto add_label at 2021-12-09T16:49:27: 岩本 LGTM
wada merge at 2021-12-14T15:11:31: 【12/10】お出かけイベント
wada close at 2021-12-14T15:11:31: Close
wada refer at 2021-12-16T10:48:09: 1386:【12/16】リリース

Commit range

baseb034973814b02d923c5096ce21946eebc981d85f
headfab867711c981a02a43d00568609fa53b87f9990
base branchjolly/jr-web:develop
head branchjolly/jr-web:location_ship

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed30 filesView patch
statusfile
modifiedlib/SubFunc.inc
modifiedlib/conf/class/EventScheduleConfig.class.php
modifiedlib/conf/class/LocationShipConfig.class.php
modifiedlib/public/Location.inc
modifiedlib/public/Main.inc
addedpublic_html/img/banner/Campaign/banner_location_2_1.jpg
addedpublic_html/img/banner/Campaign/banner_location_2_2.jpg
addedpublic_html/img/info_event/info_event_322_1.jpg
addedpublic_html/img/info_event/info_event_322_2.jpg
addedpublic_html/img/info_jrye/1122/info1.jpg
addedpublic_html/img/info_jrye/1122/info2.jpg
addedpublic_html/img/info_jrye/1122/info3.jpg
addedpublic_html/img/info_jrye/1122/info4.jpg
addedpublic_html/img/info_jrye/1123/info1-1.jpg
addedpublic_html/img/info_jrye/1123/info1.jpg
addedpublic_html/img/info_jrye/1123/info2-2.jpg
addedpublic_html/img/info_jrye/1123/info2.jpg
addedpublic_html/img/info_jrye/1124/event_gold_01.jpg
addedpublic_html/img/info_jrye/1124/info1.jpg
addedpublic_html/img/info_jrye/1124/info2.jpg
addedpublic_html/img/info_jrye/1124/info3.jpg
addedpublic_html/img/info_jrye/1124/info4.jpg
addedpublic_html/img/info_jrye/1124/info5.jpg
addedpublic_html/img/info_jrye/1124/info6.jpg
addedpublic_html/img/info_jrye/1124/info7.jpg
addedpublic_html/img/info_jrye/1124/info8.jpg
addedpublic_html/img/info_jrye/1124/info9.jpg
addedpublic_html/img/info_jrye/1124/treasure_discovery_1.jpg
modifiedpublic_html/template/Location.tpl
modifiedpublic_html/template/Main.tpl
Patch body is stored as a separate file to keep this page lightweight.