PR

ヤマダスタンプラリー #405

wada opened this at 2020-11-06T14:01:32; closed

Description

opened by wada at 2020-11-06T14:01:32; updated 2023-05-30T10:47:49

issue #379

Comment

#8143 by wada at 2020-11-06T14:05:38; updated 2020-11-06T14:05:38

@iwamoto
11/12に開発テストがあるのでそれまでにレビューお願いします。

ローカル確認時は、マスタ更新が必要です。
test_date_startを変更してください。

cd ./jrye-db
php bin/csv2mysql.php jrye csv/master_yamada_stamp_rally.csv

Comment

#8161 by wada at 2020-11-06T19:27:20; updated 2020-11-06T19:34:28

一回作り直しお願いします

DROP TABLE IF EXISTS `user_yamada_stamp_rally`;
CREATE TABLE `user_yamada_stamp_rally` (
  `user_no` int(11) unsigned NOT NULL,
  `rally_id` int(11) NOT NULL,
  `count1` tinyint(4) DEFAULT '0',
  `send_api1` tinyint(4) DEFAULT '0',
  `count2` tinyint(4) DEFAULT '0',
  `send_api2` tinyint(4) DEFAULT '0',
  `count3` tinyint(4) DEFAULT '0',
  `send_api3` tinyint(4) DEFAULT '0',
  `count4` tinyint(4) DEFAULT '0',
  `send_api4` tinyint(4) DEFAULT '0',
  `count5` tinyint(4) DEFAULT '0',
  `send_api5` tinyint(4) DEFAULT '0',
  `reg_date` datetime DEFAULT NULL,
  PRIMARY KEY (`user_no`,`rally_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Comment

#8170 by iwamoto at 2020-11-09T12:51:00; updated 2020-11-09T12:51:25

@wada
master_yamada_stamp_rallyに登録されているstamp_id2がコードで設定されているものと異なっていました。

2 モンスターを1体倒そう beat [NEW]

master_yamada_stamp_rally
(2, …(略) 1, 'item', 10,  2 , 'beat', 1, 3, 'build', 1, 4, 'collect', 1, 5, 'chat', 1);

既に登録されているデータでは

stamp_id2 = 2 (const STAMP_ID_BELL_GACHA = 2; //ベルガチャ)

になっていますが、正しくは

stamp_id2 = 6 (const STAMP_ID_BEAT       = 6; //モンスター討伐)

こちらになると思います
こちらだけ対応いただければと思います

Comment

#8190 by wada at 2020-11-09T23:24:19; updated 2020-11-09T23:24:19

@iwamoto
確認ありがとうございます。master_yamada_stamp_rally.csv修正しました。

Comment

#8192 by iwamoto at 2020-11-10T10:26:01; updated 2020-11-10T10:26:01

@wada
確認しました、こちらで問題ないと思います。

wada merge at 2020-11-11T10:40:01: ヤマダスタンプラリー
wada close at 2020-11-11T10:40:01: Close

Commit range

base6f507bc1fecada19f378dfe1c544c8a6e1dc0d51
head5fd1b06204651faf11e0a3121f7f4ac914f359f6
base branchjolly/jr-web:develop
head branchjolly/jr-web:stamp_379

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed3 filesView patch
statusfile
modifieddatabase/yamada_campaign.sql
modifiedlib/SubFunc_mission.inc
modifiedlib/models/Yamada_stamp_rally.php
Patch body is stored as a separate file to keep this page lightweight.