search

Home  >  Q&A  >  body text

After clicking to log in, it still prompts that the verification code is wrong, but the verification code is correct. Is it because the database is not connected?

<?php
namespace app\index\Controller;
use  app\index\Controller\Base;
use  think\Request;
use app\index\model\User as UserModel;
class User extends Base
{
    public function login()
    {
       return $this-> view ->fetch();
       }


       public function checklogin(Request $request)
       {//初始返回参数
         //$status = 0;##

             //Data table query, return model object
            $user = UserModel::get($map);
                                                                                                                                                                                                                             // ,Please check';
       } else {
                                                     

致明致明1918 days ago1206

reply all(2)I'll reply

  • 致明

    致明2019-09-27 18:12:31

    Can you please help me point it out? Thank you.

    reply
    0
  • 血脉仙境

    血脉仙境2019-09-27 17:46:37

    jrhhy Are you sure you got it right? ? ? ?


    reply
    0
  • Cancelreply