From 88afeea8a018dd714aff4ff25954310049f92576 Mon Sep 17 00:00:00 2001
From: chenxiaojun <956334972@qq.com>
Date: Sun, 17 Nov 2019 18:18:46 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0->?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=AE=A1=E7=90=86->=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E6=9F=A5=E8=AF=A2--=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Home/View/default/Query/recharge.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Application/Home/View/default/Query/recharge.html b/Application/Home/View/default/Query/recharge.html
index a8a834ef7..4285b795b 100644
--- a/Application/Home/View/default/Query/recharge.html
+++ b/Application/Home/View/default/Query/recharge.html
@@ -118,11 +118,11 @@
From d386337922a1005315b1b7b1e252e12415613477 Mon Sep 17 00:00:00 2001
From: zhengyongxing
Date: Sun, 17 Nov 2019 18:21:22 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=AD=E5=BF=83?=
=?UTF-8?q?=E9=87=8D=E8=A6=81=E7=9A=84=E4=BF=A1=E6=81=AF=E5=8A=A0=E5=AF=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Common/Common/extend.php | 17 +++++++++++++++++
.../Home/Controller/PromoteController.class.php | 7 +++++++
2 files changed, 24 insertions(+)
diff --git a/Application/Common/Common/extend.php b/Application/Common/Common/extend.php
index 7bd15abbc..6f38130b5 100644
--- a/Application/Common/Common/extend.php
+++ b/Application/Common/Common/extend.php
@@ -2856,3 +2856,20 @@ function getIsTask($user_id){
return $shiftres['id'];
}
}
+
+function encryption($string) {
+ //订单隐藏算法
+ $orderLen = strlen($string);
+ $strLen = 3;
+ $hideChar = '';
+
+ if($orderLen <=8) {
+ $strLen = 2;
+ }
+
+ for($i = 0;$i<$orderLen-$strLen*2;$i++) {
+ $hideChar .='*';
+ }
+
+ return substr($string, 0, $strLen) . $hideChar . substr($string, $orderLen-$strLen);
+}
diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php
index e0c1b4427..b09ae54ac 100644
--- a/Application/Home/Controller/PromoteController.class.php
+++ b/Application/Home/Controller/PromoteController.class.php
@@ -899,6 +899,13 @@ class PromoteController extends BaseController
$query = M('promote', 'tab_')->where($map);
list($records, $pagination, $count) = $this->paginate($query);
+ foreach ($records as $key => $value) {
+
+ $records[$key]['idcard'] = encryption($value['idcard']);
+ $records[$key]['mobile_phone'] = encryption($value['mobile_phone']);
+
+ }
+
$ids = array_column($records, 'id');
$countList = [];