Merge branch 'bugfix' of http://git.legu.cc/qixin/HJ_Server into bugfix

This commit is contained in:
ciniao 2023-12-26 10:33:07 +08:00
commit a0043e1080
5 changed files with 31 additions and 29 deletions

View File

@ -17,7 +17,6 @@ import { CollectionFriend } from '../module/collection_friend';
import {CollectionGongHui} from '../module/collection_gonghui'; import {CollectionGongHui} from '../module/collection_gonghui';
export type sortEd = { export type sortEd = {
score: number, score: number,
value: string value: string
@ -29,7 +28,7 @@ export type sortEd = {
export type RedisCollections1 = { export type RedisCollections1 = {
user: CollectionUser; user: CollectionUser;
gbtx: CollectionGBTX; gbtx: CollectionGBTX;
tanxian: Omit<CollectionTanXian, 'fastGuaJiNum'>; tanxian: Omit<CollectionTanXian, 'fastGuaJiNum'> | any;
dxlt: CollectionDxlt; dxlt: CollectionDxlt;
jjc: CollectionJJC; jjc: CollectionJJC;
}; };

View File

@ -21,11 +21,13 @@ export async function clearGud(uid) {
if (await G.redis.type('tanxian', uid)) { if (await G.redis.type('tanxian', uid)) {
console.log('清空tanxian Redis', uid); console.log('清空tanxian Redis', uid);
G.redis.del("tanxian",uid); // G.redis.del("tanxian", uid);
G.redis.set('tanxian', uid, {})
} }
try { try {
console.log('清空friend:list Redis',uid); // console.log('清空friend:list Redis', uid);
G.redis.hDel("friend:list",uid); // G.redis.hDel("friend:list", uid);
// G.redis.hSet('friend:list', uid, {})
} catch (e) { } catch (e) {
} }

View File

@ -74,7 +74,7 @@ export class LingZhuLaiXifun {
// 隔天清零 // 隔天清零
if (_myData && PublicShared.chkSameDate(_myData.time, G.time)) { if (_myData && PublicShared.chkSameDate(_myData.time, G.time)) {
_res = { _res = {
num: _myData.num, num: _myData.num || 0,
time: _myData.time, time: _myData.time,
maxdps: _myData.maxdps maxdps: _myData.maxdps
} }

View File

@ -250,7 +250,7 @@ export class PayFun {
console.log("Christmasfun.payChristmas Error", e); console.log("Christmasfun.payChristmas Error", e);
} }
if (payArgs.selectPrize) { if (payArgs && payArgs?.selectPrize) {
let selectPrize = await G.ioredis.get(`pay:${payId}:${player.uid}`); let selectPrize = await G.ioredis.get(`pay:${payId}:${player.uid}`);
if (selectPrize) { if (selectPrize) {
prize.push(...JSON.parse(selectPrize)) prize.push(...JSON.parse(selectPrize))
@ -421,7 +421,7 @@ export class PayFun {
* payArgs里传相应参数selectList选择的奖励列表 * payArgs里传相应参数selectList选择的奖励列表
* 414 * 414
*/ */
if (payArgs.htype && payArgs.selectList) { if (payArgs && payArgs?.htype && payArgs?.selectList) {
let call = this.getCall(player) let call = this.getCall(player)
// @ts-ignore // @ts-ignore
let _hdInfo = (await HuoDongFun.gethdList(call, payArgs.htype))[0] let _hdInfo = (await HuoDongFun.gethdList(call, payArgs.htype))[0]

View File

@ -42,6 +42,7 @@ async function start() {
// let c = await getItemNum('0_64e7024f1b2a9acc9e6900fb',['27382','12']); // let c = await getItemNum('0_64e7024f1b2a9acc9e6900fb',['27382','12']);
// console.log('c',c) // console.log('c',c)
}
//定义全局变量 //定义全局变量
ctor(); ctor();