From c90851996cd667c3d48836625bb50f34d8fed930 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 20 Dec 2019 18:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Base/Service/PromoteService.class.php | 21 +++---------------- .../Controller/DownloadController.class.php | 2 +- .../Home/View/default/Promote/addPromote.html | 12 ++++++----- .../Home/View/default/Query/recharge.html | 2 +- robots.txt | 2 ++ 5 files changed, 14 insertions(+), 25 deletions(-) create mode 100644 robots.txt diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index 5d4547d60..fe75474ee 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -865,12 +865,7 @@ class PromoteService { 'message' => '账号只能为数字,字母和下划线', ]; } - if ($mobile == '') { - return [ - 'status' => false, - 'message' => '请输入手机号', - ]; - } else { + if ($mobile != '') { if (!preg_match("/^1[3456789]{1}\d{9}$/", $mobile)) { return [ 'status' => false, @@ -878,12 +873,7 @@ class PromoteService { ]; } } - if ($idcard == '') { - return [ - 'status' => false, - 'message' => '请输入身份证号', - ]; - } else { + if ($idcard != '') { if (!IdCard::isIdcard($idcard)) { return [ 'status' => false, @@ -891,12 +881,7 @@ class PromoteService { ]; } } - if ($realName == '') { - return [ - 'status' => false, - 'message' => '请输入姓名', - ]; - } else { + if ($realName != '') { if (mb_strlen($realName) < 2 || mb_strlen($realName) > 4) { return [ 'status' => false, diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index d1a6986e1..367ffbac5 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -3456,7 +3456,7 @@ class DownloadController extends BaseController { ->where($map) ->order('tab_spend.id desc') ->find()['income']; - $csvData1["user_account"] = "合计"; + $csvData1["user_account"] = "合计(此数据根据充值状态进行统计)"; $csvData1["pay_order_number"] = "--"; $csvData1["pay_amount"] = $income; $csvData1["pay_way"] = "--"; diff --git a/Application/Home/View/default/Promote/addPromote.html b/Application/Home/View/default/Promote/addPromote.html index e718cc779..b80c232fe 100644 --- a/Application/Home/View/default/Promote/addPromote.html +++ b/Application/Home/View/default/Promote/addPromote.html @@ -36,19 +36,19 @@ - *姓名: + 姓名: - *身份证: + 身份证: - *手机号: + 手机号: @@ -147,8 +147,10 @@ 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 ($.trim($('#real_name').val()) != '') { + 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':'子渠道密码不能为空'} diff --git a/Application/Home/View/default/Query/recharge.html b/Application/Home/View/default/Query/recharge.html index 89728f917..cbc06ac26 100644 --- a/Application/Home/View/default/Query/recharge.html +++ b/Application/Home/View/default/Query/recharge.html @@ -224,7 +224,7 @@ - 合计 + 合计(此数据根据充值状态进行统计) -- -- -- diff --git a/robots.txt b/robots.txt new file mode 100644 index 000000000..77470cb39 --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file