需求 #14563
由 崔赛航 更新于 超过 5 年 之前
<p>背景:1月17号后app没有商品供用户浏览,为维护app的日活,留住用户,故设计三个小游戏增强与用户的互动,保住日活。<br />
<br />
活动时间:2020.01.17:07-2020.01.01.29 07:00<br />
<br />
活动玩法具体见附件</p>
<p>后端分支:<br />
<strong>feature/01.08#14563春节小游戏</strong><br />
新增接口:<br />
<strong>获取用户信息</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099</a>)<br />
<strong>兑换红包</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6100">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6100</a>)<br />
<strong>接金币</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6101">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6101</a>)<br />
<strong>获取成语</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6102">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6102</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=61</a>02)<br />
<strong>验证成语</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6103">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6103</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=61</a>03)<br />
<strong>翻牌</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6104">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6104</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=61</a>04)<br />
<br />
新增sql:<br />
<strong>CREATE TABLE `fmys_activity_user_behavior_history` (<br />
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',<br />
`activity_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '活动类型:{1:春节兑换, 2:春节接金币, 3:春节猜成语, 4:春节翻牌}',<br />
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',<br />
PRIMARY KEY (`id`),<br />
KEY `user_id` (`user_id`) USING BTREE,<br />
KEY `activity_type` (`activity_type`) USING BTREE<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户活动行为记录表';</strong><br />
<strong>CREATE TABLE `fmys_activity_user_money` (<br />
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',<br />
`amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '金额',<br />
`currency` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '币种{1:2020春节金币}',<br />
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',<br />
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',<br />
PRIMARY KEY (`id`),<br />
KEY `user_id` (`user_id`) USING BTREE,<br />
KEY `currency` (`currency`) USING BTREE,<br />
KEY `amount` (`amount`) USING BTREE<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户活动钱包表';</strong><br />
<strong>CREATE TABLE `fmys_activity_user_money_history` (<br />
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',<br />
`currency` int(3) unsigned NOT NULL DEFAULT '0' COMMENT '币种{1:2020春节金币兑换红包}',<br />
`before_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '变更前金额',<br />
`change_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '变更金额',<br />
`event_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '事件id',<br />
`event_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件类型{1:春节兑换, 2:春节接金币, 3:春节猜成语, 4:春节翻牌}',<br />
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',<br />
PRIMARY KEY (`id`),<br />
KEY `user_id` (`user_id`) USING BTREE,<br />
KEY `currency` (`currency`) USING BTREE,<br />
KEY `event_id` (`event_id`) USING BTREE,<br />
KEY `event_type` (`event_type`) USING BTREE<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户活动钱包变更历史表';</strong></p>
<p>需求对接人:陈琼宇</p>
<br />
活动时间:2020.01.17:07-2020.01.01.29 07:00<br />
<br />
活动玩法具体见附件</p>
<p>后端分支:<br />
<strong>feature/01.08#14563春节小游戏</strong><br />
新增接口:<br />
<strong>获取用户信息</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099</a>)<br />
<strong>兑换红包</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6100">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6100</a>)<br />
<strong>接金币</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6101">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6101</a>)<br />
<strong>获取成语</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6102">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6102</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=61</a>02)<br />
<strong>验证成语</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6103">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6103</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=61</a>03)<br />
<strong>翻牌</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6104">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6104</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&api_id=61</a>04)<br />
<br />
新增sql:<br />
<strong>CREATE TABLE `fmys_activity_user_behavior_history` (<br />
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',<br />
`activity_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '活动类型:{1:春节兑换, 2:春节接金币, 3:春节猜成语, 4:春节翻牌}',<br />
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',<br />
PRIMARY KEY (`id`),<br />
KEY `user_id` (`user_id`) USING BTREE,<br />
KEY `activity_type` (`activity_type`) USING BTREE<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户活动行为记录表';</strong><br />
<strong>CREATE TABLE `fmys_activity_user_money` (<br />
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',<br />
`amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '金额',<br />
`currency` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '币种{1:2020春节金币}',<br />
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',<br />
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',<br />
PRIMARY KEY (`id`),<br />
KEY `user_id` (`user_id`) USING BTREE,<br />
KEY `currency` (`currency`) USING BTREE,<br />
KEY `amount` (`amount`) USING BTREE<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户活动钱包表';</strong><br />
<strong>CREATE TABLE `fmys_activity_user_money_history` (<br />
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',<br />
`currency` int(3) unsigned NOT NULL DEFAULT '0' COMMENT '币种{1:2020春节金币兑换红包}',<br />
`before_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '变更前金额',<br />
`change_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '变更金额',<br />
`event_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '事件id',<br />
`event_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件类型{1:春节兑换, 2:春节接金币, 3:春节猜成语, 4:春节翻牌}',<br />
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',<br />
PRIMARY KEY (`id`),<br />
KEY `user_id` (`user_id`) USING BTREE,<br />
KEY `currency` (`currency`) USING BTREE,<br />
KEY `event_id` (`event_id`) USING BTREE,<br />
KEY `event_type` (`event_type`) USING BTREE<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户活动钱包变更历史表';</strong></p>
<p>需求对接人:陈琼宇</p>