atitit.抽獎活動插件組件設計--結構設計and 抽獎流程建模

atitit.抽獎活動插件組件設計--結構設計and 抽獎流程建模算法

 

1. 組件結構 1post

2. startDraw 開始抽獎流程建模 1ui

3. 抽獎算法 2spa

 

做者:: 老哇的爪子 Attilax 艾龍。  EMAIL:1466519819@qq.com.net

轉載請註明來源: http://blog.csdn.net/attilax插件

 

1. 組件結構

 

 

Shellbox設計

Titl+ numerblog

iniQueryChoiceTimesip

 

Act_overtimesTips()get

 

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;

 

 

我要啦免費統計
相關文章
相關標籤/搜索