|
修复刷点券BUG:(D币(点券)D点(代币券)的函数对应的库taiwan_billing)
- CREATE TRIGGER `update_cash_cera` BEFORE UPDATE ON `cash_cera`
- FOR EACH ROW IF (new.cera<0 OR new.cera>2100000000) THEN
- SET new.cera = 0;
- END IF;
- CREATE TRIGGER `update_cash_cera_point` BEFORE UPDATE ON `cash_cera_point`
- FOR EACH ROW IF (new.cera_point<0 OR new.cera_point>2100000000) THEN
- SET new.cera_point = 0;
- END IF;
复制代码
修复刷金币漏洞:(对应的库taiwan_cain_2nd操作和DB一样)
- CREATE TRIGGER `update_inventory` BEFORE UPDATE ON `inventory`
- FOR EACH ROW IF (new.money<0 OR new.
- money>2100000000) THEN
- SET new.money = 0;
- END IF;
复制代码
操作步骤:
1.打开数据库管理工具“Navicat”,连接上你的游戏数据库;
2.找到所要修复的点券、金币数据表“taiwan_billing、taiwan_cain_2nd”;
3.分别双击打开后,选择命令列界面,粘贴以上对应SQL语句;
4.单击Enter键执行,执行返回ok即可;
SQL文件下载:
taiwan_billing.sql
(39.54 KB, 下载次数: 0, 售价: 20 怒气)
|
|