From 6509b8c68a937cdd9d1da818f0c149aaadfb23f8 Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 19 Jun 2023 17:25:12 +0800 Subject: [PATCH 1/4] ... --- webapp/services/callback/BuyShopGoodsCbService.php | 4 +++- webapp/services/callback/gameItemMallBuyOk.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/webapp/services/callback/BuyShopGoodsCbService.php b/webapp/services/callback/BuyShopGoodsCbService.php index 91e01750..def4688d 100644 --- a/webapp/services/callback/BuyShopGoodsCbService.php +++ b/webapp/services/callback/BuyShopGoodsCbService.php @@ -6,5 +6,7 @@ namespace services; class BuyShopGoodsCbService { - + public function process($order){ + + } } \ No newline at end of file diff --git a/webapp/services/callback/gameItemMallBuyOk.php b/webapp/services/callback/gameItemMallBuyOk.php index 2d7966b4..c5d6e2fd 100644 --- a/webapp/services/callback/gameItemMallBuyOk.php +++ b/webapp/services/callback/gameItemMallBuyOk.php @@ -4,6 +4,7 @@ namespace services; require_once('phpcommon/bchelper.php'); require_once ('services/callback/BuyPassCbService.php'); +require_once ('services/callback/BuyShopGoodsCbService.php'); use phpcommon\SqlHelper; @@ -29,7 +30,8 @@ class gameItemMallBuyOk { } else { // 老宋 处理... - + $shopGoodsCbService = new BuyShopGoodsCbService(); + $shopGoodsCbService->process($orderDb); } From 157598f2142615ad8cc5bf1273186d871e86d2d2 Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 19 Jun 2023 17:30:02 +0800 Subject: [PATCH 2/4] ... --- sql/gamedb.sql | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 3395e1fd..29f9edef 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1128,7 +1128,7 @@ DROP TABLE IF EXISTS `t_first_topup`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_first_topup` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT, - `account_id` varchar(64) NOT NULL COMMENT '账户id', + `address` varchar(64) NOT NULL COMMENT '账户id', `createtime` int(11) NOT NULL COMMENT '首充时间', `status1` int(11) NOT NULL DEFAULT '0' COMMENT '领取状态1 0 不能领取 1 可领取状态 2 已领取', `status2` int(11) NOT NULL DEFAULT '0' COMMENT '领取状态2', @@ -1148,7 +1148,7 @@ DROP TABLE IF EXISTS `t_shop_buy_order`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_shop_buy_order` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '订单id', - `account_id` varchar(60) NOT NULL COMMENT '账户id', + `address` varchar(60) NOT NULL COMMENT '账户id', `createtime` int(11) NOT NULL COMMENT '订单开始时间', `item_id` int(11) NOT NULL COMMENT '道具id', `goods_num` int(11) NOT NULL COMMENT '购买个数', @@ -1200,3 +1200,24 @@ CREATE TABLE `t_bc_order` ( UNIQUE KEY `order_id` (`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; + +DROP TABLE IF EXISTS `t_shop_dailyselection`; +CREATE TABLE `t_shop_dailyselection` ( + `idx` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增id', + `address` varchar(60) NOT NULL COMMENT 'address', + `refresh_mode` int(11) NOT NULL COMMENT '0-每日自动刷新时间 1-手动刷新时间', + `refresh_time` int(11) NOT NULL DEFAULT '0' COMMENT '刷新时间', + `grid_1` int(11) NOT NULL, + `grid_2` int(11) NOT NULL, + `grid_3` int(11) NOT NULL, + `grid_4` int(11) NOT NULL, + `grid_5` int(11) NOT NULL, + `grid_6` int(11) NOT NULL, + `count_1` tinyint(4) NOT NULL, + `count_2` tinyint(4) NOT NULL, + `count_3` tinyint(4) NOT NULL, + `count_4` tinyint(4) NOT NULL, + `count_5` tinyint(4) NOT NULL, + `count_6` tinyint(4) NOT NULL, + PRIMARY KEY (`idx`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; From abb75ab22141a169f0299afa96d7cc85264bb6b6 Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 19 Jun 2023 17:33:10 +0800 Subject: [PATCH 3/4] ... --- sql/gamedb.sql | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 29f9edef..7bebc9a3 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1201,7 +1201,13 @@ CREATE TABLE `t_bc_order` ( ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `t_shop_dailyselection` +-- + DROP TABLE IF EXISTS `t_shop_dailyselection`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_shop_dailyselection` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增id', `address` varchar(60) NOT NULL COMMENT 'address', @@ -1220,4 +1226,5 @@ CREATE TABLE `t_shop_dailyselection` ( `count_5` tinyint(4) NOT NULL, `count_6` tinyint(4) NOT NULL, PRIMARY KEY (`idx`) USING BTREE -) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; From 8cacf4a173c7e9ec5eb7ee55d9769b1776ce7ac1 Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 19 Jun 2023 17:34:06 +0800 Subject: [PATCH 4/4] ... --- sql/gamedb.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 7bebc9a3..73a49048 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1226,5 +1226,5 @@ CREATE TABLE `t_shop_dailyselection` ( `count_5` tinyint(4) NOT NULL, `count_6` tinyint(4) NOT NULL, PRIMARY KEY (`idx`) USING BTREE -) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */;