1
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user