/*
 Navicat Premium Data Transfer

 Source Server         : 127.0.0.1
 Source Server Type    : MySQL
 Source Server Version : 50739
 Source Host           : 127.0.0.1:3306
 Source Schema         : mir_account

 Target Server Type    : MySQL
 Target Server Version : 50739
 File Encoding         : 65001

 Date: 11/10/2022 21:31:59
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for adminaccount
-- ----------------------------
DROP TABLE IF EXISTS `adminaccount`;
CREATE TABLE `adminaccount`  (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `accounttype` int(11) NULL DEFAULT NULL COMMENT '类型，0表示是帐号，1表示ip',
  `rectdata` varchar(124) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'ip或者帐号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of adminaccount
-- ----------------------------

-- ----------------------------
-- Table structure for csrank
-- ----------------------------
DROP TABLE IF EXISTS `csrank`;
CREATE TABLE `csrank`  (
  `actorid` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '角色ID',
  `actorname` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '玩家角色',
  `sex` int(11) NULL DEFAULT 0 COMMENT '性别',
  `job` int(11) NULL DEFAULT 0 COMMENT '职业',
  `serverindex` int(11) NULL DEFAULT 0 COMMENT '玩家所在的服务器的编号',
  `value` int(11) NULL DEFAULT 0 COMMENT '排行指定值'
) ENGINE = MyISAM CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of csrank
-- ----------------------------

-- ----------------------------
-- Table structure for globaluser
-- ----------------------------
DROP TABLE IF EXISTS `globaluser`;
CREATE TABLE `globaluser`  (
  `userid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户唯一ID，自增字段',
  `account` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户帐户的字符串',
  `passwd` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '玩家的密码',
  `identity` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '玩家的身份证号码',
  `createtime` datetime(0) NULL DEFAULT NULL COMMENT '帐号的创建时间',
  `updatetime` datetime(0) NULL DEFAULT NULL COMMENT '上次登录时间',
  `updateip` bigint(20) NULL DEFAULT NULL COMMENT '用户上次登录的IP地址，64位整形IP地址，支持IPV6(现在记录创账号ip)',
  `offlinetime` datetime(0) NULL DEFAULT NULL COMMENT '用户离线时间，用于防沉迷判断当前登录距离上次下线是否足5小时',
  `fcmonline` int(11) NULL DEFAULT 0 COMMENT '连续在线时间，用于进行防沉迷控制',
  `totalonline` int(11) NULL DEFAULT 0 COMMENT '账号自创建以来的累积在线时长，单位是秒',
  `gmlevel` int(11) NULL DEFAULT 0 COMMENT '玩家的GM等级，普通玩家是0.GM等级越高表示权限越高。1-10级GM',
  `inserver` int(11) NULL DEFAULT 0 COMMENT '玩家在的服务器的index',
  PRIMARY KEY (`userid`) USING BTREE,
  UNIQUE INDEX `AK_Key_account`(`account`) USING BTREE,
  INDEX `index_identity`(`identity`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 16777415 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of globaluser
-- ----------------------------
INSERT INTO `globaluser` VALUES (16777216, '__init_account_1', '000', NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0);
INSERT INTO `globaluser` VALUES (16777217, 'lll666', 'be1aa52b8e1e27f003a6d69b6aafcd10', '000000198010100000', '2022-08-15 00:07:32', NULL, 1277123294, '2022-08-15 09:34:10', 28863, 28863, 0, 1);
INSERT INTO `globaluser` VALUES (16777218, 'test001', 'a4642e67e53954ccd0b9f59a2b92b330', '000000198010100000', '2022-08-15 00:09:26', NULL, 151709560, '2022-10-02 13:10:43', 13107, 13107, 10, 1);
INSERT INTO `globaluser` VALUES (16777219, '121314', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-15 00:10:07', NULL, 3889192053, '2022-10-03 02:53:52', 2881821, 2881821, 0, 1);
INSERT INTO `globaluser` VALUES (16777220, 'test002', 'a4642e67e53954ccd0b9f59a2b92b330', '000000198010100000', '2022-08-15 00:25:36', NULL, 151709560, '2022-09-24 09:45:03', 6370, 6370, 10, 2);
INSERT INTO `globaluser` VALUES (16777221, '700120', '70f54afb45c6d2bdd7fdf6ef9a8d21dc', '000000198010100000', '2022-08-15 00:31:06', NULL, 3037386810, '2022-08-27 20:51:55', 337, 337, 0, 1);
INSERT INTO `globaluser` VALUES (16777222, '3qcsh001', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-15 01:18:59', NULL, 3889192053, '2022-09-26 02:05:43', 780945, 780945, 0, 3);
INSERT INTO `globaluser` VALUES (16777223, '700130', '70f54afb45c6d2bdd7fdf6ef9a8d21dc', '000000198010100000', '2022-08-15 02:22:46', NULL, 3170607165, '2022-08-15 02:23:33', 46, 46, 0, 3);
INSERT INTO `globaluser` VALUES (16777224, '12131411', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-15 02:37:46', NULL, 3889192053, '2022-10-03 01:51:37', 1133522, 1133522, 0, 2);
INSERT INTO `globaluser` VALUES (16777225, '700114', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-08-15 07:04:01', NULL, 467374119, '2022-10-01 14:43:57', 283091, 283091, 0, 1);
INSERT INTO `globaluser` VALUES (16777226, '700115', 'f3b6ec23142a03bd8ac08272e1cfd9ba', '000000198010100000', '2022-08-15 07:25:15', NULL, 1308769917, '2022-08-30 18:10:28', 681606, 681606, 0, 2);
INSERT INTO `globaluser` VALUES (16777227, '36363636', '08f0e3633b86496f4ca3229b6c0f97a6', '000000198010100000', '2022-08-15 07:49:28', NULL, 2699412919, '2022-09-13 14:26:51', 273043, 273043, 0, 2);
INSERT INTO `globaluser` VALUES (16777228, '63636363', 'e528e809cf6dd6c0ea697547983fa4ce', '000000198010100000', '2022-08-15 08:18:02', NULL, 2699412919, '2022-08-20 23:10:40', 141265, 141265, 0, 1);
INSERT INTO `globaluser` VALUES (16777229, '3043482201', '54b38c9850bb47cc289fda874e1330ba', '000000198010100000', '2022-08-15 08:44:37', NULL, 3347549301, '2022-09-23 16:50:21', 92493, 92493, 0, 1);
INSERT INTO `globaluser` VALUES (16777230, '121233', '7776316aad0e8b99c2ead051d5b07540', '000000198010100000', '2022-08-15 08:48:15', NULL, 3295402923, '2022-09-30 22:08:28', 904648, 904648, 0, 1);
INSERT INTO `globaluser` VALUES (16777231, 'xiaoxiao666', '8720e7dc91b0739d67e11f00aa093719', '000000198010100000', '2022-08-15 09:13:25', NULL, 3347549301, '2022-08-20 21:28:12', 218786, 218786, 0, 2);
INSERT INTO `globaluser` VALUES (16777232, 'ggg666', 'ab5ed8ebfbce3f3726c647b1d70e4eec', '000000198010100000', '2022-08-15 09:19:23', NULL, 4031929054, '2022-09-20 11:44:17', 567579, 567579, 0, 1);
INSERT INTO `globaluser` VALUES (16777233, '3512182822', 'e612769e3c18ad8229185f6e2d7581d0', '000000198010100000', '2022-08-15 09:26:18', NULL, 2802544932, '2022-09-11 21:12:17', 613264, 613264, 0, 2);
INSERT INTO `globaluser` VALUES (16777234, '2414585935', 'cc3c343e376d0a081315303856757331', '000000198010100000', '2022-08-15 09:32:10', NULL, 62670129, '2022-09-27 08:27:06', 1861500, 1861500, 0, 1);
INSERT INTO `globaluser` VALUES (16777235, 'asdfghjkl', 'afafedf75769e2d001a4c95c6d6949b7', '000000198010100000', '2022-08-15 09:51:14', NULL, 2722871335, '2022-08-17 20:45:23', 168927, 168927, 0, 1);
INSERT INTO `globaluser` VALUES (16777236, '3347988481', 'e612769e3c18ad8229185f6e2d7581d0', '000000198010100000', '2022-08-15 11:33:58', NULL, 1988391204, '2022-09-30 21:11:20', 364925, 364925, 0, 1);
INSERT INTO `globaluser` VALUES (16777237, 'ttt001', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-15 16:03:26', NULL, 3889192053, '2022-09-27 17:45:35', 2756126, 2756126, 0, 1);
INSERT INTO `globaluser` VALUES (16777238, 'ttt002', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-15 16:07:20', NULL, 3889192053, '2022-09-27 17:45:35', 2074262, 2074262, 0, 1);
INSERT INTO `globaluser` VALUES (16777239, 'q3605880', '31aa788bbb3efc5014f6ce7ccbe34027', '000000198010100000', '2022-08-15 17:17:21', NULL, 2267797419, '2022-08-20 09:40:18', 375960, 375960, 0, 2);
INSERT INTO `globaluser` VALUES (16777240, 'h3605880', '31aa788bbb3efc5014f6ce7ccbe34027', '000000198010100000', '2022-08-15 17:35:59', NULL, 2267797419, '2022-08-19 00:13:24', 150790, 150790, 0, 1);
INSERT INTO `globaluser` VALUES (16777241, 'zk378792518', 'a24b2e9c289f36b77b1e6217ba4bf2a1', '000000198010100000', '2022-08-15 18:11:56', NULL, 408397751, '2022-08-16 18:12:04', 6305, 6305, 0, 1);
INSERT INTO `globaluser` VALUES (16777242, 'asdasd', 'a4642e67e53954ccd0b9f59a2b92b330', '000000198010100000', '2022-08-15 20:04:13', NULL, 2765908191, '2022-09-29 21:58:00', 226418, 226418, 0, 1);
INSERT INTO `globaluser` VALUES (16777243, '1314520', 'e69ccd14b85d7ac2074bad8d2ba8466b', '000000198010100000', '2022-08-15 23:44:26', NULL, 988687472, '2022-09-29 13:17:35', 407825, 407825, 0, 2);
INSERT INTO `globaluser` VALUES (16777244, '12121212', '8586dcf52c24e82f582eda7fa7d15012', '000000198010100000', '2022-08-16 00:00:39', NULL, 4222217596, '2022-08-28 14:55:14', 88870, 88870, 0, 2);
INSERT INTO `globaluser` VALUES (16777245, '700116', '5a8e9de668878846d7b1f7aacd492576', '000000198010100000', '2022-08-16 12:15:07', NULL, 67321469, '2022-08-31 23:07:44', 260086, 260086, 0, 3);
INSERT INTO `globaluser` VALUES (16777246, 'czbx001', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-16 16:55:37', NULL, 30432373, '2022-10-01 14:47:32', 1952018, 1952018, 0, 1);
INSERT INTO `globaluser` VALUES (16777247, 'q3605881', '31aa788bbb3efc5014f6ce7ccbe34027', '000000198010100000', '2022-08-16 17:26:03', NULL, 2267797419, '2022-08-16 17:26:06', 3, 3, 0, 2);
INSERT INTO `globaluser` VALUES (16777248, 'xiaoxiao', '8e2463b2504aed7e1b9b0ecdc06eaf93', '000000198010100000', '2022-08-16 21:11:59', NULL, 2371192356, '2022-08-16 21:12:40', 41, 41, 0, 3);
INSERT INTO `globaluser` VALUES (16777249, '377094401', '9048e8e0ede162991a6f859f33b91e08', '000000198010100000', '2022-08-16 21:39:37', NULL, 1517283955, '2022-08-17 00:01:01', 8458, 8458, 0, 2);
INSERT INTO `globaluser` VALUES (16777250, 'czbx002', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-17 12:28:33', NULL, 30432373, '2022-09-29 05:30:44', 1245426, 1245426, 0, 1);
INSERT INTO `globaluser` VALUES (16777251, 'amcl1478', '619b3c2b777bcc2ffffafc986c814734', '000000198010100000', '2022-08-17 13:41:03', NULL, 1751485364, '2022-08-17 21:06:32', 4850, 4850, 0, 2);
INSERT INTO `globaluser` VALUES (16777252, 'ddd999', '82afc8dafba5228fc5c91d77176fc7dd', '000000198010100000', '2022-08-17 14:02:14', NULL, 1277123294, '2022-08-25 19:37:03', 488297, 488297, 0, 2);
INSERT INTO `globaluser` VALUES (16777253, 'sss666', '386157d39a8d7bd14a5154a23f63f011', '000000198010100000', '2022-08-17 14:07:10', NULL, 1277123294, '2022-08-25 19:38:23', 417480, 417480, 0, 3);
INSERT INTO `globaluser` VALUES (16777254, '112233445566', 'c28142cdf365d2d3954cb48edb5b9f7b', '000000198010100000', '2022-08-17 14:13:06', NULL, 2371192356, '2022-08-17 14:15:18', 131, 131, 0, 3);
INSERT INTO `globaluser` VALUES (16777255, '147147', '2e58ae2eb17b3ff067ed3ee0705f93a5', '000000198010100000', '2022-08-17 14:16:22', NULL, 988687472, '2022-08-17 15:05:38', 2755, 2755, 0, 3);
INSERT INTO `globaluser` VALUES (16777256, '2414585935qq', '61f06816ad92e87b6625b4e9b3ad32d0', '000000198010100000', '2022-08-17 15:15:55', NULL, 4215762794, '2022-09-08 08:08:11', 354071, 354071, 0, 3);
INSERT INTO `globaluser` VALUES (16777257, 'amcl1498', '619b3c2b777bcc2ffffafc986c814734', '000000198010100000', '2022-08-17 19:48:30', NULL, 1751485364, '2022-08-31 19:02:30', 634, 634, 0, 3);
INSERT INTO `globaluser` VALUES (16777258, 'amcl1452', '619b3c2b777bcc2ffffafc986c814734', '000000198010100000', '2022-08-17 19:59:41', NULL, 1751485364, '2022-08-17 20:08:58', 557, 557, 0, 2);
INSERT INTO `globaluser` VALUES (16777259, 'amcl1234', '619b3c2b777bcc2ffffafc986c814734', '000000198010100000', '2022-08-17 20:09:29', NULL, 1751485364, '2022-08-17 20:28:22', 1132, 1132, 0, 2);
INSERT INTO `globaluser` VALUES (16777260, '334798848', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-08-17 21:29:58', NULL, 588324464, '2022-08-17 21:33:57', 239, 239, 0, 2);
INSERT INTO `globaluser` VALUES (16777261, '3512182821', 'e612769e3c18ad8229185f6e2d7581d0', '000000198010100000', '2022-08-17 22:11:05', NULL, 2166583588, '2022-08-22 08:18:46', 4632, 4632, 0, 2);
INSERT INTO `globaluser` VALUES (16777262, '334455', '4fffa8aab150384b722399fd6ad12b5c', '000000198010100000', '2022-08-17 22:24:09', NULL, 988687472, '2022-08-28 22:48:20', 14009, 14009, 0, 1);
INSERT INTO `globaluser` VALUES (16777263, 'ttt003', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-18 00:34:16', NULL, 30432373, '2022-08-29 21:30:13', 662709, 662709, 0, 2);
INSERT INTO `globaluser` VALUES (16777264, '2981209437', 'd354953aba209495a8735564168cb71a', '000000198010100000', '2022-08-18 09:16:53', NULL, 4253541559, '2022-08-18 09:59:08', 2535, 2535, 0, 3);
INSERT INTO `globaluser` VALUES (16777265, '700117', 'd354953aba209495a8735564168cb71a', '000000198010100000', '2022-08-18 10:33:17', NULL, 3087220349, '2022-09-12 18:27:22', 178838, 178838, 0, 2);
INSERT INTO `globaluser` VALUES (16777266, '700118', 'f68646eecf3aa4a107035a2bdb6f53c6', '000000198010100000', '2022-08-18 11:16:21', NULL, 3087220349, '2022-09-05 07:34:04', 174646, 174646, 0, 2);
INSERT INTO `globaluser` VALUES (16777267, '2414585935q', 'cc3c343e376d0a081315303856757331', '000000198010100000', '2022-08-18 17:47:58', NULL, 1479142514, '2022-09-25 14:16:58', 106363, 106363, 0, 2);
INSERT INTO `globaluser` VALUES (16777268, '700119', 'cc97bf3411a0d8568b2885bc97fa6698', '000000198010100000', '2022-08-18 21:10:19', NULL, 3439541885, '2022-09-05 07:26:19', 122437, 122437, 0, 2);
INSERT INTO `globaluser` VALUES (16777269, 'lymawm0', '12369bd8a4144c188055e29cffdffd20', '000000198010100000', '2022-08-18 22:49:27', NULL, 47798495, '2022-08-21 22:20:45', 1800, 1800, 0, 2);
INSERT INTO `globaluser` VALUES (16777270, '123789oppo', '12369bd8a4144c188055e29cffdffd20', '000000198010100000', '2022-08-19 10:04:35', NULL, 47798495, '2022-08-19 13:53:15', 4203, 4203, 0, 1);
INSERT INTO `globaluser` VALUES (16777271, '21212121', '098d29965b8c7e2a2197cf3dba90c82d', '000000198010100000', '2022-08-19 14:23:15', NULL, 1806298492, '2022-08-31 23:07:05', 404416, 404416, 0, 3);
INSERT INTO `globaluser` VALUES (16777272, '888888', '2783c0f765c9518ad603c536c2013193', '000000198010100000', '2022-08-19 14:25:52', NULL, 4047800868, '2022-08-19 21:18:48', 24776, 24776, 0, 3);
INSERT INTO `globaluser` VALUES (16777273, '2581470369', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-08-19 19:39:02', NULL, 588324464, '2022-08-22 12:54:04', 1417, 1417, 0, 3);
INSERT INTO `globaluser` VALUES (16777274, 'ff9999', '570d0fcfd5cab9db80b1f47fe3eb04e0', '000000198010100000', '2022-08-19 23:17:59', NULL, 988687472, '2022-09-13 18:49:55', 381399, 381399, 0, 2);
INSERT INTO `globaluser` VALUES (16777275, '123456oppo', '12369bd8a4144c188055e29cffdffd20', '000000198010100000', '2022-08-20 12:10:20', NULL, 47798495, '2022-08-20 12:13:01', 161, 161, 0, 3);
INSERT INTO `globaluser` VALUES (16777276, 'amcl1487', '619b3c2b777bcc2ffffafc986c814734', '000000198010100000', '2022-08-20 18:41:46', NULL, 3210906548, '2022-08-20 18:57:16', 930, 930, 0, 2);
INSERT INTO `globaluser` VALUES (16777277, '1443662634', 'd4d7e4ae589f231e1241baba1baec49f', '000000198010100000', '2022-08-20 21:01:37', NULL, 4059435124, '2022-08-28 22:31:36', 212048, 212048, 0, 3);
INSERT INTO `globaluser` VALUES (16777278, '6562638aa', '7a5c49ba06d87c1e26328c70c8b4a955', '000000198010100000', '2022-08-20 22:10:23', NULL, 1076840927, '2022-08-22 21:27:38', 8305, 8305, 0, 3);
INSERT INTO `globaluser` VALUES (16777279, 'xingchen', 'e985de82a529db335d375f32f78d167b', '000000198010100000', '2022-08-20 22:23:56', NULL, 1248868979, '2022-08-20 23:16:24', 3146, 3146, 0, 3);
INSERT INTO `globaluser` VALUES (16777280, '46464646', 'd8de5c8c20fd8f9ac27a54ef3ed94860', '000000198010100000', '2022-08-21 12:18:51', NULL, 1806298492, '2022-08-21 12:20:40', 108, 108, 0, 1);
INSERT INTO `globaluser` VALUES (16777281, 'amcl1489', '619b3c2b777bcc2ffffafc986c814734', '000000198010100000', '2022-08-22 00:18:08', NULL, 3210906548, '2022-08-31 19:02:18', 41, 41, 0, 3);
INSERT INTO `globaluser` VALUES (16777282, '1122334455', '9b0a5459797ac1924ec6deb97654f9f7', '000000198010100000', '2022-08-22 12:00:38', NULL, 3210906548, '2022-08-31 22:22:02', 181483, 181483, 0, 3);
INSERT INTO `globaluser` VALUES (16777283, '123112233', 'a41d02662ce2150f4b11c01cb2379d17', '000000198010100000', '2022-08-22 12:01:14', NULL, 4228410283, '2022-08-31 22:35:34', 310060, 310060, 0, 3);
INSERT INTO `globaluser` VALUES (16777284, '700126', '5a8e9de668878846d7b1f7aacd492576', '000000198010100000', '2022-08-22 12:42:00', NULL, 352534141, '2022-09-09 20:10:34', 103731, 103731, 0, 3);
INSERT INTO `globaluser` VALUES (16777285, 'ff8888', '8fe440a43dd8f9ad96113f5cdf5834bf', '000000198010100000', '2022-08-22 13:01:48', NULL, 988687472, '2022-08-31 20:45:44', 116538, 116538, 0, 3);
INSERT INTO `globaluser` VALUES (16777286, '6350000', '8b0f0109dd82735d95bee41eea1c1b75', '000000198010100000', '2022-08-22 13:02:54', NULL, 988687472, '2022-08-31 20:34:17', 352467, 352467, 0, 3);
INSERT INTO `globaluser` VALUES (16777287, '32323232', '1fed9ba7473cefcfcabd23f65ec3e70d', '000000198010100000', '2022-08-22 13:18:10', NULL, 2663116156, '2022-08-31 22:58:26', 335132, 335132, 0, 3);
INSERT INTO `globaluser` VALUES (16777288, '700136', '5a8e9de668878846d7b1f7aacd492576', '000000198010100000', '2022-08-22 13:58:54', NULL, 352534141, '2022-08-31 17:28:27', 95120, 95120, 0, 3);
INSERT INTO `globaluser` VALUES (16777289, '1079841291', 'd4d7e4ae589f231e1241baba1baec49f', '000000198010100000', '2022-08-22 15:08:27', NULL, 1525944436, '2022-08-28 23:04:29', 175667, 175667, 0, 3);
INSERT INTO `globaluser` VALUES (16777290, '3512182823', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-08-22 15:26:17', NULL, 4252004644, '2022-09-09 19:20:11', 268803, 268803, 0, 3);
INSERT INTO `globaluser` VALUES (16777291, 'yijianming', '2c770ba9c1ce041683a73d58ecd92881', '000000198010100000', '2022-08-22 17:38:16', NULL, 1177500271, '2022-08-22 18:31:58', 1432, 1432, 0, 3);
INSERT INTO `globaluser` VALUES (16777292, 'yijiamming1211', '1c869570273aa0f3de31b10afd9a9d94', '000000198010100000', '2022-08-22 18:33:54', NULL, 612921259, '2022-09-10 17:31:38', 213773, 213773, 0, 3);
INSERT INTO `globaluser` VALUES (16777293, '1977026255', 'd4d7e4ae589f231e1241baba1baec49f', '000000198010100000', '2022-08-23 00:58:59', NULL, 1525944436, '2022-08-28 23:04:29', 184967, 184967, 0, 3);
INSERT INTO `globaluser` VALUES (16777294, '159357', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-08-23 20:57:00', NULL, 588324464, '2022-08-25 18:21:57', 1284, 1284, 0, 3);
INSERT INTO `globaluser` VALUES (16777295, '700125', 'f3b6ec23142a03bd8ac08272e1cfd9ba', '000000198010100000', '2022-08-24 22:05:37', NULL, 702255143, '2022-09-21 11:38:46', 105409, 105409, 0, 2);
INSERT INTO `globaluser` VALUES (16777296, 'ww123456', '36ad7a451e6217c5d85f2b7ba253b0f6', '000000198010100000', '2022-08-25 09:25:23', NULL, 2951705564, '2022-08-25 09:26:01', 38, 38, 0, 3);
INSERT INTO `globaluser` VALUES (16777297, '700135', '40925979ff04a20728f703405b3a3778', '000000198010100000', '2022-08-25 11:11:35', NULL, 2734898813, '2022-08-27 15:17:32', 83722, 83722, 0, 2);
INSERT INTO `globaluser` VALUES (16777298, '112233123', '3c9ebd8b80a940b66e0bf3a0ed9c5101', '000000198010100000', '2022-08-25 18:58:54', NULL, 3964962340, '2022-08-26 09:25:49', 14235, 14235, 0, 3);
INSERT INTO `globaluser` VALUES (16777299, '2205885378', 'd4d7e4ae589f231e1241baba1baec49f', '000000198010100000', '2022-08-25 19:17:12', NULL, 2851541108, '2022-08-25 23:09:29', 13936, 13936, 0, 3);
INSERT INTO `globaluser` VALUES (16777300, '123123123', 'ba8865efd91d1c0d9e6ffefa6e544757', '000000198010100000', '2022-08-27 13:15:50', NULL, 3964962340, '2022-09-23 17:00:40', 7314, 7314, 0, 1);
INSERT INTO `globaluser` VALUES (16777301, 'amcl1463', '22024435ee0e17e84f540e7e1ac65c2f', '000000198010100000', '2022-08-27 13:26:08', NULL, 3798436788, '2022-09-11 09:21:20', 57647, 57647, 0, 1);
INSERT INTO `globaluser` VALUES (16777302, '123123123asd', '8cce3ff33b180df0c246151b3398a930', '000000198010100000', '2022-08-27 13:28:21', NULL, 4048913956, '2022-08-27 13:28:30', 8, 8, 0, 1);
INSERT INTO `globaluser` VALUES (16777303, '1122112222', 'ba8865efd91d1c0d9e6ffefa6e544757', '000000198010100000', '2022-08-27 13:29:37', NULL, 160936924, '2022-08-27 20:56:12', 5383, 5383, 0, 1);
INSERT INTO `globaluser` VALUES (16777304, 'yijianming1211', 'e77fdbbf2179b28511548ca4e30bdabc', '000000198010100000', '2022-08-27 13:34:42', NULL, 4230888047, '2022-09-03 12:06:06', 30743, 30743, 0, 1);
INSERT INTO `globaluser` VALUES (16777305, '1adijawhd', '4e5b2114765395d10125a558c65f62be', '000000198010100000', '2022-08-27 13:40:07', NULL, 794134052, '2022-08-27 20:50:14', 3768, 3768, 0, 1);
INSERT INTO `globaluser` VALUES (16777306, '234234asd', '671e8a63609df27721ddd807da26f600', '000000198010100000', '2022-08-27 13:48:28', NULL, 3598132004, '2022-08-28 08:35:56', 42660, 42660, 0, 1);
INSERT INTO `globaluser` VALUES (16777307, 'adaedwerd', '57c665387e95eaf227fe3b6f58983915', '000000198010100000', '2022-08-27 14:11:25', NULL, 4135002916, '2022-08-27 20:13:03', 99, 99, 0, 1);
INSERT INTO `globaluser` VALUES (16777308, '363636', 'c8de8355c17e8da3228bbcd048649d90', '000000198010100000', '2022-08-27 16:46:41', NULL, 2663116156, '2022-09-30 13:06:33', 7983, 7983, 0, 1);
INSERT INTO `globaluser` VALUES (16777309, 'ttt004', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-28 15:59:53', NULL, 30432373, '2022-09-27 17:45:35', 1328607, 1328607, 0, 1);
INSERT INTO `globaluser` VALUES (16777310, '700124', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-08-28 20:06:35', NULL, 3422764669, '2022-09-04 11:32:12', 7651, 7651, 0, 1);
INSERT INTO `globaluser` VALUES (16777311, '123789456', '34189add721db19b99560dda71b4c2ff', '000000198010100000', '2022-08-28 20:11:08', NULL, 81657976, '2022-08-28 20:29:07', 250, 250, 0, 1);
INSERT INTO `globaluser` VALUES (16777312, '15078748552', '7776316aad0e8b99c2ead051d5b07540', '000000198010100000', '2022-08-28 20:28:27', NULL, 1143945839, '2022-09-23 18:58:05', 598784, 598784, 0, 1);
INSERT INTO `globaluser` VALUES (16777313, '779325563', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-08-28 20:29:28', NULL, 740575194, '2022-09-30 22:52:05', 29710, 29710, 0, 1);
INSERT INTO `globaluser` VALUES (16777314, '700134', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-08-28 20:53:12', NULL, 898098359, '2022-09-04 19:48:37', 17341, 17341, 0, 1);
INSERT INTO `globaluser` VALUES (16777315, '700144', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-08-28 21:34:13', NULL, 1713494074, '2022-09-03 19:45:37', 4641, 4641, 0, 1);
INSERT INTO `globaluser` VALUES (16777316, '11332244', 'ca530d4cd3d3d552162e3d097b5ab0d6', '000000198010100000', '2022-08-28 22:06:57', NULL, 1703062644, '2022-08-29 22:42:55', 10558, 10558, 0, 1);
INSERT INTO `globaluser` VALUES (16777317, '700154', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-08-28 22:07:20', NULL, 3422764669, '2022-09-03 19:50:11', 2533, 2533, 0, 1);
INSERT INTO `globaluser` VALUES (16777318, '602427900', 'd4d7e4ae589f231e1241baba1baec49f', '000000198010100000', '2022-08-28 22:35:02', NULL, 2036922426, '2022-08-29 23:01:44', 5908, 5908, 0, 1);
INSERT INTO `globaluser` VALUES (16777319, '4qcsh001', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-28 22:55:05', NULL, 30432373, '2022-09-11 11:39:58', 22304, 22304, 0, 4);
INSERT INTO `globaluser` VALUES (16777320, '111111', '41bd3354f62539ed60cd34f2acdcd123', '000000198010100000', '2022-08-29 00:16:21', NULL, 988687472, '2022-08-29 00:16:51', 29, 29, 0, 1);
INSERT INTO `globaluser` VALUES (16777321, '221111', '694cb5e627eb045eee751ff115a07489', '000000198010100000', '2022-08-29 00:18:02', NULL, 1795677099, '2022-09-17 20:34:54', 1626, 1626, 0, 1);
INSERT INTO `globaluser` VALUES (16777322, '700164', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-08-29 08:43:59', NULL, 3422764669, '2022-09-16 23:22:30', 75562, 75562, 0, 1);
INSERT INTO `globaluser` VALUES (16777323, 'chenpi666', '22024435ee0e17e84f540e7e1ac65c2f', '000000198010100000', '2022-08-29 12:51:31', NULL, 3798436788, '2022-08-29 21:25:21', 30824, 30824, 0, 4);
INSERT INTO `globaluser` VALUES (16777324, '020202', 'cdf833b929194c12697f0034a594a1fd', '000000198010100000', '2022-08-29 14:50:52', NULL, 368393589, '2022-08-29 15:13:41', 1345, 1345, 0, 2);
INSERT INTO `globaluser` VALUES (16777325, 'test004', 'a4642e67e53954ccd0b9f59a2b92b330', '000000198010100000', '2022-08-29 21:40:40', NULL, 415571060, '2022-09-14 21:18:00', 12929, 12929, 10, 4);
INSERT INTO `globaluser` VALUES (16777326, '3qcsh002', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-08-30 11:29:58', NULL, 3265948084, '2022-08-30 11:34:17', 258, 258, 0, 3);
INSERT INTO `globaluser` VALUES (16777327, '1314521', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-08-30 12:10:49', NULL, 136603871, '2022-09-09 11:54:51', 120229, 120229, 0, 4);
INSERT INTO `globaluser` VALUES (16777328, 'ff1111', 'b6b13c94def892c8ab45b4a9df61a1a6', '000000198010100000', '2022-08-30 12:56:32', NULL, 3850779850, '2022-09-24 14:58:21', 1012167, 1012167, 0, 1);
INSERT INTO `globaluser` VALUES (16777329, 'yiu9fu9', '4ba44812f3899f2c7f93655d600f057b', '000000198010100000', '2022-08-30 18:52:59', NULL, 3798436788, '2022-08-30 20:22:46', 1235, 1235, 0, 4);
INSERT INTO `globaluser` VALUES (16777330, '700127', 'd354953aba209495a8735564168cb71a', '000000198010100000', '2022-08-30 19:13:23', NULL, 67321469, '2022-09-17 21:03:27', 12388, 12388, 0, 4);
INSERT INTO `globaluser` VALUES (16777331, '123123123asda', 'b7f0d9d5a185a509c0c98aa74e662085', '000000198010100000', '2022-08-30 19:29:44', NULL, 1143945839, '2022-08-31 23:20:30', 6821, 6821, 0, 1);
INSERT INTO `globaluser` VALUES (16777332, '1231231111', 'ba8865efd91d1c0d9e6ffefa6e544757', '000000198010100000', '2022-08-30 21:58:49', NULL, 1076332836, '2022-08-30 23:12:01', 4391, 4391, 0, 2);
INSERT INTO `globaluser` VALUES (16777333, 'dawdawds', 'ba8865efd91d1c0d9e6ffefa6e544757', '000000198010100000', '2022-08-30 23:35:53', NULL, 356878884, '2022-08-30 23:37:20', 87, 87, 0, 3);
INSERT INTO `globaluser` VALUES (16777334, 'qweasd123', '4b19ffc01931868afc00e25a59341219', '000000198010100000', '2022-08-31 23:25:23', NULL, 4047800868, '2022-09-02 00:22:29', 20562, 20562, 0, 4);
INSERT INTO `globaluser` VALUES (16777335, '23123123', '4f7afa38020d1cb3c0102668e36866ab', '000000198010100000', '2022-09-01 22:48:18', NULL, 3663037988, '2022-09-03 16:32:05', 5022, 5022, 0, 1);
INSERT INTO `globaluser` VALUES (16777336, '700174', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-02 21:41:06', NULL, 2953002621, '2022-09-05 07:35:43', 95141, 95141, 0, 1);
INSERT INTO `globaluser` VALUES (16777337, 'yijiammin', '1c869570273aa0f3de31b10afd9a9d94', '000000198010100000', '2022-09-03 12:08:29', NULL, 2357628021, '2022-09-07 12:23:16', 33579, 33579, 0, 4);
INSERT INTO `globaluser` VALUES (16777338, '700184', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-03 19:04:32', NULL, 2953002621, '2022-09-03 19:38:56', 2064, 2064, 0, 1);
INSERT INTO `globaluser` VALUES (16777339, '700194', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-03 19:11:57', NULL, 2953002621, '2022-09-03 19:42:18', 1821, 1821, 0, 1);
INSERT INTO `globaluser` VALUES (16777340, '700204', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-03 19:56:58', NULL, 2953002621, '2022-09-04 19:48:34', 51275, 51275, 0, 1);
INSERT INTO `globaluser` VALUES (16777341, '700214', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-03 20:11:37', NULL, 2953002621, '2022-09-03 20:37:23', 1546, 1546, 0, 1);
INSERT INTO `globaluser` VALUES (16777342, '700224', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-03 20:37:57', NULL, 2953002621, '2022-09-03 21:00:53', 1375, 1375, 0, 1);
INSERT INTO `globaluser` VALUES (16777343, '700234', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-03 20:38:24', NULL, 2953002621, '2022-09-03 21:06:12', 1668, 1668, 0, 1);
INSERT INTO `globaluser` VALUES (16777344, '700244', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-04 09:08:13', NULL, 2953002621, '2022-09-04 09:32:53', 1480, 1480, 0, 1);
INSERT INTO `globaluser` VALUES (16777345, '700254', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-04 09:16:32', NULL, 2953002621, '2022-09-04 09:43:44', 1632, 1632, 0, 1);
INSERT INTO `globaluser` VALUES (16777346, '700264', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-04 09:28:35', NULL, 2953002621, '2022-09-04 09:54:30', 1478, 1478, 0, 1);
INSERT INTO `globaluser` VALUES (16777347, '700284', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-04 09:56:27', NULL, 2953002621, '2022-09-04 18:05:04', 2029, 2029, 0, 1);
INSERT INTO `globaluser` VALUES (16777348, '700274', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-04 10:00:03', NULL, 2953002621, '2022-09-04 19:47:18', 33818, 33818, 0, 1);
INSERT INTO `globaluser` VALUES (16777349, '700294', 'fb51f56e096d1dacb3fe23252c7cbdfe', '000000198010100000', '2022-09-04 18:05:11', NULL, 2953002621, '2022-09-05 13:44:26', 1640, 1640, 0, 1);
INSERT INTO `globaluser` VALUES (16777350, '1314523', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-09 12:06:20', NULL, 2555807268, '2022-09-09 12:27:59', 964, 964, 0, 1);
INSERT INTO `globaluser` VALUES (16777351, '2156202462', 'a6c6b9174d4b283e71cebd811b7f6238', '000000198010100000', '2022-09-09 12:55:34', NULL, 3096805291, '2022-09-09 13:04:56', 539, 539, 0, 3);
INSERT INTO `globaluser` VALUES (16777352, '134643', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-09 14:20:47', NULL, 3228796196, '2022-09-09 14:40:44', 1150, 1150, 0, 1);
INSERT INTO `globaluser` VALUES (16777353, '643764949', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-09 17:15:02', NULL, 3427436068, '2022-09-09 17:36:12', 1169, 1169, 0, 1);
INSERT INTO `globaluser` VALUES (16777354, '121212', 'ae9ef4185bc483f947b72563a93dc938', '000000198010100000', '2022-09-09 18:15:21', NULL, 606570788, '2022-09-11 00:23:09', 1131, 1131, 0, 1);
INSERT INTO `globaluser` VALUES (16777355, '454545', 'b09b99b7b1f4e40d4ee52d2a2b9d6919', '000000198010100000', '2022-09-09 20:56:52', NULL, 3568233852, '2022-09-09 21:20:41', 1428, 1428, 0, 1);
INSERT INTO `globaluser` VALUES (16777356, '123456789', 'a13e516c8157075279426bae55131daa', '000000198010100000', '2022-09-10 17:11:29', NULL, 1766385883, '2022-09-29 21:21:05', 89503, 89503, 0, 1);
INSERT INTO `globaluser` VALUES (16777357, '221307635', 'bd757f2f6fb855910f730c1782f69e65', '000000198010100000', '2022-09-10 17:31:03', NULL, 1855356843, '2022-09-10 18:56:34', 4858, 4858, 0, 1);
INSERT INTO `globaluser` VALUES (16777358, 'yijianmingg', '1c869570273aa0f3de31b10afd9a9d94', '000000198010100000', '2022-09-10 17:55:55', NULL, 3707179377, '2022-09-17 21:03:05', 101806, 101806, 0, 1);
INSERT INTO `globaluser` VALUES (16777359, '5454646', 'ae2d2ec9c80554a36e23b0ffeeae28bf', '000000198010100000', '2022-09-10 18:30:23', NULL, 2654597752, '2022-09-11 11:36:10', 10541, 10541, 0, 1);
INSERT INTO `globaluser` VALUES (16777360, 'cxkjinitaimei', 'dad7c15cd885b969a1ba76badead8159', '000000198010100000', '2022-09-10 22:23:33', NULL, 1951461496, '2022-09-10 22:32:10', 326, 326, 0, 1);
INSERT INTO `globaluser` VALUES (16777361, '4634349', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-11 07:45:33', NULL, 289506852, '2022-09-11 08:54:46', 3314, 3314, 0, 2);
INSERT INTO `globaluser` VALUES (16777362, '791211', '4bfd82e735f3307e08019ab9ffa918d8', '000000198010100000', '2022-09-11 08:31:12', NULL, 177010655, '2022-09-23 22:17:53', 368440, 368440, 0, 2);
INSERT INTO `globaluser` VALUES (16777363, '112691288', '2590cdeaacd495b101df9b6f07778eb3', '000000198010100000', '2022-09-11 08:59:52', NULL, 1155806747, '2022-09-11 13:30:19', 5082, 5082, 0, 2);
INSERT INTO `globaluser` VALUES (16777364, '1452369871', '22024435ee0e17e84f540e7e1ac65c2f', '000000198010100000', '2022-09-11 12:32:45', NULL, 2080926635, '2022-09-11 12:46:05', 800, 800, 0, 2);
INSERT INTO `globaluser` VALUES (16777365, 'xiaoqiqi', '990b790b961088e1bc3213305325efe9', '000000198010100000', '2022-09-11 12:41:01', NULL, 3897919012, '2022-09-11 13:06:16', 512, 512, 0, 2);
INSERT INTO `globaluser` VALUES (16777366, 'beimo001', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-11 12:47:24', NULL, 149711798, '2022-09-12 22:58:22', 92340, 92340, 0, 2);
INSERT INTO `globaluser` VALUES (16777367, '3411251223', 'fdabd026a82604bc55a50adee4f11cfc', '000000198010100000', '2022-09-11 15:14:36', NULL, 1282836597, '2022-09-30 21:46:56', 2150, 2150, 0, 1);
INSERT INTO `globaluser` VALUES (16777368, '135790', 'a13e516c8157075279426bae55131daa', '000000198010100000', '2022-09-11 16:58:54', NULL, 1766385883, '2022-09-24 23:45:33', 5561, 5561, 0, 2);
INSERT INTO `globaluser` VALUES (16777369, 'yifanfengshun', '5e755bd0d94fa01b30bba3aa77b909b8', '000000198010100000', '2022-09-12 16:27:48', NULL, 2653771640, '2022-09-12 18:34:19', 7585, 7585, 0, 2);
INSERT INTO `globaluser` VALUES (16777370, '3512182824', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-13 13:36:41', NULL, 1158345336, '2022-09-13 21:44:14', 8518, 8518, 0, 1);
INSERT INTO `globaluser` VALUES (16777371, '3512182820', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-13 21:08:40', NULL, 1158345336, '2022-09-13 22:12:15', 2674, 2674, 0, 2);
INSERT INTO `globaluser` VALUES (16777372, '2629512006', 'cc9e6a2b02cf84bd6ccefe03f5b0f116', '000000198010100000', '2022-09-13 23:21:27', NULL, 347547248, '2022-09-13 23:23:58', 113, 113, 0, 1);
INSERT INTO `globaluser` VALUES (16777373, 'yijianminggg', '1c869570273aa0f3de31b10afd9a9d94', '000000198010100000', '2022-09-17 14:11:52', NULL, 2206698613, '2022-09-17 14:43:29', 1897, 1897, 0, 1);
INSERT INTO `globaluser` VALUES (16777374, '1231231', 'ba8865efd91d1c0d9e6ffefa6e544757', '000000198010100000', '2022-09-18 11:58:14', NULL, 2089192565, '2022-09-19 23:15:47', 149, 149, 0, 2);
INSERT INTO `globaluser` VALUES (16777375, '13659618092', 'c09e4ced913f3a151a870d45f4db6488', '000000198010100000', '2022-09-18 13:56:34', NULL, 2232610013, '2022-09-20 21:54:22', 2955, 2955, 0, 2);
INSERT INTO `globaluser` VALUES (16777376, '212121', '5a91ad98dcd25bd2fa8feb67404a2950', '000000198010100000', '2022-09-19 10:42:03', NULL, 1052503420, '2022-09-21 11:28:12', 12352, 12352, 0, 2);
INSERT INTO `globaluser` VALUES (16777377, '12341234', 'ba8865efd91d1c0d9e6ffefa6e544757', '000000198010100000', '2022-09-19 23:16:03', NULL, 2089192565, '2022-09-24 02:26:16', 587, 587, 0, 1);
INSERT INTO `globaluser` VALUES (16777378, '181818', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-19 23:47:09', NULL, 3343122103, '2022-09-20 03:30:34', 13235, 13235, 0, 2);
INSERT INTO `globaluser` VALUES (16777379, '46454546', '42c4870d9ee8207055d962c4fd4c06c5', '000000198010100000', '2022-09-20 14:21:17', NULL, 2405066975, '2022-09-20 14:23:37', 139, 139, 0, 1);
INSERT INTO `globaluser` VALUES (16777380, 'skshag', '7776316aad0e8b99c2ead051d5b07540', '000000198010100000', '2022-09-20 14:24:03', NULL, 3697773492, '2022-09-20 14:26:25', 141, 141, 0, 2);
INSERT INTO `globaluser` VALUES (16777381, '230011', '79000416dea7edd8c6fb21367fd3b36b', '000000198010100000', '2022-09-20 15:43:04', NULL, 3247968879, '2022-09-20 15:49:19', 374, 374, 0, 1);
INSERT INTO `globaluser` VALUES (16777382, '123456aaa', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-20 15:48:00', NULL, 3343122103, '2022-09-20 18:25:26', 9446, 9446, 0, 2);
INSERT INTO `globaluser` VALUES (16777383, 'czbx003', '8af7c4b213d0ef4fd2c294797396b4b9', '000000198010100000', '2022-09-21 13:59:46', NULL, 125725108, '2022-09-29 20:17:17', 349404, 349404, 0, 1);
INSERT INTO `globaluser` VALUES (16777384, '636363', '802e7ed33b26b7de0eb938b836612e6f', '000000198010100000', '2022-09-21 16:59:26', NULL, 853762674, '2022-09-29 22:12:54', 31242, 31242, 0, 1);
INSERT INTO `globaluser` VALUES (16777385, '112111', '46e88c63dfa3a82deea19ca4ca2f83c6', '000000198010100000', '2022-09-21 18:25:37', NULL, 2975492319, NULL, 0, 0, 0, 1);
INSERT INTO `globaluser` VALUES (16777386, 'wodsh1148', 'fbc77dc3f5ffd01190beeb330365de90', '000000198010100000', '2022-09-21 18:30:38', NULL, 2975492319, NULL, 0, 0, 0, 1);
INSERT INTO `globaluser` VALUES (16777387, 'sjsjsjsj', 'ee50900a82c1e7b92d620a349ad21005', '000000198010100000', '2022-09-21 18:34:45', NULL, 1752271796, NULL, 0, 0, 0, 2);
INSERT INTO `globaluser` VALUES (16777388, '12341234123423', '2c730d17947200d0f6eed861a117350f', '000000198010100000', '2022-09-21 21:54:27', NULL, 2089192565, NULL, 0, 0, 0, 1);
INSERT INTO `globaluser` VALUES (16777389, 'sjsjsj', '1e28b4a63b30af919cffe658b4e993f1', '000000198010100000', '2022-09-22 12:42:52', NULL, 2858051807, NULL, 0, 0, 0, 2);
INSERT INTO `globaluser` VALUES (16777390, 'amcl1423', '619b3c2b777bcc2ffffafc986c814734', '000000198010100000', '2022-09-22 12:52:55', NULL, 3374681524, NULL, 0, 0, 0, 2);
INSERT INTO `globaluser` VALUES (16777391, 'akakjd', '207939bbc92d438ffc3796078039a7dc', '000000198010100000', '2022-09-22 13:42:40', NULL, 2858051807, '2022-09-23 14:24:18', 238, 238, 0, 1);
INSERT INTO `globaluser` VALUES (16777392, '123456', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-22 23:02:38', NULL, 4077538015, NULL, 0, 0, 0, 1);
INSERT INTO `globaluser` VALUES (16777393, 'wozhongyushede', '4b8c97044b582bdfe8e197f25e8a0a08', '000000198010100000', '2022-09-23 13:46:21', NULL, 853762674, '2022-09-27 11:18:35', 103332, 103332, 0, 2);
INSERT INTO `globaluser` VALUES (16777394, 'zjsjsj', 'f43a0c8e2cc82efedc8922326aa8d12a', '000000198010100000', '2022-09-23 14:24:39', NULL, 2438621407, '2022-09-23 14:30:47', 368, 368, 0, 2);
INSERT INTO `globaluser` VALUES (16777395, 'amcl1444', '22024435ee0e17e84f540e7e1ac65c2f', '000000198010100000', '2022-09-23 16:32:57', NULL, 2474498270, '2022-09-29 13:17:35', 93707, 93707, 0, 2);
INSERT INTO `globaluser` VALUES (16777396, '3390856763', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-24 12:16:46', NULL, 189544507, '2022-09-24 13:10:57', 2292, 2292, 0, 2);
INSERT INTO `globaluser` VALUES (16777397, 'ciyue1277893', '34183fc1803adf9223e0b670f21253fd', '000000198010100000', '2022-09-24 15:22:34', NULL, 3971384868, '2022-09-27 14:39:40', 129905, 129905, 0, 2);
INSERT INTO `globaluser` VALUES (16777398, '166899766', '962f17994b03e8cd5118e9016dbda127', '000000198010100000', '2022-09-24 15:42:32', NULL, 2117024367, '2022-09-24 16:32:54', 362, 362, 0, 1);
INSERT INTO `globaluser` VALUES (16777399, 'asd123', 'e69ccd14b85d7ac2074bad8d2ba8466b', '000000198010100000', '2022-09-24 21:26:51', NULL, 988687472, '2022-09-24 21:33:48', 416, 416, 0, 2);
INSERT INTO `globaluser` VALUES (16777400, 'akdjdh', '700925bd6196a75b11b84f39e9751404', '000000198010100000', '2022-09-25 01:04:32', NULL, 4166674655, '2022-09-27 17:37:35', 223, 223, 0, 2);
INSERT INTO `globaluser` VALUES (16777401, '18577161503', '2f647d784b048b5fd835a9b92f269f40', '000000198010100000', '2022-09-25 10:33:07', NULL, 3710068139, '2022-09-25 19:33:10', 7493, 7493, 0, 2);
INSERT INTO `globaluser` VALUES (16777402, '15079507001', 'f93643671353b925a3eca3094d9f0f8c', '000000198010100000', '2022-09-26 07:49:08', NULL, 3810712247, '2022-09-26 08:28:46', 2369, 2369, 0, 1);
INSERT INTO `globaluser` VALUES (16777403, 'amcl1111', '22024435ee0e17e84f540e7e1ac65c2f', '000000198010100000', '2022-09-27 17:34:57', NULL, 1752271796, '2022-09-27 17:37:02', 125, 125, 0, 2);
INSERT INTO `globaluser` VALUES (16777404, 'skdhdh', '1d744cf1c9b4dd0e6065733e576e0275', '000000198010100000', '2022-09-28 18:37:37', NULL, 2388289759, '2022-09-30 00:12:16', 175, 175, 0, 1);
INSERT INTO `globaluser` VALUES (16777405, '123123', 'e69ccd14b85d7ac2074bad8d2ba8466b', '000000198010100000', '2022-09-29 03:01:21', NULL, 1769069582, '2022-09-29 03:52:55', 1118, 1118, 0, 1);
INSERT INTO `globaluser` VALUES (16777406, 'mianjiang', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-29 12:31:00', NULL, 988687472, NULL, 0, 0, 0, 1);
INSERT INTO `globaluser` VALUES (16777407, '13145201', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-29 20:18:16', NULL, 1942619514, '2022-09-30 19:46:02', 6356, 6356, 0, 1);
INSERT INTO `globaluser` VALUES (16777408, '1231123', 'e205c56a76b9a2b8fe6e173959bce12e', '000000198010100000', '2022-09-29 22:07:04', NULL, 3095891061, '2022-09-29 22:44:13', 1151, 1151, 0, 1);
INSERT INTO `globaluser` VALUES (16777409, 'zmzmll', '584bbb98841f55af56341fba8f81a411', '000000198010100000', '2022-09-30 14:00:34', NULL, 3361368287, '2022-09-30 14:31:40', 195, 195, 0, 1);
INSERT INTO `globaluser` VALUES (16777410, '373464', '2416510cb148f02e068eb73d0ec12dd4', '000000198010100000', '2022-09-30 15:02:30', NULL, 2654853087, NULL, 0, 0, 0, 1);
INSERT INTO `globaluser` VALUES (16777411, '12121233', 'de16d134af2991f8c2bf63e1604f3d5a', '000000198010100000', '2022-09-30 16:53:37', NULL, 2474498270, NULL, 0, 0, 0, 1);
INSERT INTO `globaluser` VALUES (16777412, '1123232', 'ae9ef4185bc483f947b72563a93dc938', '000000198010100000', '2022-09-30 20:23:04', NULL, 3095891061, '2022-09-30 21:14:21', 32, 32, 0, 1);
INSERT INTO `globaluser` VALUES (16777413, '700113', '90c2978525fd600bce2d2027d2d1b605', '000000198010100000', '2022-10-01 14:44:20', NULL, 2923423415, '2022-10-01 14:47:32', 191, 191, 0, 1);
INSERT INTO `globaluser` VALUES (16777414, '123123112', '5374dcac64ef2b2640e072c5bdc548b5', '000000198010100000', '2022-10-02 07:29:30', NULL, 1563376239, NULL, 0, 0, 0, 1);

-- ----------------------------
-- Table structure for serverroute
-- ----------------------------
DROP TABLE IF EXISTS `serverroute`;
CREATE TABLE `serverroute`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `serverid` int(11) NULL DEFAULT NULL COMMENT '服务器id',
  `hostname` varchar(124) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '网关的ip或者名字',
  `port` int(11) NULL DEFAULT NULL COMMENT '网关的端口',
  `cserverid` int(11) NULL DEFAULT 0 COMMENT '连接的公共服务器Id',
  `servername` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务器名称',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of serverroute
-- ----------------------------

-- ----------------------------
-- Table structure for useramount
-- ----------------------------
DROP TABLE IF EXISTS `useramount`;
CREATE TABLE `useramount`  (
  `userid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `amount` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '用户余额，单位是元宝',
  `amountsum` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '用户总计充值元宝统计',
  `paysum` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '用户总计充值次数，每次充值都递增此值',
  `firstpaytime` datetime(0) NULL DEFAULT NULL COMMENT '用户首次充值时间',
  `firstpayamount` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '用户首次充值元宝数量',
  `lastpaytime` datetime(0) NULL DEFAULT NULL COMMENT '用户最后一次充值时间',
  `lastpayamount` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '用户最后一次充值的元宝数量',
  PRIMARY KEY (`userid`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = FIXED;

-- ----------------------------
-- Records of useramount
-- ----------------------------

-- ----------------------------
-- Table structure for useritem
-- ----------------------------
DROP TABLE IF EXISTS `useritem`;
CREATE TABLE `useritem`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `accountid` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '帐户id，如果是角色绑定，这个填0',
  `actorid` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '角色id，如果是账户id绑定的物品，这个写0',
  `itemid` int(11) NULL DEFAULT 0 COMMENT '物品的id,大于100000表示金钱，100000绑定银两,100001：银两，，类推',
  `bind` tinyint(4) NULL DEFAULT 0 COMMENT '绑定属性',
  `strong` tinyint(4) NULL DEFAULT 0 COMMENT '强化值',
  `quality` tinyint(4) NULL DEFAULT 0 COMMENT '品质',
  `itemcount` int(11) NULL DEFAULT 1 COMMENT '送的物品(金钱的）数量',
  `serverindex` int(11) NULL DEFAULT 0 COMMENT '\'目标服务器ID,0表示所有，否则特定的服务器',
  `memo` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简单的注释，比如活动的名称',
  `reser1` int(11) NULL DEFAULT 0 COMMENT '保留字段1',
  `reser2` int(11) NULL DEFAULT 0 COMMENT '保留字段2',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of useritem
-- ----------------------------

-- ----------------------------
-- Table structure for vaseries
-- ----------------------------
DROP TABLE IF EXISTS `vaseries`;
CREATE TABLE `vaseries`  (
  `sn` bigint(20) UNSIGNED NOT NULL COMMENT '唯一序列号',
  `tp` int(11) NULL DEFAULT 1 COMMENT '序列号分类',
  `val` int(11) NULL DEFAULT 1 COMMENT '序列号子类',
  `gt` datetime(0) NULL DEFAULT NULL COMMENT '序列号生成时间',
  PRIMARY KEY (`sn`) USING BTREE
) ENGINE = MyISAM CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = FIXED;

-- ----------------------------
-- Records of vaseries
-- ----------------------------

-- ----------------------------
-- Table structure for vaserieslog
-- ----------------------------
DROP TABLE IF EXISTS `vaserieslog`;
CREATE TABLE `vaserieslog`  (
  `sn` bigint(20) UNSIGNED NOT NULL COMMENT '增值序列号',
  `tp` int(11) NULL DEFAULT NULL COMMENT '序列号分类',
  `val` int(11) NULL DEFAULT NULL COMMENT '序列号子类',
  `gt` datetime(0) NULL DEFAULT NULL COMMENT '序列号生成时间',
  `ut` datetime(0) NULL DEFAULT NULL COMMENT '序列号使用时间',
  `uid` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '使用序列号的账号ID',
  `cid` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '使用此序列号的角色ID',
  `username` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用此序列号的角色名称',
  PRIMARY KEY (`sn`) USING BTREE
) ENGINE = MyISAM CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of vaserieslog
-- ----------------------------

-- ----------------------------
-- Procedure structure for changeaccount
-- ----------------------------
DROP PROCEDURE IF EXISTS `changeaccount`;
delimiter ;;
CREATE PROCEDURE `changeaccount`(IN oldname varchar(64), IN newname varchar(64))
BEGIN

  	update globaluser set `account` = newname where `account`  = oldname limit 1;
  
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for changeaccountid
-- ----------------------------
DROP PROCEDURE IF EXISTS `changeaccountid`;
delimiter ;;
CREATE PROCEDURE `changeaccountid`(in noldid integer unsigned, in newid integer unsigned,in actorid integer unsigned)
BEGIN

  	update actors set `accountid` = newid where `accountid`  = noldid  and  `actorid`  = actorid limit 1;
  
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for createglobaluser
-- ----------------------------
DROP PROCEDURE IF EXISTS `createglobaluser`;
delimiter ;;
CREATE PROCEDURE `createglobaluser`(in accountname  varchar(64),in pass  varchar(64),in id  varchar(64))
begin
    declare accountCount integer unsigned  default 0;
   
    select count(*) into accountCount from globaluser where  `account`=accountname limit 1;
    if accountCount =0 then  
	    insert into globaluser (`account`,`passwd`,`identity`,`createtime`) values (accountname,pass, id,now());
    else
        select "has exists.";
    end if;
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for deletecsrank
-- ----------------------------
DROP PROCEDURE IF EXISTS `deletecsrank`;
delimiter ;;
CREATE PROCEDURE `deletecsrank`(in _serverindex integer)
begin
    if _serverindex > 0 then
        delete from csrank where serverindex=_serverindex;
    else
        delete from csrank;
    end if;
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for deleteuseritem
-- ----------------------------
DROP PROCEDURE IF EXISTS `deleteuseritem`;
delimiter ;;
CREATE PROCEDURE `deleteuseritem`(in nid bigint)
begin
    delete from useritem where id=nid;
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for deletevaseries
-- ----------------------------
DROP PROCEDURE IF EXISTS `deletevaseries`;
delimiter ;;
CREATE PROCEDURE `deletevaseries`(in seriesno bigint unsigned, in uid integer, in cid integer, in actorname varchar(64))
begin
    declare _sn bigint unsigned default 0;
	declare _tp integer;
	declare _val integer;
	declare _gt datetime;
    select sn,tp,val,gt into _sn, _tp, _val, _gt from vaseries where sn=seriesno LIMIT 1;
    delete from vaseries where sn=seriesno;
    insert into vaserieslog values(_sn, _tp, _val, _gt, now(), uid, cid, actorname);
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for djimportspuser
-- ----------------------------
DROP PROCEDURE IF EXISTS `djimportspuser`;
delimiter ;;
CREATE PROCEDURE `djimportspuser`(IN sAcc varchar(64), IN sPass varchar(64), IN nLoginServerId INTEGER, IN sCtzIDNum VARCHAR(64), IN nLoginIp bigint)
BEGIN
  declare nid integer unsigned default 0;
  declare ctzID varchar(32) default "";
  declare t_now datetime;

  select `userid`, `identity` into nid, ctzID
  from globaluser
  where `account` = sAcc limit 1;

  if nid <> 0 then
  	if ctzID <> sCtzIDNum then
  		update globaluser set `identity` = sCtzIDNum where userid = nid limit 1;
  	end if;
  	select 1;
  else
    set t_now = now();
    insert into globaluser (`account`, `passwd`, `identity`, `createtime`, `inserver`,`updateip`) 
    values (sAcc, sPass, sCtzIDNum, t_now, nLoginServerId,nLoginIp);
    
    
    select 2;
  end if;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for getfcmtime
-- ----------------------------
DROP PROCEDURE IF EXISTS `getfcmtime`;
delimiter ;;
CREATE PROCEDURE `getfcmtime`(in nuserid integer unsigned)
begin
  
  declare offtime datetime default 0;
  declare nowtime datetime default 0;
  
  

  select `offlinetime` into offtime from globaluser where `userid`=nuserid  limit 1;
 
  if offtime is null then
    set offtime = now();
  end if;
  
  
  set nowtime = now();
  if TO_DAYS(offtime) <> TO_DAYS(nowtime) then 
	  update globaluser set `fcmonline` = 0 where `userid`=nuserid limit 1;
  end if ;

  select `fcmonline` from globaluser where `userid`=nuserid  limit 1;
   
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for getuseritem
-- ----------------------------
DROP PROCEDURE IF EXISTS `getuseritem`;
delimiter ;;
CREATE PROCEDURE `getuseritem`(in naccountid integer,in nactorid integer,in nid bigint,in nserverindex integer)
begin
    declare nitemid int default null;
    declare nbind int default 0;
    declare nquality int default 0;
    declare nstrong int default 0;
    declare ncount int default 0;
    declare smemo varchar(32) default '';
    select itemid,bind,strong,quality,itemcount,memo into nitemid,nbind,nstrong,nquality,ncount,smemo from useritem where id=nid and ((accountid=0 and actorid=nactorid) or (accountid=naccountid)) and (serverindex=0 or serverindex=nserverindex);
    if nitemid is null then
        select 0,0,0,0,0,null;
    else
        select nitemid,nbind,nstrong,nquality,ncount,smemo;
    end if;
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for getvaseriesinfo
-- ----------------------------
DROP PROCEDURE IF EXISTS `getvaseriesinfo`;
delimiter ;;
CREATE PROCEDURE `getvaseriesinfo`(in seriesno bigint unsigned)
begin
   select sn,tp,val,gt from vaseries where (sn=seriesno) limit 1;
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for loadadministlogintable
-- ----------------------------
DROP PROCEDURE IF EXISTS `loadadministlogintable`;
delimiter ;;
CREATE PROCEDURE `loadadministlogintable`()
select accounttype,rectdata from adminaccount
;;
delimiter ;

-- ----------------------------
-- Procedure structure for loadcharactorserveraddress
-- ----------------------------
DROP PROCEDURE IF EXISTS `loadcharactorserveraddress`;
delimiter ;;
CREATE PROCEDURE `loadcharactorserveraddress`()
select id,serverid,hostname,port from serverroute
;;
delimiter ;

-- ----------------------------
-- Procedure structure for loadcsrank
-- ----------------------------
DROP PROCEDURE IF EXISTS `loadcsrank`;
delimiter ;;
CREATE PROCEDURE `loadcsrank`()
begin
    select a.* from csrank as a where a.value = (select max(b.value) from csrank as b where b.job in (1,2,3) and b.job=a.job) group by a.job having count(a.job)>=1;
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for loadlogicserverinfolist
-- ----------------------------
DROP PROCEDURE IF EXISTS `loadlogicserverinfolist`;
delimiter ;;
CREATE PROCEDURE `loadlogicserverinfolist`()
begin
    select serverid,cserverid,servername from serverroute ;
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for loaduseritem
-- ----------------------------
DROP PROCEDURE IF EXISTS `loaduseritem`;
delimiter ;;
CREATE PROCEDURE `loaduseritem`(in naccountid integer unsigned ,in nactorid integer unsigned,in nserverindex integer)
begin
   select id,itemid,bind,strong,quality,itemcount from useritem where ((accountid=0 and actorid=nactorid) or (accountid=naccountid)) and (serverindex=0 or serverindex=nserverindex);
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for logingetglobaluser
-- ----------------------------
DROP PROCEDURE IF EXISTS `logingetglobaluser`;
delimiter ;;
CREATE PROCEDURE `logingetglobaluser`(in actorname  varchar(64))
select  userid, passwd,updatetime, offlinetime, fcmonline,updateip,gmlevel from globaluser where account = actorname
;;
delimiter ;

-- ----------------------------
-- Procedure structure for php_globaluser_gmlevel
-- ----------------------------
DROP PROCEDURE IF EXISTS `php_globaluser_gmlevel`;
delimiter ;;
CREATE PROCEDURE `php_globaluser_gmlevel`(IN saccount varchar(64),IN ngmlevel integer unsigned)
BEGIN

  	update globaluser set `gmlevel` = ngmlevel where `account` = saccount limit 1;
  
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for updateglobaluserlogin
-- ----------------------------
DROP PROCEDURE IF EXISTS `updateglobaluserlogin`;
delimiter ;;
CREATE PROCEDURE `updateglobaluserlogin`(in nsessionid integer,
    
    in loginip bigint)
begin
     declare boexists integer default null;
    
     set boexists = (select count(`userid`)  from globaluser
      where `userid`=nsessionid 
             limit 1
            );
    
    if boexists = 1 then
       	update globaluser set `updatetime` = now(),`updateip`= loginip where `userid` = nsessionid;
        
    end if;
  
end
;;
delimiter ;

-- ----------------------------
-- Procedure structure for updateglobaluseronlinetime
-- ----------------------------
DROP PROCEDURE IF EXISTS `updateglobaluseronlinetime`;
delimiter ;;
CREATE PROCEDURE `updateglobaluseronlinetime`(in nsessionid integer unsigned,
    
    in nonlinesecond integer)
begin
    
    declare ntotalonlinetime integer default null;
    declare nfcmtime integer default null;
    select `totalonline`,`fcmonline` into ntotalonlinetime,nfcmtime from globaluser   where `userid`=nsessionid ;
    
  
    if ntotalonlinetime is null  then
         select "not exists.";
    else
       set ntotalonlinetime = ntotalonlinetime +  nonlinesecond;
       set nfcmtime         = nfcmtime         +  nonlinesecond;
       update globaluser set `totalonline` = ntotalonlinetime,`offlinetime`=now(),`fcmonline`= nfcmtime where `userid` = nsessionid;
    end if;
  

end
;;
delimiter ;

SET FOREIGN_KEY_CHECKS = 1;
