Commit ae61cec8 authored by clone's avatar clone

bug

parent a60c7250
...@@ -53,7 +53,7 @@ class Login extends Basic ...@@ -53,7 +53,7 @@ class Login extends Basic
Session::set("userId",$result[0]["id"]); Session::set("userId",$result[0]["id"]);
Session::set("lastLoginTime",time()); Session::set("lastLoginTime",time());
$this->redirect('/index/banner'); $this->redirect('/admin.php/index/banner');
} else { } else {
return view("/login/login", [ "msg" => "用户名或密码错误" ]); return view("/login/login", [ "msg" => "用户名或密码错误" ]);
} }
......
...@@ -18,20 +18,20 @@ ...@@ -18,20 +18,20 @@
<!--</ul>--> <!--</ul>-->
<!--</li>--> <!--</li>-->
<li role="presentation" class="active"> <li role="presentation" class="active">
<a href="/index/banner"> 首页轮播图</a> <a href="/admin.php/index/banner"> 首页轮播图</a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a href="/index/users_list"> 用户列表</a> <a href="/admin.php/index/users_list"> 用户列表</a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a href="/index/watch_shop"> 预约看铺列表</a> <a href="/admin.php/index/watch_shop"> 预约看铺列表</a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a href="/index/transfer_list"> 委托转铺列表</a> <a href="/admin.php/index/transfer_list"> 委托转铺列表</a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a href="/index/version"> 版本号管理</a> <a href="/admin.php/index/version"> 版本号管理</a>
</li> </li>
</ul> </ul>
......
...@@ -22,7 +22,7 @@ class AppVersion extends Model ...@@ -22,7 +22,7 @@ class AppVersion extends Model
$type = $type == 'android' ? 1 : 0; $type = $type == 'android' ? 1 : 0;
$param["type"] = $type; $param["type"] = $type;
$param["is_del"] = 0; $param["is_del"] = 0;
return $this->field("id,version_no,type,create_time,intro") return $this->field("id,version_no,type,create_time,intro,app_path")
->where($param) ->where($param)
->order("id desc") ->order("id desc")
->limit(1) ->limit(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment