This commit is contained in:
lin fan
2024-10-25 17:35:58 +08:00
parent 85533fcc98
commit 4a4120cc6d
3 changed files with 20 additions and 6 deletions
+17 -3
View File
@@ -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";
}
}
+2 -2
View File
@@ -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');
}
}
@@ -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');
}
}