作者 郭文星

123

... ... @@ -147,6 +147,18 @@ class Car extends Api
}
}
/**
* 切换司机
* @return void
*/
public function switching_user(){
$res=Db::name("user")->where("id",$this->auth->id)->find();
if($res){
return $this->success("请求成功",$res);
}else{
return $this->error("请求失败");
}
}
/**
*
* @return void
*/
... ...
... ... @@ -3448,3 +3448,151 @@
[ info ] [ RUN ] app\api\controller\Car->selectcarbyroute[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2024-03-13T20:24:45+08:00 ] 127.0.0.1 POST netcar.com/index.php/api/car/switching_driver
[运行时间:0.441992s] [吞吐率:2.26req/s] [内存消耗:3,830.27kb] [文件加载:81]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000013s ]
[ info ] [ CACHE ] INIT File
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.001828s ]
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000546s ]
[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\thinkphp\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000028s ]
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'car',
2 => 'switching_driver',
),
)
[ info ] [ HEADER ] array (
'content-length' => '0',
'connection' => 'keep-alive',
'accept-encoding' => 'gzip, deflate, br',
'host' => 'netcar.com',
'accept' => '*/*',
'user-agent' => 'Apifox/1.0.0 (https://apifox.com)',
'token' => '7e1da6b7-28fe-44c6-8a2d-118e07fec52c',
'content-type' => '',
)
[ info ] [ PARAM ] array (
)
[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\public/../application/api\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000963s ]
[ info ] [ TOKEN ] INIT Mysql
[ info ] [ DB ] INIT mysql
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.003089s ]
[ info ] [ RUN ] app\api\controller\Car->switching_driver[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2024-03-13T20:25:49+08:00 ] 127.0.0.1 POST netcar.com/index.php/api/car/switching_driver
[运行时间:0.445123s] [吞吐率:2.25req/s] [内存消耗:3,830.61kb] [文件加载:81]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000013s ]
[ info ] [ CACHE ] INIT File
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.001802s ]
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000523s ]
[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\thinkphp\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000013s ]
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'car',
2 => 'switching_driver',
),
)
[ info ] [ HEADER ] array (
'content-length' => '0',
'connection' => 'keep-alive',
'accept-encoding' => 'gzip, deflate, br',
'host' => 'netcar.com',
'accept' => '*/*',
'user-agent' => 'Apifox/1.0.0 (https://apifox.com)',
'token' => '7e1da6b7-28fe-44c6-8a2d-118e07fec52c',
'content-type' => '',
)
[ info ] [ PARAM ] array (
)
[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\public/../application/api\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000892s ]
[ info ] [ TOKEN ] INIT Mysql
[ info ] [ DB ] INIT mysql
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.002835s ]
[ info ] [ RUN ] app\api\controller\Car->switching_driver[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2024-03-13T20:27:05+08:00 ] 127.0.0.1 GET netcar.com/index.php/api/car/switching_user
[运行时间:0.354950s] [吞吐率:2.82req/s] [内存消耗:3,851.35kb] [文件加载:81]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000015s ]
[ info ] [ CACHE ] INIT File
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.001790s ]
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000527s ]
[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\thinkphp\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000014s ]
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'car',
2 => 'switching_user',
),
)
[ info ] [ HEADER ] array (
'connection' => 'keep-alive',
'accept-encoding' => 'gzip, deflate, br',
'host' => 'netcar.com',
'accept' => '*/*',
'user-agent' => 'Apifox/1.0.0 (https://apifox.com)',
'token' => '7e1da6b7-28fe-44c6-8a2d-118e07fec52c',
'content-length' => '',
'content-type' => '',
)
[ info ] [ PARAM ] array (
)
[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\public/../application/api\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000857s ]
[ info ] [ TOKEN ] INIT Mysql
[ info ] [ DB ] INIT mysql
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.002901s ]
[ info ] [ RUN ] app\api\controller\Car->switching_user[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2024-03-13T20:27:17+08:00 ] 127.0.0.1 POST netcar.com/index.php/api/car/switching_driver
[运行时间:0.444814s] [吞吐率:2.25req/s] [内存消耗:3,831.80kb] [文件加载:81]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000020s ]
[ info ] [ CACHE ] INIT File
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002020s ]
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000568s ]
[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\thinkphp\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000017s ]
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'car',
2 => 'switching_driver',
),
)
[ info ] [ HEADER ] array (
'content-length' => '0',
'connection' => 'keep-alive',
'accept-encoding' => 'gzip, deflate, br',
'host' => 'netcar.com',
'accept' => '*/*',
'user-agent' => 'Apifox/1.0.0 (https://apifox.com)',
'token' => '7e1da6b7-28fe-44c6-8a2d-118e07fec52c',
'content-type' => '',
)
[ info ] [ PARAM ] array (
)
[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\public/../application/api\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000889s ]
[ info ] [ TOKEN ] INIT Mysql
[ info ] [ DB ] INIT mysql
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.003091s ]
[ info ] [ RUN ] app\api\controller\Car->switching_driver[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
[ info ] [ LOG ] INIT File
... ...