Sfoglia il codice sorgente

ft: 测试代码

master
SisMaker 2 anni fa
parent
commit
9e84ad196e
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +3
    -1
      include/ranks.hrl
  2. +1
    -1
      src/ranks.erl

+ 3
- 1
include/ranks.hrl Vedi File

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

+ 1
- 1
src/ranks.erl Vedi File

@ -51,7 +51,7 @@ updateScore(RankType, Key, Score) ->
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]).

Caricamento…
Annulla
Salva