From db429f03ae0e4fac994fc0537d91fb5b21620dcf Mon Sep 17 00:00:00 2001 From: lin fan Date: Tue, 12 Nov 2024 11:11:57 +0800 Subject: [PATCH] 1 --- home/controllers/Welcome.php | 31 +++++++++++++++++++ home/controllers/h5/market/sytopic/Enter.php | 2 +- .../controllers/h5/market/sytopic/Welcome.php | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/home/controllers/Welcome.php b/home/controllers/Welcome.php index 78971d91..666475d9 100644 --- a/home/controllers/Welcome.php +++ b/home/controllers/Welcome.php @@ -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)); + } + + } diff --git a/home/controllers/h5/market/sytopic/Enter.php b/home/controllers/h5/market/sytopic/Enter.php index 41e103cc..b4f2f029 100644 --- a/home/controllers/h5/market/sytopic/Enter.php +++ b/home/controllers/h5/market/sytopic/Enter.php @@ -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'){ diff --git a/home/controllers/h5/market/sytopic/Welcome.php b/home/controllers/h5/market/sytopic/Welcome.php index df62c938..3ff438cf 100644 --- a/home/controllers/h5/market/sytopic/Welcome.php +++ b/home/controllers/h5/market/sytopic/Welcome.php @@ -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'); } }