⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pay.h

📁 国内著名网络游戏dragon的服务端完整源码 内附完整数据库结构
💻 H
字号:
#pragma once
//#include <afx.h>
#include "stdafx.h"

struct LoginInfoPay
{
	char id[40];			//扼磊 酒捞叼
	char pw[40];			//菩胶况靛
	char UserID[40];		//辆樊力 诀眉 酒捞叼
	char ip[40];			//ip
	int  type;				//绢恫 辆樊力 牢瘤 0捞搁 沥咀
	DWORD index;	
};

typedef struct OUTPUT
{
	DWORD dwIndex;
	int   nType;
	int   nRet;
}t_Output,*LPOUTPUT;

class COnePass
{
public:
	enum eBillingType//-蔼栏肺 备己 秦具 钦聪促. CheckPW_TotalDB_SQL捞 巢篮 朝楼(剧荐)甫 府畔窍扁 锭巩涝聪促.
	{//MapServer客 亲惑 悼扁拳 矫虐绞矫夸
		BT_WRONG_ID					= -1,//ID 撇覆
		BT_WRONG_PW					= -2,//PW 撇覆

		BT_NEED_PAY					= -3,//捣 何练

		BT_COMMERCIAL_TIME_REMAIN	= -4,//巢篮 矫埃 乐绰仇
		BT_COMMERCIAL_IP			= -20,//IP 辆樊力
		BT_WRONG_AGE_LIMITED		= -30,// 0303929 kyo just in thailand
		BT_FREE						= -100,//傍楼
		BT_WAIT_BILLING_MSG			= -200,//措父 鞍篮 镑狼 贸府 规侥 呼傅阑 扁促府档废 贸府
	};

private:
	int				d_kyulje;

public:
	COnePass();
	~COnePass();

	OUTPUT OnePassID(const short nCn,LoginInfoPay &LIP,const bool bIsGMTool); 

	int CheckLoginIDForJapan(const short nCn,LoginInfoPay &LIP);// 030211 LSW

	int CheckPW_TotalDB_SQL(const short nCn,LoginInfoPay &LIP);
	int CheckGameBangIP_SQL( DWORD *can_use, LPSTR ip ,int &type, int &IP_TimeRemain,int &ip_idx);

	int CheckGameBangIPAccount_SQL( DWORD ip_idx, int &IP_TimeRemain);
	int DeleteUsedID_SQL_ForPay(LPSTR szMapName, LPSTR szUID,int port);
	int InsertUsedID_SQL_ForPay(LPSTR szMapName, LPSTR szUID, char *IP , char *joint_id, int type, WORD wPort, DWORD dwID);
	bool CheckLimitedAgeAndTime(const char* szId);	// 030929 kyo just using in thai
};

extern COnePass onepass;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -