PR

【11/27】デイリークエストの報酬にタイトル限定コイン追加 #3752

wada opened this at 2024-10-30T16:27:29; closed

Description

opened by wada at 2024-10-30T16:27:29; updated 2024-11-28T11:05:09

概要

初心者クエスト

12/3に初心者クエスト更新

実装内容

YamadaAPIにゲームコイン付与メソッドaddCoinを追加
タイトル限定コイン用type設定、PresentBoxContent.item_type=93
配布ログlog_yamada_coinを作成
配布はモバイル会員のみ

db更新内容

【11/27】デイリークエストの報酬にタイトル限定コイン追加 jolly/jrye-db#919

非モバイル会員向け表示

デイリークエスト一覧に注意書き
クエスト名に会員限定表記
受け取りボタングレーアウト

混乱を避けるため、会員には上記表示はなし

追加テーブル

CREATE TABLE `log_yamada_coin` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `user_no` int(10) unsigned NOT NULL,
  `add_type` tinyint(3) unsigned NOT NULL COMMENT '加算タイプ',
  `add_id` int(10) unsigned NOT NULL COMMENT '加算タイプ内のID',
  `coin` smallint(5) unsigned NOT NULL COMMENT '配布量',
  `send_api` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'api実行完了フラグ',
  `request_no` varchar(50) NOT NULL DEFAULT '' COMMENT 'PF識別ID',
  `reg_date` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_coin` (`user_no`,`add_type`,`add_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

jrye-dbのyamada_title_coinブランチの更新を反映
デイリークエストを更新して確認

TODO

  • [x] アイテム画像
  • [x] 開発テスト
wada change_title at 2024-10-31T15:28:12: [WIP]デイリークエストの報酬にタイトル限定コイン追加 デイリークエストの報酬にタイトル限定コイン追加

Comment

#37231 by wada at 2024-10-31T15:28:20; updated 2024-10-31T15:28:20

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

wada change_title at 2024-11-19T15:48:02: デイリークエストの報酬にタイトル限定コイン追加 【11/27】デイリークエストの報酬にタイトル限定コイン追加
kouho add_label at 2024-11-27T16:05:18: 皇甫 LGTM

Comment

#37623 by kouho at 2024-11-27T16:05:27; updated 2024-11-27T16:05:27

@wada
確認OKです

wada merge at 2024-11-28T11:04:59: 【11/27】デイリークエストの報酬にタイトル限定コイン追加
wada close at 2024-11-28T11:04:59: Close
wada delete_branch at 2024-11-28T11:05:09: yamada_title_coin

Commit range

base68853415624f5fa28f7b05b1a62e72e184922f1f
headc58b5575fb0c715b00c8a05cd1449e60b3ebd40a
base branchjolly/jr-web:master
head branchjolly/jr-web:yamada_title_coin

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed18 filesView patch
statusfile
modifiedlib/SubFunc.inc
modifiedlib/SubFunc/SubFunc_yamada.inc
modifiedlib/class/const/PresentDescriptionConst.class.php
modifiedlib/class/const/PresentNameConst.class.php
modifiedlib/class/platform/yamada/YamadaAPI.class.php
modifiedlib/class/platform/yamada/YamadaPlatformService.class.php
modifiedlib/class/platform/yamada/YamadaWithoutAPI.class.php
modifiedlib/class/present_box/PresentBoxContent.class.php
addedlib/exec/test_yamada_title_coint.php
addedlib/models/dao/log_yamada_coin.php
modifiedlib/public/Newbie-DailyQuest.inc
modifiedlib/public/Quest-DailyClear.inc
addedpublic_html/img/item/120/yamada_title_coin.jpg
addedpublic_html/img/item/150/yamada_title_coin.jpg
addedpublic_html/img/item/60/yamada_title_coin.jpg
addedpublic_html/img/item/70/yamada_title_coin.jpg
modifiedpublic_html/template/Newbie-DailyQuest.tpl
modifiedpublic_html/template/Quest-Default.tpl
Patch body is stored as a separate file to keep this page lightweight.