被邀请人充值任务
This commit is contained in:
parent
a943492d80
commit
22dbae7f80
|
@ -712,6 +712,7 @@ const (
|
|||
TaskTypeFirstLogin = 15 // 每日首次登录
|
||||
TaskTypeInviteNum = 16 // 邀请绑定数量
|
||||
TaskTypeTurnplate = 17 // 转盘抽奖次数
|
||||
TaskTypeInviteRecharge = 18 // 被邀请人充值金额
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -791,3 +792,7 @@ const (
|
|||
)
|
||||
|
||||
var PetIDs = []int32{PetIDChicken}
|
||||
|
||||
const (
|
||||
InviteScoreRecharge = 10000 // 用户每充值$1邀请人获得积分
|
||||
)
|
||||
|
|
|
@ -1,213 +1,209 @@
|
|||
|
||||
ΟΠ(±κ0:
|
||||
Ο<18>'(±κ0%:
|
||||
Ο<18>N(±κ0J:
|
||||
Ο<18>u(±κ0o:
|
||||
Ο <>(±κ0•:
|
||||
Ο¨Γ(±κ0Ί:
|
||||
Ο°κ(±κ0ί:
|
||||
ΟΈ‘(±κ0„:
|
||||
ΟΐΈ(±κ0©:
|
||||
ΟΠ(±κ0:
|
||||
Ο<18>'(±κ0J:
|
||||
Ο<18>N(±κ0•:
|
||||
Ο<18>u(±κ0ί:
|
||||
Ο <>(±κ0©:
|
||||
Ο¨Γ(±κ0σ:
|
||||
Ο°κ(±κ0Ύ:
|
||||
ΟΈ‘(±κ0<EFBFBD>:
|
||||
ΟΐΈ(±κ0<EFBFBD>:
|
||||
|
||||
ΟΘί(±κ0Ξ:
|
||||
ΟΠ†(±κ0σ:
|
||||
ΟΨ(±κ0<>:
|
||||
ΟΰΤ(±κ0Ύ:
|
||||
Οθϋ(±κ0γ:
|
||||
ΟπΆ(±κ0<>:
|
||||
ΟψΙ(±κ0:
|
||||
Ο€ρ(±κ0<>:
|
||||
Ο<18><>(±κ0χ:
|
||||
Ο<18>Ώ(±κ0<>:
|
||||
Ο<18>ζ(±κ0Α:
|
||||
Ο <>(±κ0η:
|
||||
Οπ“ (±κ0Ϊ:
|
||||
Οΐ<>(±κ0Ν:
|
||||
Ο<18>΅(±κ0ΐ:
|
||||
Οΰ§(±κ0΄:
|
||||
Ο°®(±κ0§:
|
||||
Ο€µ(±κ0<>:
|
||||
ΟΠ»(±κ0<>:
|
||||
Ο Β(±κ0<>:
|
||||
ΟπΘ!(±κ0τ:
|
||||
ΟΐΟ$(±κ0η":
|
||||
Ο<18>Φ'(±κ0Ϊ%:
|
||||
!Οΰά*(±κ0Ξ(:
|
||||
"Ο°γ-(±κ0Α+:
|
||||
#Ο€κ0(±κ0΄.:
|
||||
$ΟΠπ3(±κ0§1:
|
||||
%Ο χ6(±κ0›4:
|
||||
&Οπύ9(±κ0<>7:
|
||||
'Οΐ„=(±κ0<>::
|
||||
(Ο€‰z(±κ0<>N:
|
||||
|
||||
)Οΐ–±(±κ0<>N:
|
||||
|
||||
*Ο€β(±κ0<>N:2
|
||||
+ΟΐΓ“(±κ0<>N:2K
|
||||
,Ο€ΪΔ (±κ0<>N:Kd
|
||||
-Οΐπυ(±κ0<>N:d}
|
||||
.Ο€‡§(±κ0<>N:}–
|
||||
/Οΐ<>Ψ(±κ0<>N:–―
|
||||
0Ο€΄‰(±κ0<>N:―Θ
|
||||
1ΟΐΚΊ(±κ0<>N:Θα
|
||||
2Ο€αλ(±κ0<>N:αϊ
|
||||
3ΠΠ(±κ0:
|
||||
4Π<18>'(±κ0%:
|
||||
5Π<18>N(±κ0J:
|
||||
6Π<18>u(±κ0o:
|
||||
7Π <>(±κ0•:
|
||||
8Π¨Γ(±κ0Ί:
|
||||
9Π°κ(±κ0ί:
|
||||
:ΠΈ‘(±κ0„:
|
||||
;ΠΐΈ(±κ0©:
|
||||
<ΠΘί(±κ0Ξ:
|
||||
=ΠΠ†(±κ0σ:
|
||||
>ΠΨ(±κ0<>:
|
||||
?ΠΰΤ(±κ0Ύ:
|
||||
@Πθϋ(±κ0γ:
|
||||
AΠπΆ(±κ0<>:
|
||||
BΠψΙ(±κ0:
|
||||
CΠ€ρ(±κ0<>:
|
||||
DΠ<18><>(±κ0χ:
|
||||
EΠ<18>Ώ(±κ0<>:
|
||||
FΠ<18>ζ(±κ0Α:
|
||||
GΠ <>(±κ0η:
|
||||
HΠπ“ (±κ0Ϊ:
|
||||
IΠΐ<>(±κ0Ν:
|
||||
JΠ<18>΅(±κ0ΐ:
|
||||
KΠΰ§(±κ0΄:
|
||||
LΠ°®(±κ0§:
|
||||
MΠ€µ(±κ0<>:
|
||||
NΠΠ»(±κ0<>:
|
||||
OΠ Β(±κ0<>:
|
||||
PΠπΘ!(±κ0τ:
|
||||
QΠΐΟ$(±κ0η":
|
||||
RΠ<18>Φ'(±κ0Ϊ%:
|
||||
SΠΰά*(±κ0Ξ(:
|
||||
TΠ°γ-(±κ0Α+:
|
||||
UΠ€κ0(±κ0΄.:
|
||||
VΠΠπ3(±κ0§1:
|
||||
WΠ χ6(±κ0›4:
|
||||
XΠπύ9(±κ0<>7:
|
||||
YΠΐ„=(±κ0<>::
|
||||
ZΠ€‰z(±κ0<>N:
|
||||
|
||||
[Πΐ–±(±κ0<>N:
|
||||
|
||||
\Π€β(±κ0<>N:2
|
||||
]ΠΐΓ“(±κ0<>N:2K
|
||||
^Π€ΪΔ (±κ0<>N:Kd
|
||||
_Πΐπυ(±κ0<>N:d}
|
||||
`Π€‡§(±κ0<>N:}–
|
||||
aΠΐ<>Ψ(±κ0<>N:–―
|
||||
bΠ€΄‰(±κ0<>N:―Θ
|
||||
cΠΐΚΊ(±κ0<>N:Θα
|
||||
dΠ€αλ(±κ0<>N:αϊ
|
||||
eΡΠ(±κ0:
|
||||
fΡ<18>'(±κ0%:
|
||||
gΡ<18>N(±κ0J:
|
||||
hΡ<18>u(±κ0o:
|
||||
iΡ <>(±κ0•:
|
||||
jΡ¨Γ(±κ0Ί:
|
||||
kΡ°κ(±κ0ί:
|
||||
lΡΈ‘(±κ0„:
|
||||
mΡΐΈ(±κ0©:
|
||||
nΡΘί(±κ0Ξ:
|
||||
oΡΠ†(±κ0σ:
|
||||
pΡΨ(±κ0<>:
|
||||
qΡΰΤ(±κ0Ύ:
|
||||
rΡθϋ(±κ0γ:
|
||||
sΡπΆ(±κ0<>:
|
||||
tΡψΙ(±κ0:
|
||||
uΡ€ρ(±κ0<>:
|
||||
vΡ<18><>(±κ0χ:
|
||||
wΡ<18>Ώ(±κ0<>:
|
||||
xΡ<18>ζ(±κ0Α:
|
||||
yΡ <>(±κ0η:
|
||||
zΡπ“ (±κ0Ϊ:
|
||||
{Ρΐ<>(±κ0Ν:
|
||||
|Ρ<18>΅(±κ0ΐ:
|
||||
}Ρΰ§(±κ0΄:
|
||||
~Ρ°®(±κ0§:
|
||||
Ρ€µ(±κ0<>:
|
||||
€ΡΠ»(±κ0<>:
|
||||
<08>Ρ Β(±κ0<>:
|
||||
‚ΡπΘ!(±κ0τ:
|
||||
ƒΡΐΟ$(±κ0η":
|
||||
„Ρ<18>Φ'(±κ0Ϊ%:
|
||||
…Ρΰά*(±κ0Ξ(:
|
||||
†Ρ°γ-(±κ0Α+:
|
||||
‡Ρ€κ0(±κ0΄.:
|
||||
<08>ΡΠπ3(±κ0§1:
|
||||
‰Ρ χ6(±κ0›4:
|
||||
<08>Ρπύ9(±κ0<>7:
|
||||
‹Ρΐ„=(±κ0<>::
|
||||
<08>Ρ€‰z(±κ0<>N:
|
||||
|
||||
<08>Ρΐ–±(±κ0<>N:
|
||||
|
||||
<08>Ρ€β(±κ0<>N:2
|
||||
<08>ΡΐΓ“(±κ0<>N:2K
|
||||
<08>Ρ€ΪΔ (±κ0<>N:Kd
|
||||
‘Ρΐπυ(±κ0<>N:d}
|
||||
’Ρ€‡§(±κ0<>N:}–
|
||||
“Ρΐ<>Ψ(±κ0<>N:–―
|
||||
”Ρ€΄‰(±κ0<>N:―Θ
|
||||
•ΡΐΚΊ(±κ0<>N:Θα
|
||||
–Ρ€αλ(±κ0<>N:αϊ
|
||||
—<10>Π(±κ0:
|
||||
<08><10><18>'(±κ0%:
|
||||
™<10><18>N(±κ0J:
|
||||
<08><10><18>u(±κ0o:
|
||||
›<10> <>(±κ0•:
|
||||
<08><10>¨Γ(±κ0Ί:
|
||||
<08><10>°κ(±κ0ί:
|
||||
<08><10>Έ‘(±κ0„:
|
||||
<08><10>ΐΈ(±κ0©:
|
||||
<10>Θί(±κ0Ξ:
|
||||
΅<10>Π†(±κ0σ:
|
||||
Ά<10>Ψ(±κ0<>:
|
||||
£<10>ΰΤ(±κ0Ύ:
|
||||
¤<10>θϋ(±κ0γ:
|
||||
¥<10>πΆ(±κ0<>:
|
||||
¦<10>ψΙ(±κ0:
|
||||
§<10>€ρ(±κ0<>:
|
||||
¨<10><18><>(±κ0χ:
|
||||
©<10><18>Ώ(±κ0<>:
|
||||
<08><10><18>ζ(±κ0Α:
|
||||
«<10> <>(±κ0η:
|
||||
¬<10>π“ (±κ0Ϊ:
|
||||
<10>ΐ<>(±κ0Ν:
|
||||
®<10><18>΅(±κ0ΐ:
|
||||
―<10>ΰ§(±κ0΄:
|
||||
°<10>°®(±κ0§:
|
||||
±<10>€µ(±κ0<>:
|
||||
²<10>Π»(±κ0<>:
|
||||
³<10> Β(±κ0<>:
|
||||
΄<10>πΘ!(±κ0τ:
|
||||
µ<10>ΐΟ$(±κ0η":
|
||||
¶<10><18>Φ'(±κ0Ϊ%:
|
||||
·<10>ΰά*(±κ0Ξ(:
|
||||
Έ<10>°γ-(±κ0Α+:
|
||||
Ή<10>€κ0(±κ0΄.:
|
||||
Ί<10>Ππ3(±κ0§1:
|
||||
»<10> χ6(±κ0›4:
|
||||
Ό<10>πύ9(±κ0<>7:
|
||||
½<10>ΐ„=(±κ0<>::
|
||||
Ύ<10>€‰z(±κ0<>N:
|
||||
|
||||
Ώ<10>ΐ–±(±κ0<>N:
|
||||
|
||||
ΐ<10>€β(±κ0<>N:2
|
||||
Α<10>ΐΓ“(±κ0<>N:2K
|
||||
Β<10>€ΪΔ (±κ0<>N:Kd
|
||||
Γ<10>ΐπυ(±κ0<>N:d}
|
||||
Δ<10>€‡§(±κ0<>N:}–
|
||||
Ε<10>ΐ<>Ψ(±κ0<>N:–―
|
||||
Ζ<10>€΄‰(±κ0<>N:―Θ
|
||||
Η<10>ΐΚΊ(±κ0<>N:Θα
|
||||
Θ<10>€αλ(±κ0<>N:αϊ
|
||||
ΟΘί(±κ0<>:
|
||||
ΟΠ†(±κ0η:
|
||||
ΟΨ(±κ0±:
|
||||
ΟΰΤ(±κ0ϋ:
|
||||
Οθϋ(±κ0Ε:
|
||||
ΟπΆ(±κ0<>:
|
||||
ΟψΙ(±κ0Ϊ:
|
||||
Ο€ρ(±κ0¤ :
|
||||
Ο<18><>(±κ0ξ :
|
||||
Ο<18>Ώ(±κ0Ή
|
||||
:
|
||||
Ο<18>ζ(±κ0ƒ:
|
||||
Ο <>(±κ0Ν:
|
||||
Οπ“ (±κ0΄:
|
||||
Οΐ<>(±κ0<>:
|
||||
Ο<18>΅(±κ0<>:
|
||||
Οΰ§(±κ0η":
|
||||
Ο°®(±κ0Ξ(:
|
||||
Ο€µ(±κ0΄.:
|
||||
ΟΠ»(±κ0›4:
|
||||
Ο Β(±κ0<>::
|
||||
ΟπΘ!(±κ0θ?:
|
||||
ΟΐΟ$(±κ0ΞE:
|
||||
Ο<18>Φ'(±κ0µK:
|
||||
!Οΰά*(±κ0<>N:
|
||||
"Ο°γ-(±κ0<>N:
|
||||
#Ο€κ0(±κ0<>N:
|
||||
$ΟΠπ3(±κ0<>N:
|
||||
%Ο χ6(±κ0<>N:
|
||||
&Οπύ9(±κ0<>N:
|
||||
'Οΐ„=(±κ0<>N:
|
||||
(Ο€‰z(±κ0<>N:
|
||||
)Οΐ–±(±κ0<>N:
|
||||
*Ο€β(±κ0<>N:
|
||||
+ΟΐΓ“(±κ0<>N:
|
||||
,Ο€ΪΔ (±κ0<>N:
|
||||
-Οΐπυ(±κ0<>N:#'
|
||||
.Ο€‡§(±κ0<>N:+/
|
||||
/Οΐ<>Ψ(±κ0<>N:26
|
||||
0Ο€΄‰(±κ0<>N:9=
|
||||
1ΟΐΚΊ(±κ0<>N:AE
|
||||
2Ο€αλ(±κ0<>N:HL
|
||||
3ΠΠ(±κ0:
|
||||
4Π<18>'(±κ0J:
|
||||
5Π<18>N(±κ0•:
|
||||
6Π<18>u(±κ0ί:
|
||||
7Π <>(±κ0©:
|
||||
8Π¨Γ(±κ0σ:
|
||||
9Π°κ(±κ0Ύ:
|
||||
:ΠΈ‘(±κ0<>:
|
||||
;ΠΐΈ(±κ0<>:
|
||||
<ΠΘί(±κ0<>:
|
||||
=ΠΠ†(±κ0η:
|
||||
>ΠΨ(±κ0±:
|
||||
?ΠΰΤ(±κ0ϋ:
|
||||
@Πθϋ(±κ0Ε:
|
||||
AΠπΆ(±κ0<>:
|
||||
BΠψΙ(±κ0Ϊ:
|
||||
CΠ€ρ(±κ0¤ :
|
||||
DΠ<18><>(±κ0ξ :
|
||||
EΠ<18>Ώ(±κ0Ή
|
||||
:
|
||||
FΠ<18>ζ(±κ0ƒ:
|
||||
GΠ <>(±κ0Ν:
|
||||
HΠπ“ (±κ0΄:
|
||||
IΠΐ<>(±κ0<>:
|
||||
JΠ<18>΅(±κ0<>:
|
||||
KΠΰ§(±κ0η":
|
||||
LΠ°®(±κ0Ξ(:
|
||||
MΠ€µ(±κ0΄.:
|
||||
NΠΠ»(±κ0›4:
|
||||
OΠ Β(±κ0<>::
|
||||
PΠπΘ!(±κ0θ?:
|
||||
QΠΐΟ$(±κ0ΞE:
|
||||
RΠ<18>Φ'(±κ0µK:
|
||||
SΠΰά*(±κ0<>N:
|
||||
TΠ°γ-(±κ0<>N:
|
||||
UΠ€κ0(±κ0<>N:
|
||||
VΠΠπ3(±κ0<>N:
|
||||
WΠ χ6(±κ0<>N:
|
||||
XΠπύ9(±κ0<>N:
|
||||
YΠΐ„=(±κ0<>N:
|
||||
ZΠ€‰z(±κ0<>N:
|
||||
[Πΐ–±(±κ0<>N:
|
||||
\Π€β(±κ0<>N:
|
||||
]ΠΐΓ“(±κ0<>N:
|
||||
^Π€ΪΔ (±κ0<>N:
|
||||
_Πΐπυ(±κ0<>N:#'
|
||||
`Π€‡§(±κ0<>N:+/
|
||||
aΠΐ<>Ψ(±κ0<>N:26
|
||||
bΠ€΄‰(±κ0<>N:9=
|
||||
cΠΐΚΊ(±κ0<>N:AE
|
||||
dΠ€αλ(±κ0<>N:HL
|
||||
eΡΠ(±κ0:
|
||||
fΡ<18>'(±κ0J:
|
||||
gΡ<18>N(±κ0•:
|
||||
hΡ<18>u(±κ0ί:
|
||||
iΡ <>(±κ0©:
|
||||
jΡ¨Γ(±κ0σ:
|
||||
kΡ°κ(±κ0Ύ:
|
||||
lΡΈ‘(±κ0<>:
|
||||
mΡΐΈ(±κ0<>:
|
||||
nΡΘί(±κ0<>:
|
||||
oΡΠ†(±κ0η:
|
||||
pΡΨ(±κ0±:
|
||||
qΡΰΤ(±κ0ϋ:
|
||||
rΡθϋ(±κ0Ε:
|
||||
sΡπΆ(±κ0<>:
|
||||
tΡψΙ(±κ0Ϊ:
|
||||
uΡ€ρ(±κ0¤ :
|
||||
vΡ<18><>(±κ0ξ :
|
||||
wΡ<18>Ώ(±κ0Ή
|
||||
:
|
||||
xΡ<18>ζ(±κ0ƒ:
|
||||
yΡ <>(±κ0Ν:
|
||||
zΡπ“ (±κ0΄:
|
||||
{Ρΐ<>(±κ0<>:
|
||||
|Ρ<18>΅(±κ0<>:
|
||||
}Ρΰ§(±κ0η":
|
||||
~Ρ°®(±κ0Ξ(:
|
||||
Ρ€µ(±κ0΄.:
|
||||
€ΡΠ»(±κ0›4:
|
||||
<08>Ρ Β(±κ0<>::
|
||||
‚ΡπΘ!(±κ0θ?:
|
||||
ƒΡΐΟ$(±κ0ΞE:
|
||||
„Ρ<18>Φ'(±κ0µK:
|
||||
…Ρΰά*(±κ0<>N:
|
||||
†Ρ°γ-(±κ0<>N:
|
||||
‡Ρ€κ0(±κ0<>N:
|
||||
<08>ΡΠπ3(±κ0<>N:
|
||||
‰Ρ χ6(±κ0<>N:
|
||||
<08>Ρπύ9(±κ0<>N:
|
||||
‹Ρΐ„=(±κ0<>N:
|
||||
<08>Ρ€‰z(±κ0<>N:
|
||||
<08>Ρΐ–±(±κ0<>N:
|
||||
<08>Ρ€β(±κ0<>N:
|
||||
<08>ΡΐΓ“(±κ0<>N:
|
||||
<08>Ρ€ΪΔ (±κ0<>N:
|
||||
‘Ρΐπυ(±κ0<>N:#'
|
||||
’Ρ€‡§(±κ0<>N:+/
|
||||
“Ρΐ<>Ψ(±κ0<>N:26
|
||||
”Ρ€΄‰(±κ0<>N:9=
|
||||
•ΡΐΚΊ(±κ0<>N:AE
|
||||
–Ρ€αλ(±κ0<>N:HL
|
||||
—<10>Π(±κ0:
|
||||
<08><10><18>'(±κ0J:
|
||||
™<10><18>N(±κ0•:
|
||||
<08><10><18>u(±κ0ί:
|
||||
›<10> <>(±κ0©:
|
||||
<08><10>¨Γ(±κ0σ:
|
||||
<08><10>°κ(±κ0Ύ:
|
||||
<08><10>Έ‘(±κ0<>:
|
||||
<08><10>ΐΈ(±κ0<>:
|
||||
<10>Θί(±κ0<>:
|
||||
΅<10>Π†(±κ0η:
|
||||
Ά<10>Ψ(±κ0±:
|
||||
£<10>ΰΤ(±κ0ϋ:
|
||||
¤<10>θϋ(±κ0Ε:
|
||||
¥<10>πΆ(±κ0<>:
|
||||
¦<10>ψΙ(±κ0Ϊ:
|
||||
§<10>€ρ(±κ0¤ :
|
||||
¨<10><18><>(±κ0ξ :
|
||||
©<10><18>Ώ(±κ0Ή
|
||||
:
|
||||
<08><10><18>ζ(±κ0ƒ:
|
||||
«<10> <>(±κ0Ν:
|
||||
¬<10>π“ (±κ0΄:
|
||||
<10>ΐ<>(±κ0<>:
|
||||
®<10><18>΅(±κ0<>:
|
||||
―<10>ΰ§(±κ0η":
|
||||
°<10>°®(±κ0Ξ(:
|
||||
±<10>€µ(±κ0΄.:
|
||||
²<10>Π»(±κ0›4:
|
||||
³<10> Β(±κ0<>::
|
||||
΄<10>πΘ!(±κ0θ?:
|
||||
µ<10>ΐΟ$(±κ0ΞE:
|
||||
¶<10><18>Φ'(±κ0µK:
|
||||
·<10>ΰά*(±κ0<>N:
|
||||
Έ<10>°γ-(±κ0<>N:
|
||||
Ή<10>€κ0(±κ0<>N:
|
||||
Ί<10>Ππ3(±κ0<>N:
|
||||
»<10> χ6(±κ0<>N:
|
||||
Ό<10>πύ9(±κ0<>N:
|
||||
½<10>ΐ„=(±κ0<>N:
|
||||
Ύ<10>€‰z(±κ0<>N:
|
||||
Ώ<10>ΐ–±(±κ0<>N:
|
||||
ΐ<10>€β(±κ0<>N:
|
||||
Α<10>ΐΓ“(±κ0<>N:
|
||||
Β<10>€ΪΔ (±κ0<>N:
|
||||
Γ<10>ΐπυ(±κ0<>N:#'
|
||||
Δ<10>€‡§(±κ0<>N:+/
|
||||
Ε<10>ΐ<>Ψ(±κ0<>N:26
|
||||
Ζ<10>€΄‰(±κ0<>N:9=
|
||||
Η<10>ΐΚΊ(±κ0<>N:AE
|
||||
Θ<10>€αλ(±κ0<>N:HL
|
||||
иП░N(╠Й0∙:
|
||||
йПп├(╠Й0Г:
|
||||
кПю (╠Й0 :
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
|
||||
6Նֆ׆ӆԆ"¡<>À„=
|
||||
.и<>й<>к<EFBFBD>л<EFBFBD>"Ё<>Р<>=
|
||||
Wж<EFBFBD>е<>д<>з<EFBFBD>и<>й<>к<>л<>г<>" Ё<><10>т
|
||||
]з<>и<EFBFBD>л<>г<>д<>ж<>м<>е<>й<>к<EFBFBD>"Ђ<>є
|
||||
.л<EFBFBD>и<EFBFBD>й<>к<>"Ё<>Р<>=
|
||||
Wз<>и<>й<>к<>л<>г<EFBFBD>д<>е<>ж<EFBFBD>" Ё<><10>т
|
||||
]з<>к<EFBFBD>г<>е<>и<>й<>л<>м<>д<>ж<EFBFBD>"Ђ<>є
|
BIN
data/DB_Task.dat
BIN
data/DB_Task.dat
Binary file not shown.
|
@ -199,6 +199,18 @@
|
|||
"100002": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 21,
|
||||
"Order": 6,
|
||||
"ActivityType": 3,
|
||||
"TaskType": 18,
|
||||
"TargetTimes": 100,
|
||||
"FinishTimes": 1,
|
||||
"Award": {
|
||||
"100001": 10000000,
|
||||
"100002": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 17,
|
||||
"Order": 1,
|
||||
|
|
|
@ -48,6 +48,7 @@ func (b *BindScoreSvc) GetInviteScore(req *model.InviteScoreReq, ret *model.Invi
|
|||
|
||||
type M struct {
|
||||
Score int64
|
||||
Money int64
|
||||
}
|
||||
|
||||
var tc []M
|
||||
|
@ -58,6 +59,7 @@ func (b *BindScoreSvc) GetInviteScore(req *model.InviteScoreReq, ret *model.Invi
|
|||
{"$group": bson.M{
|
||||
"_id": nil,
|
||||
"score": bson.M{"$sum": "$score"},
|
||||
"money": bson.M{"$sum": "$money"},
|
||||
}},
|
||||
}).AllowDiskUse().All(&tc)
|
||||
if err != nil {
|
||||
|
@ -67,6 +69,7 @@ func (b *BindScoreSvc) GetInviteScore(req *model.InviteScoreReq, ret *model.Invi
|
|||
|
||||
if len(tc) > 0 {
|
||||
ret.Score = tc[0].Score
|
||||
ret.Money = tc[0].Money
|
||||
c := PlayerDataCollection(req.Platform)
|
||||
if c == nil {
|
||||
return PlayerColError
|
||||
|
|
|
@ -53,6 +53,7 @@ type InviteScore struct {
|
|||
Tp int32 // 积分类型 common.InviteScoreType~
|
||||
Score int64 // 积分
|
||||
Ts int64 // 时间戳
|
||||
Money int64 // 充值金额
|
||||
}
|
||||
|
||||
type InviteScoreReq struct {
|
||||
|
@ -61,16 +62,18 @@ type InviteScoreReq struct {
|
|||
}
|
||||
|
||||
type InviteScoreRet struct {
|
||||
Score int64
|
||||
ZScore int64
|
||||
Score int64 // 包含扣积分
|
||||
ZScore int64 // 只包含大于0的积分
|
||||
Money int64 // 充值金额
|
||||
}
|
||||
|
||||
// GetInviteScore 查询总积分
|
||||
// 下级玩家所有积分
|
||||
func GetInviteScore(plt string, snid int32) (int64, int64, error) {
|
||||
// 返回 包含扣积分,只包含大于0的积分,充值金额
|
||||
func GetInviteScore(plt string, snid int32) (int64, int64, int64, error) {
|
||||
if rpcCli == nil {
|
||||
logger.Logger.Warnf("rpcCli is nil")
|
||||
return 0, 0, errors.New("rpcCli is nil")
|
||||
return 0, 0, 0, errors.New("rpcCli is nil")
|
||||
}
|
||||
|
||||
req := &InviteScoreReq{
|
||||
|
@ -81,10 +84,10 @@ func GetInviteScore(plt string, snid int32) (int64, int64, error) {
|
|||
err := rpcCli.CallWithTimeout("BindScoreSvc.GetInviteScore", req, ret, time.Second*30)
|
||||
if err != nil {
|
||||
logger.Logger.Warnf("GetInviteScore err:%v", err)
|
||||
return 0, 0, err
|
||||
return 0, 0, 0, err
|
||||
}
|
||||
|
||||
return ret.Score, ret.ZScore, err
|
||||
return ret.Score, ret.ZScore, ret.Money, err
|
||||
}
|
||||
|
||||
// SaveInviteScore 保存积分变更记录
|
||||
|
|
|
@ -313,28 +313,25 @@ func CSInviteInfo(s *netlib.Session, packetid int, data interface{}, sid int64)
|
|||
res, err = webapi.ApiGetInviteLink(common.GetAppId(), req)
|
||||
return nil
|
||||
}), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) {
|
||||
info := webapi_proto.SAPlayerInviteLink{}
|
||||
link := ""
|
||||
if err != nil || res == nil {
|
||||
logger.Logger.Errorf("ApiGetInviteLink err %v or not return", err)
|
||||
return
|
||||
}
|
||||
|
||||
var info webapi_proto.SAPlayerInviteLink
|
||||
proto.Unmarshal(res, &info)
|
||||
|
||||
if info.Tag == webapi_proto.TagCode_SUCCESS {
|
||||
ret := &welfare.SCInviteInfo{
|
||||
Num: p.InviteNum,
|
||||
Code: p.InviteCode,
|
||||
InviteUrl: info.Link,
|
||||
Score: p.InviteScore,
|
||||
OtherCode: p.OtherCode,
|
||||
}
|
||||
|
||||
p.SendToClient(int(welfare.SPacketID_PACKET_SCInviteInfo), ret)
|
||||
logger.Logger.Tracef("SCInviteInfo %v", ret)
|
||||
} else {
|
||||
logger.Logger.Errorf("ApiGetInviteLink:%v", info.String())
|
||||
proto.Unmarshal(res, &info)
|
||||
logger.Logger.Infof("ApiGetInviteLink info %v", info.String())
|
||||
link = info.Link
|
||||
}
|
||||
|
||||
ret := &welfare.SCInviteInfo{
|
||||
Num: p.InviteNum,
|
||||
Code: p.InviteCode,
|
||||
InviteUrl: link,
|
||||
Score: p.InviteScore,
|
||||
OtherCode: p.OtherCode,
|
||||
}
|
||||
p.SendToClient(int(welfare.SPacketID_PACKET_SCInviteInfo), ret)
|
||||
logger.Logger.Tracef("SCInviteInfo %v", ret)
|
||||
})).Start()
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -30,20 +30,29 @@ func SaveInviteScore(data *model.InviteScore) {
|
|||
return nil
|
||||
}), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) {
|
||||
p := PlayerMgrSington.GetPlayerBySnId(data.InviteSnId)
|
||||
if err == nil && p != nil && data.Score != 0 {
|
||||
if data.Score < 0 {
|
||||
if -data.Score > p.InviteScore {
|
||||
data.Score = -p.InviteScore
|
||||
if err == nil && p != nil {
|
||||
if data.Score != 0 {
|
||||
if data.Score < 0 {
|
||||
if -data.Score > p.InviteScore {
|
||||
data.Score = -p.InviteScore
|
||||
}
|
||||
}
|
||||
p.InviteScore += data.Score
|
||||
p.dirty = true
|
||||
|
||||
// 更新邀请任务进度
|
||||
if data.Score > 0 {
|
||||
TaskSubjectSingleton.Touch(common.TaskTypeInviteScore, &TaskData{
|
||||
SnId: p.SnId,
|
||||
Num: data.Score,
|
||||
})
|
||||
}
|
||||
}
|
||||
p.InviteScore += data.Score
|
||||
p.dirty = true
|
||||
|
||||
// 更新邀请任务进度
|
||||
if data.Score > 0 {
|
||||
TaskSubjectSingleton.Touch(common.TaskTypeInviteScore, &TaskData{
|
||||
if data.Money > 0 {
|
||||
TaskSubjectSingleton.Touch(common.TaskTypeInviteRecharge, &TaskData{
|
||||
SnId: p.SnId,
|
||||
Num: data.Score,
|
||||
Num: data.Money,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -51,10 +60,10 @@ func SaveInviteScore(data *model.InviteScore) {
|
|||
}
|
||||
|
||||
func GetInviteScore(platform string, snid int32) {
|
||||
var n, z int64
|
||||
var n, z, money int64
|
||||
var err error
|
||||
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
|
||||
n, z, err = model.GetInviteScore(platform, snid)
|
||||
n, z, money, err = model.GetInviteScore(platform, snid)
|
||||
if err != nil {
|
||||
logger.Logger.Errorf("GetInviteScore error:%v", err)
|
||||
return err
|
||||
|
@ -72,6 +81,12 @@ func GetInviteScore(platform string, snid int32) {
|
|||
SnId: p.SnId,
|
||||
Num: z,
|
||||
})
|
||||
|
||||
p.ResetTaskN(common.TaskTypeInviteRecharge)
|
||||
TaskSubjectSingleton.Touch(common.TaskTypeInviteRecharge, &TaskData{
|
||||
SnId: p.SnId,
|
||||
Num: money,
|
||||
})
|
||||
}
|
||||
})).StartByFixExecutor(fmt.Sprintf("invite_score_%v", snid))
|
||||
}
|
||||
|
|
|
@ -4431,8 +4431,9 @@ func (this *Player) InviteTask(scoreType int32, gameId int32, n int64) {
|
|||
SnId: this.SnId,
|
||||
InviteSnId: this.InviteSnId,
|
||||
Tp: scoreType,
|
||||
Score: a * 10000,
|
||||
Score: a * common.InviteScoreRecharge,
|
||||
Ts: time.Now().UnixNano(),
|
||||
Money: n,
|
||||
})
|
||||
|
||||
case common.InviteScoreTypeGameTimes:
|
||||
|
|
|
@ -245,4 +245,5 @@ func init() {
|
|||
TaskSubjectSingleton.Attach(common.TaskTypeFirstLogin, taskHandle)
|
||||
TaskSubjectSingleton.Attach(common.TaskTypeInviteNum, taskHandle)
|
||||
TaskSubjectSingleton.Attach(common.TaskTypeTurnplate, taskHandle)
|
||||
TaskSubjectSingleton.Attach(common.TaskTypeInviteRecharge, taskHandle)
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue