chuweiqiang пре 1 година
родитељ
комит
a8a01d8f3f
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      app/admin/controller/Login.php
  2. 1 1
      app/data/controller/shop/Goods.php

+ 1 - 1
app/admin/controller/Login.php

@@ -145,7 +145,7 @@ class Login extends Controller
             }
             /*! 用户信息验证 */
             $map = ['username' => $data['username'],'usertype'=>$data['usertype'], 'is_deleted' => 0];
-            $user = SystemUser::mk()->where($map)->findOrEmpty();
+            $user = SystemUser::mk()->where($map)->order('id','desc')->findOrEmpty();
             if ($user->isEmpty()) {
                 $this->app->session->set('LoginInputSessionError', true);
                 $this->error('登录账号或密码错误,请重新输入!');

+ 1 - 1
app/data/controller/shop/Goods.php

@@ -245,7 +245,7 @@ class Goods extends Controller
             }
 
             $data['admin_id']=AdminService::getUserId();
-            if($data['admin_id'] == 10000){
+            if($data['admin_id'] != 10000){
                 $data['examine']=0;
             }
 //            $data['examine']=0;