Pārlūkot izejas kodu

ft: 测试代码

master
SisMaker pirms 2 gadiem
vecāks
revīzija
9e84ad196e
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +3
    -1
      include/ranks.hrl
  2. +1
    -1
      src/ranks.erl

+ 3
- 1
include/ranks.hrl Parādīt failu

@ -22,10 +22,12 @@
, publicInfo :: term() , publicInfo :: term()
, rankType1Score :: term() , rankType1Score :: term()
, rankType2Score :: term() , rankType2Score :: term()
, rankType3Score :: term()
, rankType4Score :: term()
, rankTypeNScore :: term() , rankTypeNScore :: term()
}). }).
-define(AllRankType, [rankType1Score, rankType2Score, rankTypeNScore]).
-define(AllRankType, [rankType1Score, rankType2Score, rankTypeNScore, rankType3Score, rankType4Score]).
-record(rankInfo, { -record(rankInfo, {
rank :: integer() rank :: integer()

+ 1
- 1
src/ranks.erl Parādīt failu

@ -51,7 +51,7 @@ updateScore(RankType, Key, Score) ->
WorkName = ?ranksCfg:getV(erlang:phash2(Key, ?ranksCfg:getV(?workCnt))), WorkName = ?ranksCfg:getV(erlang:phash2(Key, ?ranksCfg:getV(?workCnt))),
%% %%
%% %%
%% gen_srv:clfn(WorkName, rank_work, mUpdateScore, [Key, RankPos, Score]),
% gen_srv:clfn(WorkName, rankWork, mUpdateScore, [RankType, Key, Score], 1000000000).
%% %%
gen_srv:csfn(WorkName, rankWork, mUpdateScore, [RankType, Key, Score]). gen_srv:csfn(WorkName, rankWork, mUpdateScore, [RankType, Key, Score]).

Notiek ielāde…
Atcelt
Saglabāt