atitit.抽奖活动插件组件设计--结构设计and 抽奖流程建模
2014-10-18 23:14
549 查看
atitit.抽奖活动插件组件设计--结构设计and 抽奖流程建模
1. 组件结构 1
2. startDraw 开始抽奖流程建模 1
3. 抽奖算法 2
作者:: 老哇的爪子 Attilax 艾龙, EMAIL:1466519819@qq.com
转载请注明来源: http://blog.csdn.net/attilax
{
return NoSetAwdError();
}
log("--check bingoedNum,"+logPix);
if (bingoedNum(uid, actid) >= 1) {
log("--bioned,"+logPix);
return binoedRet();
}
log("--check choiceNumOvertime,"+logPix);
if (choiceNumOvertime(uid, actid)) {
log("--choiceNumOvertime ed,"+logPix);
return overtime();
}
Awardx myAward = startAward(Integer.parseInt(actid), uid);
if (myAward == null) { //no bingo process
log("--nobioned,"+logPix);
AwardWeixin joinRec = miniOneAwdChoice(uid, actid);
return noBingoResult(joinRec);
}
/// bingo process
log("--bining,"+logPix);
awdC.miniAllAwdChoice(uid, actid);
setAwdTimeNid(myAward, uid, actid);
return binoedResult(myAward);
if (awd == null)
return null;
//这个awdOver yao 放得个后头了..也许要sysnc挂了...
if (awdOver(awd)) {
if (uid.equals("testMustBin"))// o5c
return awd;
return null;
} else
return awd;
1. 组件结构 1
2. startDraw 开始抽奖流程建模 1
3. 抽奖算法 2
作者:: 老哇的爪子 Attilax 艾龙, EMAIL:1466519819@qq.com
转载请注明来源: http://blog.csdn.net/attilax
1. 组件结构
Shellbox | Titl+ numer iniQueryChoiceTimes | Act_overtimesTips() |
DrawerUI(bigwhell/gird/shake) DrawerLogic (@inj) | leftNums(HttpServletRequest request) startDraw() | |
Funbtn | postUserInfo postOkTips Lookact lookMyawd | |
nobinTips binTips overChoiceTips nobinTips_lookawd | ||
2. startDraw 开始抽奖流程建模
if(NoSetAwd(actid)){
return NoSetAwdError();
}
log("--check bingoedNum,"+logPix);
if (bingoedNum(uid, actid) >= 1) {
log("--bioned,"+logPix);
return binoedRet();
}
log("--check choiceNumOvertime,"+logPix);
if (choiceNumOvertime(uid, actid)) {
log("--choiceNumOvertime ed,"+logPix);
return overtime();
}
Awardx myAward = startAward(Integer.parseInt(actid), uid);
if (myAward == null) { //no bingo process
log("--nobioned,"+logPix);
AwardWeixin joinRec = miniOneAwdChoice(uid, actid);
return noBingoResult(joinRec);
}
/// bingo process
log("--bining,"+logPix);
awdC.miniAllAwdChoice(uid, actid);
setAwdTimeNid(myAward, uid, actid);
return binoedResult(myAward);
3. 抽奖算法
Awardx awd = com.attilax.award.AwdSvs.getBingoAwd(li_fnl);if (awd == null)
return null;
//这个awdOver yao 放得个后头了..也许要sysnc挂了...
if (awdOver(awd)) {
if (uid.equals("testMustBin"))// o5c
return awd;
return null;
} else
return awd;
相关文章推荐
- atitit.抽奖活动插件组件设计--结构设计and 抽奖流程建模
- atitit.抽奖活动插件组件设计--结构设计and 抽奖流程建模
- 以增加收藏夹功能为实例,解析asp.net forums2结构流程及组件设计
- YbSoftwareFactory 代码生成插件【十六】:Web 下灵活、强大的审批流程实现(含流程控制组件、流程设计器和表单设计器)
- 流程设计建模方法:流程的需求梳理之活动级别梳理
- 以增加收藏夹功能为实例,解析asp.net forums2结构流程及组件设计
- 流程设计建模方法:流程的需求梳理之活动属性梳理
- 想做的都做好了休笔半个月,自动行政审批流程组件的审批流程流转实现【附数据库设计下载】
- Silverlight实现查询建模(十) 与Silverlight流程设计器集成
- Silverlight实现查询建模(十) 与Silverlight流程设计器集成
- 想做的都做好了休笔半个月,自动行政审批流程组件的审批流程流转实现【附数据库设计下载】
- 多年一直想完善的自由行政审批流程组件【2002年PHP,2008年.NET,2010年完善数据设计、代码实现】
- 多年一直想完善的自由行政审批流程组件【2002年PHP,2008年.NET,2010年完善数据设计、代码实现】
- 体系结构的历险--组件技术的结构和设计
- 多年一直想完善的自由行政审批流程组件【2002年PHP,2008年.NET,2010年完善数据设计、代码实现】
- 想做的都做好了休笔半个月,自动行政审批流程组件的审批流程流转实现【附数据库设计下载】
- 多年一直想完善的自由行政审批流程组件【2002年PHP,2008年.NET,2010年完善数据设计、代码实现】
- DiscuzNT 商品交易插件设计之[线上交易]---业务流程
- 多年一直想完善的自由行政审批流程组件【2002年PHP,2008年.NET,2010年完善数据设计、代码实现】
- DiscuzNT 商品交易插件设计之[线下交易流程]