|
@@ -39,15 +39,6 @@ class Passport extends Controller
|
|
|
public function login()
|
|
|
{
|
|
|
if ($this->request->method() == 'GET') {
|
|
|
- UserAccessLog::doSave([
|
|
|
- 'user_id' => 0,
|
|
|
- 'path' => $this->request->action(),
|
|
|
- 'remark' => '',
|
|
|
- 'ip' => $this->request->ip(),
|
|
|
- 'store_id' => $this->getStoreId(),
|
|
|
- 'create_time' => time()
|
|
|
- ]);
|
|
|
-
|
|
|
$userId = UserService::getCurrentLoginUserId();
|
|
|
if ($userId){
|
|
|
return redirect('/index/index/index.html#goodsPosition');
|
|
@@ -78,15 +69,6 @@ class Passport extends Controller
|
|
|
public function register()
|
|
|
{
|
|
|
$form = $this->postForm();
|
|
|
- UserAccessLog::doSave([
|
|
|
- 'user_id' => 0,
|
|
|
- 'path' => $this->request->action(),
|
|
|
- 'remark' => json_encode($form),
|
|
|
- 'ip' => $this->request->ip(),
|
|
|
- 'store_id' => $this->getStoreId(),
|
|
|
- 'create_time' => time()
|
|
|
- ]);
|
|
|
-
|
|
|
// 执行登录
|
|
|
$LoginService = new LoginService;
|
|
|
if (!$LoginService->toRegister($form)) {
|