PR

有償プロモーションクエスト #4338

wada opened this at 2025-10-30T10:23:11; closed

Description

opened by wada at 2025-10-30T10:23:11; updated 2025-10-31T15:27:06

概要

有償リワードガチャキャンペーン
3stepキャンペーン

db更新内容

有償プロモーションクエスト jolly/jrye-db#1233

新規テーブル

CREATE TABLE `user_gesoten_quest` (
  `campaign_id` int(11) unsigned NOT NULL,
  `quest_id` tinyint(3) unsigned NOT NULL,
  `user_no` int(10) unsigned NOT NULL,
  `target_date` date NOT NULL,
  `user_count` int(10) unsigned NOT NULL DEFAULT '0',
  `api_send_flg` tinyint(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`campaign_id`,`quest_id`,`user_no`,`target_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `log_gesoten_quest` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `campaign_id` int(10) unsigned NOT NULL,
  `quest_id` tinyint(3) unsigned NOT NULL,
  `user_no` int(10) unsigned NOT NULL,
  `amount` int(10) unsigned NOT NULL,
  `send_api` tinyint(3) unsigned NOT NULL,
  `reg_date` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `campaign_quest` (`campaign_id`,`quest_id`),
  KEY `user_reg` (`user_no`,`reg_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

TODO

  • [x] dbデプロイ
  • [x] webデプロイ
wada merge at 2025-10-30T10:34:18: 有償プロモーションクエスト
wada close at 2025-10-30T10:34:18: Close
wada delete_branch at 2025-10-30T10:34:23: gesoten_campaign_1101

Commit range

basee6dfd09704520955138455800f4240f8859ea8fc
head5d884da7402d5ab31c7f31a7a5a9e5885a1a9e1a
base branchjolly/jr-web:master
head branchjolly/jr-web:gesoten_campaign_1101

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed9 filesView patch
statusfile
modifiedlib/SubFunc.inc
modifiedlib/class/const/QuestConst.class.php
modifiedlib/class/platform/gesoten/GesotenAPI.class.php
modifiedlib/class/platform/gesoten/GesotenPlatformService.class.php
modifiedlib/class/platform/gesoten/GesotenWithoutAPI.class.php
addedlib/models/Gesoten_campaign.php
addedlib/models/dao/Gesoten_campaign_repository.php
modifiedlib/public/Debug.inc
modifiedlib/public/Main.inc
Patch body is stored as a separate file to keep this page lightweight.