diff --git a/home/controllers/Welcome.php b/home/controllers/Welcome.php index f1374d63..6dead1d9 100644 --- a/home/controllers/Welcome.php +++ b/home/controllers/Welcome.php @@ -161,13 +161,27 @@ class Welcome extends CI_Controller { return self::parseBinary2HexStr($encrypted); } - public function tt() + public function t1() { $key = "B066+uPhhihfn0CLrU5Cpw=="; - $data = "0534_1716970275384"; + $data = "0534_1729650980126_1729650980126"; $encryptedData = $this->encryptData($data, $key); - echo "加密内容:" . $encryptedData . "\n"; + echo "加密内容:" . strtoupper($encryptedData) . "\n"; } + + public function t2() + { + $key = "MMrPzdpMKIVcQBOiQN/uoQ=="; + $mobile = "13012341234"; + $encryptedData = $this->encryptData($mobile, $key); + echo "手机号加密内容:" . strtoupper($encryptedData) . "\n"; + + + } + + + + } diff --git a/home/controllers/h5/market/sytopic/Enter.php b/home/controllers/h5/market/sytopic/Enter.php index e608b02b..4a6affc4 100644 --- a/home/controllers/h5/market/sytopic/Enter.php +++ b/home/controllers/h5/market/sytopic/Enter.php @@ -30,8 +30,8 @@ class Enter extends CI_Controller } $this->data['skey'] = $this->skey; - if($this->skey == 'dG9waWNfaWQ9Ng'){ - debug_log("params:". json_encode($this->input->get()), 'auto.txt'); + if($this->skey == 'dG9waWNfaWQ9Ng' || $this->skey == 'dG9waWNfaWQ9Nw'){ + debug_log("params:". json_encode($this->input->get()), 'auto1.txt'); } } diff --git a/home/controllers/h5/market/sytopic/Welcome.php b/home/controllers/h5/market/sytopic/Welcome.php index c73df97d..94ea236a 100644 --- a/home/controllers/h5/market/sytopic/Welcome.php +++ b/home/controllers/h5/market/sytopic/Welcome.php @@ -24,7 +24,7 @@ class Welcome extends Wx } $this->data['skey'] = $this->skey; - if($this->skey == 'dG9waWNfaWQ9Ng'){ + if($this->skey == 'dG9waWNfaWQ9Ng' || $this->skey == 'dG9waWNfaWQ9Nw'){ debug_log("params:". json_encode($this->input->get()), 'auto.txt'); } }