项目

一般

简介

需求 #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&amp;api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6099</a>)<br />
<strong>兑换红包</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6100">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6100</a>)<br />
<strong>接金币</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6101">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6101</a>)<br />
<strong>获取成语</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6102">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6102</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=61</a>02)<br />
<strong>验证成语</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6103">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6103</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=61</a>03)<br />
<strong>翻牌</strong>(<a href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6104">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6104</a>)<br href="http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=6099">http://xdebug.yishou.com/dist/project-api-list?project_id=2&amp;api_id=61</a>04)<br />
<br />
新增sql:<br />
<strong>CREATE TABLE `fmys_activity_user_behavior_history` (<br />
&nbsp; `id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
&nbsp; `user_id` int(10) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;用户id&#39;,<br />
&nbsp; `activity_type` tinyint(3) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;活动类型:{1:春节兑换, 2:春节接金币, 3:春节猜成语, 4:春节翻牌}&#39;,<br />
&nbsp; `create_time` int(10) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;创建时间&#39;,<br />
&nbsp; PRIMARY KEY (`id`),<br />
&nbsp; KEY `user_id` (`user_id`) USING BTREE,<br />
&nbsp; KEY `activity_type` (`activity_type`) USING BTREE<br />
) ENGINE=InnoDB&nbsp;DEFAULT CHARSET=utf8 COMMENT=&#39;用户活动行为记录表&#39;;</strong><br />
<strong>CREATE TABLE `fmys_activity_user_money` (<br />
&nbsp; `id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
&nbsp; `user_id` int(10) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;用户id&#39;,<br />
&nbsp; `amount` decimal(10,2) unsigned NOT NULL DEFAULT &#39;0.00&#39; COMMENT &#39;金额&#39;,<br />
&nbsp; `currency` tinyint(3) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;币种{1:2020春节金币}&#39;,<br />
&nbsp; `create_time` int(10) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;创建时间&#39;,<br />
&nbsp; `update_time` int(10) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;更新时间&#39;,<br />
&nbsp; PRIMARY KEY (`id`),<br />
&nbsp; KEY `user_id` (`user_id`) USING BTREE,<br />
&nbsp; KEY `currency` (`currency`) USING BTREE,<br />
&nbsp; KEY `amount` (`amount`) USING BTREE<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT=&#39;用户活动钱包表&#39;;</strong><br />
<strong>CREATE TABLE `fmys_activity_user_money_history` (<br />
&nbsp; `id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
&nbsp; `user_id` int(10) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;用户id&#39;,<br />
&nbsp; `currency` int(3) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;币种{1:2020春节金币兑换红包}&#39;,<br />
&nbsp; `before_money` decimal(10,2) unsigned NOT NULL DEFAULT &#39;0.00&#39; COMMENT &#39;变更前金额&#39;,<br />
&nbsp; `change_money` decimal(10,2) NOT NULL DEFAULT &#39;0.00&#39; COMMENT &#39;变更金额&#39;,<br />
&nbsp; `event_id` int(10) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;事件id&#39;,<br />
&nbsp; `event_type` varchar(255) NOT NULL DEFAULT &#39;&#39; COMMENT &#39;事件类型{1:春节兑换, 2:春节接金币, 3:春节猜成语, 4:春节翻牌}&#39;,<br />
&nbsp; `create_time` int(10) unsigned NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;创建时间&#39;,<br />
&nbsp; PRIMARY KEY (`id`),<br />
&nbsp; KEY `user_id` (`user_id`) USING BTREE,<br />
&nbsp; KEY `currency` (`currency`) USING BTREE,<br />
&nbsp; KEY `event_id` (`event_id`) USING BTREE,<br />
&nbsp; KEY `event_type` (`event_type`) USING BTREE<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT=&#39;用户活动钱包变更历史表&#39;;</strong></p>

<p>需求对接人:陈琼宇</p>

返回

从剪贴板添加图片 (最大尺寸: 50.8 MB)