This commit is contained in:
lin fan
2024-11-12 11:11:57 +08:00
parent d5988f67f7
commit db429f03ae
3 changed files with 33 additions and 2 deletions
+31
View File
@@ -180,6 +180,37 @@ class Welcome extends CI_Controller {
}
public function t3()
{
$appKey = 'autolocal';
$signStr = $appKey;
$paramList = array(
'skey' => 'dG9waWNfaWQ9OA',
'shopid' => '2',
'token' => '3882',
'cfrom' => 'car',
'ufrom' => '98651',
'backup' => '',
'timestamp' => '1731326192',
'nonce' => 'hdad9j12sdad9',
'cityid' => '350200',
);
ksort($paramList);
// 遍历参数列表并拼接参数
foreach ($paramList as $key => $value) {
$signStr .= $key . $value;
}
// 再次追加appKey
$signStr .= $appKey;
// 返回MD5签名
echo strtoupper(md5($signStr));
}
}
+1 -1
View File
@@ -31,7 +31,7 @@ class Enter extends CI_Controller
$this->data['skey'] = $this->skey;
if($this->skey == 'dG9waWNfaWQ9Ng' || $this->skey == 'dG9waWNfaWQ9OQ'){
debug_log("params:". json_encode($this->input->get()), 'auto.txt');
debug_log("params:". json_encode($this->input->get()), 'auto1.txt');
}
if($this->skey == 'dG9waWNfaWQ9OA'){
@@ -29,7 +29,7 @@ class Welcome extends Wx
}
if($this->skey == 'dG9waWNfaWQ9OA'){
debug_log("params:". json_encode($this->input->get()), 'auto2.txt');
debug_log("params:". json_encode($this->input->get()), 'auto3.txt');
}
}