chore: archive AI-generated docs/scripts from webroot into _ai_archive (docs/scripts/sql/logs), keep production entries
这个提交包含在:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
// 测试PHP 7.2下的登录功能
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
// 模拟POST请求到登录接口
|
||||
$url = 'http://localhost:8080/index.php/Retail/Login/doLogin_v1';
|
||||
$data = array(
|
||||
'username' => '13888888888',
|
||||
'password' => '123456'
|
||||
);
|
||||
|
||||
$options = array(
|
||||
'http' => array(
|
||||
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
|
||||
'method' => 'POST',
|
||||
'content' => http_build_query($data)
|
||||
)
|
||||
);
|
||||
|
||||
$context = stream_context_create($options);
|
||||
$result = file_get_contents($url, false, $context);
|
||||
|
||||
echo "Login API Response:\n";
|
||||
echo $result;
|
||||
echo "\n\nHTTP Response Headers:\n";
|
||||
print_r($http_response_header);
|
||||
?>
|
||||
在新工单中引用
屏蔽一个用户