PR

ヤマダポイント付与キャンペーン実装 #101

wada opened this at 2020-08-05T13:57:54; closed

Description

opened by wada at 2020-08-05T13:57:54; updated 2023-02-22T11:53:37

issue #84

Comment

#6106 by wada at 2020-08-05T14:04:39; updated 2020-08-05T14:04:39

ローカルでの確認

  • 初回ログイン時にダイアログが表示される
  • ダイアログ表示後、ゲームコインが1pt加算される
  • 当日中に2度以上ポイント加算されない

DBの設定

#マスタ更新
cd ./jrye-db
git checkout develop
git pull
php bin/csv2mysql.php csv/master_yamada_campaign.csv csv/master_yamada_point.csv

#ログテーブル作成
CREATE TABLE `log_yamada_point` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `user_no` int(11) NOT NULL,
  `campaign_id` tinyint(4) unsigned NOT NULL,
  `type_id` int(11) unsigned NOT NULL,
  `send_api` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `request_no` varchar(50) NOT NULL DEFAULT '',
  `reg_date` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_mission` (`user_no`,`campaign_id`,`type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

ログイン状態のリセット

#リセット時間の更新
user_info.reset_time: 昨日以前のtimestampに更新
#duplicate errorの回避
dau_login: 当日のレコード削除

# 当日ポイント加算済みの場合
log_yamada_point: 当日のレコード削除

本番反映は8/6までに
キャンペーン開始は、8/7 0:00から

Comment

#6107 by wada at 2020-08-05T14:05:24; updated 2020-08-05T14:05:24

@iwamoto
レビューおながいします。

Comment

#6112 by iwamoto at 2020-08-05T16:10:37; updated 2020-08-05T16:10:37

@wada
レビュー行いました、問題ないと思います
マージokです

wada merge at 2020-08-05T17:23:53: ヤマダポイント付与キャンペーン実装
wada close at 2020-08-05T17:23:53: Close

Commit range

base3bbac8e8e69dfdf8b354e8860ea9940c56f8c8cf
headb39a76835cbc64609866cd05360bf75090e09af8
base branchjolly/jr-web:develop
head branchjolly/jr-web:add_yamada_pt_84

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
modifieddatabase/yamada_campaign.sql
modifiedlib/SubFunc.inc
modifiedlib/ajax/main_default.inc
addedlib/ajax/main_yamadaVerified.inc
modifiedlib/class/platform/yamada/YamadaAPI.class.php
modifiedlib/class/platform/yamada/YamadaPlatformService.class.php
modifiedlib/models/Yamada_athletic.php
addedlib/models/Yamada_campaign.php
addedlib/models/Yamada_point.php
modifiedpublic_html/ajax.php
addedpublic_html/img/pf/yamada/icon_add_point_1_1.png
addedpublic_html/img/pf/yamada/icon_add_point_1_2.png
addedpublic_html/img/pf/yamada/icon_add_point_1_3.png
addedpublic_html/img/pf/yamada/icon_add_point_1_4.png
modifiedpublic_html/js/JOLLYROGER.js
modifiedpublic_html/js/jr_main.js
modifiedpublic_html/template/Main.tpl
modifiedpublic_html/template/header_sp.tpl
Patch body is stored as a separate file to keep this page lightweight.