From 9bc512722340472b9788e44b15992c360a7cc7eb Mon Sep 17 00:00:00 2001
From: jbrazz <2436953959@qq.com>
Date: Wed, 23 Oct 2019 11:29:21 +0800
Subject: [PATCH 1/9] upt
---
.../Home/Controller/PromoteController.class.php | 9 +++++++++
.../Home/View/default/Promote/add_chlid.html | 14 ++++++++++----
2 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php
index 890c04244..037cb7b5f 100644
--- a/Application/Home/Controller/PromoteController.class.php
+++ b/Application/Home/Controller/PromoteController.class.php
@@ -860,6 +860,15 @@ class PromoteController extends BaseController
$this->ajaxReturn(array('status' => -1, 'msg' => '身份证格式错误'));
}
}
+ if (mb_strlen($_POST['account']) < 6 || mb_strlen($_POST['account']) > 15) {
+ $this->error('账号长度为6-15个字符', U('Promote/edit_chlid', array('id' => $id, 'type' => I('type', 0))));
+ return false;
+ }
+
+ if (mb_strlen($_POST['real_name']) < 2 || mb_strlen($_POST['real_name']) > 4) {
+ $this->error('姓名长度为2-4个字符', U('Promote/edit_chlid', array('id' => $id, 'type' => I('type', 0))));
+ return false;
+ }
$res = $user->promote_add($_POST);
if (is_numeric($res)) {
diff --git a/Application/Home/View/default/Promote/add_chlid.html b/Application/Home/View/default/Promote/add_chlid.html
index e87d01b21..5d9d63c2a 100644
--- a/Application/Home/View/default/Promote/add_chlid.html
+++ b/Application/Home/View/default/Promote/add_chlid.html
@@ -37,13 +37,13 @@
*帐号: |
-
+
|
*姓名: |
-
+
|
@@ -141,8 +141,14 @@
if($('#account').val()==""){
return json_data = {'status':0,'msg':'子渠道账号不能为空'}
}
- if($.trim($('#account').val()).length < 6){
- return json_data = {'status':0,'msg':'子渠道账号不能小于6位字符'}
+ // if($.trim($('#account').val()).length < 6){
+ // return json_data = {'status':0,'msg':'子渠道账号不能小于6位字符'}
+ // }
+ if($.trim($('#account').val()).length < 6 || $.trim($('#account').val()).length > 15){
+ return json_data = {'status':0,'msg':'子渠道账号长度为6-15位字符'}
+ }
+ if($.trim($('#real_name').val()).length < 2 || $.trim($('#real_name').val()).length > 4){
+ return json_data = {'status':0,'msg':'子渠道姓名长度为2-4位字符'}
}
if($('#password').val()==""){
return json_data = {'status':0,'msg':'子渠道密码不能为空'}
From 29883f60ac397b704614fb87c4223b2a0d7d4795 Mon Sep 17 00:00:00 2001
From: tpingzhang <635929049@qq.com>
Date: Wed, 23 Oct 2019 13:42:57 +0800
Subject: [PATCH 2/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E5=A4=8D?=
=?UTF-8?q?=E6=8F=92=E5=85=A5=E9=97=AE=E9=A2=98=20=20=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E5=94=AF=E4=B8=80=E7=B4=A2=E5=BC=95=20=20=E8=AE=B0=E5=BD=95?=
=?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=8F=92=E5=85=A5=E5=BC=82=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Sdk/Controller/UserController.class.php | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php
index 16882a765..3fcb8157c 100644
--- a/Application/Sdk/Controller/UserController.class.php
+++ b/Application/Sdk/Controller/UserController.class.php
@@ -1196,7 +1196,13 @@ class UserController extends BaseController
$data['create_ip'] = get_client_ip();
// $data['create_device_number'] = time();
- $user_play->add($data);
+ // 修改重复插入问题 增加唯一索引 记录重复插入异常
+ try {
+ $user_play->add($data);
+ } catch (\Exception $e) {
+ Log::write('Duplicate Exception:' .json_encode($e->getMessage()), Log::ERR);
+ }
+
$this->updateLoginRecord($data);
}
From 66e011e101effcef2dcaf21155dd31d494f96a00 Mon Sep 17 00:00:00 2001
From: chenxiaojun <956334972@qq.com>
Date: Wed, 23 Oct 2019 13:50:51 +0800
Subject: [PATCH 3/9] =?UTF-8?q?PC=E5=AE=98=E7=BD=91->=E5=B9=B3=E5=8F=B0?=
=?UTF-8?q?=E5=B8=81=E5=85=85=E5=80=BC=E7=AE=80=E4=BB=8B=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Media/View/default/Index/business.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Application/Media/View/default/Index/business.html b/Application/Media/View/default/Index/business.html
index ad0a46623..f8e21cf2c 100644
--- a/Application/Media/View/default/Index/business.html
+++ b/Application/Media/View/default/Index/business.html
@@ -40,7 +40,7 @@
平台币充值
-
平台币简介平台币简介平台币简介平台币简介平台币简介平台币简介
+
平台币是可以在游戏内直接消费使用的,1平台币=1人民币,在游戏内您可直接用平台币选择购买相应的道具(钻石、宝石、金币等)。
+
diff --git a/Application/Admin/View/TestResource/supportNumberList.html b/Application/Admin/View/TestResource/supportNumberList.html
index 5dc4165db..1fcc6611c 100644
--- a/Application/Admin/View/TestResource/supportNumberList.html
+++ b/Application/Admin/View/TestResource/supportNumberList.html
@@ -333,10 +333,7 @@
-
+
+
From c9fead3389c3c43a399349cdc137429e1cd6948a Mon Sep 17 00:00:00 2001
From: zhengchanglong
Date: Wed, 23 Oct 2019 17:10:53 +0800
Subject: [PATCH 9/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20tab=5Fcoin=5Fpay=5Ford?=
=?UTF-8?q?er=20=E8=A1=A8=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Admin/Controller/access_data_foldline.txt | 1 -
Data/update.sql | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
delete mode 100644 Application/Admin/Controller/access_data_foldline.txt
diff --git a/Application/Admin/Controller/access_data_foldline.txt b/Application/Admin/Controller/access_data_foldline.txt
deleted file mode 100644
index f2bc7fb38..000000000
--- a/Application/Admin/Controller/access_data_foldline.txt
+++ /dev/null
@@ -1 +0,0 @@
-{"news":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"sum":{"news":0,"active":0,"player":0,"money":0},"active":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"player":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"money":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}]}
\ No newline at end of file
diff --git a/Data/update.sql b/Data/update.sql
index 754f485ea..054c3c2e5 100644
--- a/Data/update.sql
+++ b/Data/update.sql
@@ -180,3 +180,5 @@ MODIFY COLUMN `promote_account` varchar(30) BINARY CHARACTER SET utf8 COLLATE u
-- 2019-10-22 cxj
UPDATE `sys_model` SET list_grid = "id:编号\r\nsort:排序\r\ngame_name:游戏名称\r\ngame_type_name:游戏类型\r\ngame_type_id:游戏类型\r\ngame_appid:游戏appid\r\ngame_status|get_info_status:显示状态\r\npay_status|get_info_status:支付状态\r\nicon:图片id\r\napply_status:审核状态\r\ncategory:开放类型\r\nrecommend_status|get_info_status*1:推荐状态\r\nrelation_game_id:关联游戏id\r\nrelation_game_name:关联游戏名称\r\nsdk_version:运营平台\r\ndevelopers:开发商\r\ndow_num:下载\r\nonline_status:上线状态\r\ncreate_time:创建时间\r\nserver_type:混服管理\r\nid:操作:[EDIT]&id=[id]|编辑,Game/del?ids=[id]|删除" where id = 15;
+-- 2019-10-23 zcl
+ALTER TABLE `tab_coin_pay_order` CHANGE COLUMN `currency_num` `coin_num` int(11) NULL DEFAULT 0 COMMENT '代币数量' AFTER `auditor_time`;
\ No newline at end of file