diff --git a/application/worker/controller/Worker.php b/application/worker/controller/Worker.php index c33688a..3ab5b39 100644 --- a/application/worker/controller/Worker.php +++ b/application/worker/controller/Worker.php @@ -3,7 +3,6 @@ namespace app\worker\controller; use app\common\controller\WorkerApi; -use think\Request; class Worker extends WorkerApi { @@ -25,13 +24,6 @@ class Worker extends WorkerApi //存在师傅id,直接登录 if ($workerVendor['worker_id']) { $this->workerLogin($workerVendor['worker_id']); - $result = [ - 'code' => 1, - 'msg' => '成功', - 'time' => Request::instance()->server('REQUEST_TIME'), - 'data' => $this->user, - ]; - return json($result); $this->success('登录成功', $this->user); }