feat: 删除无用代码
This commit is contained in:
parent
7431a96291
commit
eb91a7b9a3
|
|
@ -3,7 +3,6 @@
|
||||||
namespace app\worker\controller;
|
namespace app\worker\controller;
|
||||||
|
|
||||||
use app\common\controller\WorkerApi;
|
use app\common\controller\WorkerApi;
|
||||||
use think\Request;
|
|
||||||
|
|
||||||
class Worker extends WorkerApi
|
class Worker extends WorkerApi
|
||||||
{
|
{
|
||||||
|
|
@ -25,13 +24,6 @@ class Worker extends WorkerApi
|
||||||
//存在师傅id,直接登录
|
//存在师傅id,直接登录
|
||||||
if ($workerVendor['worker_id']) {
|
if ($workerVendor['worker_id']) {
|
||||||
$this->workerLogin($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);
|
$this->success('登录成功', $this->user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user