PR

運動会報酬配布 #172

wada opened this at 2020-08-24T20:36:30; closed

Description

opened by wada at 2020-08-24T20:36:30; updated 2022-11-09T12:38:48

issue #154
開発に反映済みです。
ローカルでの確認が手間なら開発で確認しても良いです。

ローカルでの確認手順

# table作成
cd ./jrye-db
git checkout develop
git pull
php bin/csv2mysql.php jrye csv/master_yamada_campaign_reward.csv csv/master_yamada_campaign_reward_item.csv
# yamada_campaign.sql
CREATE TABLE `user_yamada_campaign_reward` 実行

# ユーザデータ作成
user_yamada_campaign_rewardに自分のsapkeyを登録
receive_flgは0

# マスタデータ調整
master_yamada_campaign_reward.start_dateを現在時間よりも前に調整

# 実行(dry_run)
cd ./jr-web/Docker_ds
docker-compose exec web bash
cd lib/exec
ENVIRONMENT=development PF=yamada HTTP_HOST=127.0.0.1 IS_DOCKER=ture php tool_send_yamada_rewards.php
# ログ
log/yamada_rewards_Ymd.txtに出力されます

# 実行
ENVIRONMENT=development PF=yamada HTTP_HOST=127.0.0.1 IS_DOCKER=ture DRY_RUN=0 php tool_send_yamada_rewards.php

Comment

#6570 by wada at 2020-08-24T20:37:33; updated 2020-08-24T20:37:33

@iwamoto
8/25 12時ごろ配布予定です。
レビューお願いします。

Comment

#6583 by iwamoto at 2020-08-25T11:02:23; updated 2020-08-25T11:02:23

@wada
ローカルで確認できました
問題なさそうです。

wada merge at 2020-08-25T11:07:29: 運動会報酬配布
wada close at 2020-08-25T11:07:29: Close

commit comment

#9 by wada at 2020-08-25T10:17:15; lib/exec/tool_send_yamada_rewards.php / old:88 new:None
38ed9b2e6bbf0303df126737d4d47a1a5361b5a1

elseは不要ですね。

Commit range

base4ef36b17cfb459a03d86388c0530d19bbf69fa74
head38ed9b2e6bbf0303df126737d4d47a1a5361b5a1
base branchjolly/jr-web:master
head branchjolly/jr-web:pf_reward_154

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
addedlib/exec/tool_send_yamada_rewards.php
modifiedlib/models/Present_model.php
Patch body is stored as a separate file to keep this page lightweight.

Review comment

#9 by wada at 2020-08-25T10:17:15; lib/exec/tool_send_yamada_rewards.php / old:88 new:None
38ed9b2e6bbf0303df126737d4d47a1a5361b5a1

elseは不要ですね。