作者 郭文星

123

@@ -147,6 +147,18 @@ class Car extends Api @@ -147,6 +147,18 @@ class Car extends Api
147 } 147 }
148 } 148 }
149 /** 149 /**
  150 + * 切换司机
  151 + * @return void
  152 + */
  153 + public function switching_user(){
  154 + $res=Db::name("user")->where("id",$this->auth->id)->find();
  155 + if($res){
  156 + return $this->success("请求成功",$res);
  157 + }else{
  158 + return $this->error("请求失败");
  159 + }
  160 + }
  161 + /**
150 * 162 *
151 * @return void 163 * @return void
152 */ 164 */
@@ -3448,3 +3448,151 @@ @@ -3448,3 +3448,151 @@
3448 [ info ] [ RUN ] app\api\controller\Car->selectcarbyroute[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ] 3448 [ info ] [ RUN ] app\api\controller\Car->selectcarbyroute[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
3449 [ info ] [ DB ] INIT mysql 3449 [ info ] [ DB ] INIT mysql
3450 [ info ] [ LOG ] INIT File 3450 [ info ] [ LOG ] INIT File
  3451 +---------------------------------------------------------------
  3452 +[ 2024-03-13T20:24:45+08:00 ] 127.0.0.1 POST netcar.com/index.php/api/car/switching_driver
  3453 +[运行时间:0.441992s] [吞吐率:2.26req/s] [内存消耗:3,830.27kb] [文件加载:81]
  3454 +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000013s ]
  3455 +[ info ] [ CACHE ] INIT File
  3456 +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.001828s ]
  3457 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000546s ]
  3458 +[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\thinkphp\lang\zh-cn.php
  3459 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000028s ]
  3460 +[ info ] [ ROUTE ] array (
  3461 + 'type' => 'module',
  3462 + 'module' =>
  3463 + array (
  3464 + 0 => 'api',
  3465 + 1 => 'car',
  3466 + 2 => 'switching_driver',
  3467 + ),
  3468 +)
  3469 +[ info ] [ HEADER ] array (
  3470 + 'content-length' => '0',
  3471 + 'connection' => 'keep-alive',
  3472 + 'accept-encoding' => 'gzip, deflate, br',
  3473 + 'host' => 'netcar.com',
  3474 + 'accept' => '*/*',
  3475 + 'user-agent' => 'Apifox/1.0.0 (https://apifox.com)',
  3476 + 'token' => '7e1da6b7-28fe-44c6-8a2d-118e07fec52c',
  3477 + 'content-type' => '',
  3478 +)
  3479 +[ info ] [ PARAM ] array (
  3480 +)
  3481 +[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\public/../application/api\lang\zh-cn.php
  3482 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000963s ]
  3483 +[ info ] [ TOKEN ] INIT Mysql
  3484 +[ info ] [ DB ] INIT mysql
  3485 +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.003089s ]
  3486 +[ info ] [ RUN ] app\api\controller\Car->switching_driver[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
  3487 +[ info ] [ LOG ] INIT File
  3488 +---------------------------------------------------------------
  3489 +[ 2024-03-13T20:25:49+08:00 ] 127.0.0.1 POST netcar.com/index.php/api/car/switching_driver
  3490 +[运行时间:0.445123s] [吞吐率:2.25req/s] [内存消耗:3,830.61kb] [文件加载:81]
  3491 +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000013s ]
  3492 +[ info ] [ CACHE ] INIT File
  3493 +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.001802s ]
  3494 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000523s ]
  3495 +[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\thinkphp\lang\zh-cn.php
  3496 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000013s ]
  3497 +[ info ] [ ROUTE ] array (
  3498 + 'type' => 'module',
  3499 + 'module' =>
  3500 + array (
  3501 + 0 => 'api',
  3502 + 1 => 'car',
  3503 + 2 => 'switching_driver',
  3504 + ),
  3505 +)
  3506 +[ info ] [ HEADER ] array (
  3507 + 'content-length' => '0',
  3508 + 'connection' => 'keep-alive',
  3509 + 'accept-encoding' => 'gzip, deflate, br',
  3510 + 'host' => 'netcar.com',
  3511 + 'accept' => '*/*',
  3512 + 'user-agent' => 'Apifox/1.0.0 (https://apifox.com)',
  3513 + 'token' => '7e1da6b7-28fe-44c6-8a2d-118e07fec52c',
  3514 + 'content-type' => '',
  3515 +)
  3516 +[ info ] [ PARAM ] array (
  3517 +)
  3518 +[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\public/../application/api\lang\zh-cn.php
  3519 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000892s ]
  3520 +[ info ] [ TOKEN ] INIT Mysql
  3521 +[ info ] [ DB ] INIT mysql
  3522 +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.002835s ]
  3523 +[ info ] [ RUN ] app\api\controller\Car->switching_driver[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
  3524 +[ info ] [ LOG ] INIT File
  3525 +---------------------------------------------------------------
  3526 +[ 2024-03-13T20:27:05+08:00 ] 127.0.0.1 GET netcar.com/index.php/api/car/switching_user
  3527 +[运行时间:0.354950s] [吞吐率:2.82req/s] [内存消耗:3,851.35kb] [文件加载:81]
  3528 +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000015s ]
  3529 +[ info ] [ CACHE ] INIT File
  3530 +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.001790s ]
  3531 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000527s ]
  3532 +[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\thinkphp\lang\zh-cn.php
  3533 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000014s ]
  3534 +[ info ] [ ROUTE ] array (
  3535 + 'type' => 'module',
  3536 + 'module' =>
  3537 + array (
  3538 + 0 => 'api',
  3539 + 1 => 'car',
  3540 + 2 => 'switching_user',
  3541 + ),
  3542 +)
  3543 +[ info ] [ HEADER ] array (
  3544 + 'connection' => 'keep-alive',
  3545 + 'accept-encoding' => 'gzip, deflate, br',
  3546 + 'host' => 'netcar.com',
  3547 + 'accept' => '*/*',
  3548 + 'user-agent' => 'Apifox/1.0.0 (https://apifox.com)',
  3549 + 'token' => '7e1da6b7-28fe-44c6-8a2d-118e07fec52c',
  3550 + 'content-length' => '',
  3551 + 'content-type' => '',
  3552 +)
  3553 +[ info ] [ PARAM ] array (
  3554 +)
  3555 +[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\public/../application/api\lang\zh-cn.php
  3556 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000857s ]
  3557 +[ info ] [ TOKEN ] INIT Mysql
  3558 +[ info ] [ DB ] INIT mysql
  3559 +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.002901s ]
  3560 +[ info ] [ RUN ] app\api\controller\Car->switching_user[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
  3561 +[ info ] [ LOG ] INIT File
  3562 +---------------------------------------------------------------
  3563 +[ 2024-03-13T20:27:17+08:00 ] 127.0.0.1 POST netcar.com/index.php/api/car/switching_driver
  3564 +[运行时间:0.444814s] [吞吐率:2.25req/s] [内存消耗:3,831.80kb] [文件加载:81]
  3565 +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000020s ]
  3566 +[ info ] [ CACHE ] INIT File
  3567 +[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002020s ]
  3568 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000568s ]
  3569 +[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\thinkphp\lang\zh-cn.php
  3570 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000017s ]
  3571 +[ info ] [ ROUTE ] array (
  3572 + 'type' => 'module',
  3573 + 'module' =>
  3574 + array (
  3575 + 0 => 'api',
  3576 + 1 => 'car',
  3577 + 2 => 'switching_driver',
  3578 + ),
  3579 +)
  3580 +[ info ] [ HEADER ] array (
  3581 + 'content-length' => '0',
  3582 + 'connection' => 'keep-alive',
  3583 + 'accept-encoding' => 'gzip, deflate, br',
  3584 + 'host' => 'netcar.com',
  3585 + 'accept' => '*/*',
  3586 + 'user-agent' => 'Apifox/1.0.0 (https://apifox.com)',
  3587 + 'token' => '7e1da6b7-28fe-44c6-8a2d-118e07fec52c',
  3588 + 'content-type' => '',
  3589 +)
  3590 +[ info ] [ PARAM ] array (
  3591 +)
  3592 +[ info ] [ LANG ] D:\tyobject\wyc.tenyes.cn\public/../application/api\lang\zh-cn.php
  3593 +[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000889s ]
  3594 +[ info ] [ TOKEN ] INIT Mysql
  3595 +[ info ] [ DB ] INIT mysql
  3596 +[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.003091s ]
  3597 +[ info ] [ RUN ] app\api\controller\Car->switching_driver[ D:\tyobject\wyc.tenyes.cn\application\api\controller\Car.php ]
  3598 +[ info ] [ LOG ] INIT File