作者 lyh

gx

@@ -34,7 +34,7 @@ class NewsController extends BaseController @@ -34,7 +34,7 @@ class NewsController extends BaseController
34 $v['route'] = RouteMap::getRoute(RouteMap::SOURCE_NEWS, $v['id'], $this->user['project_id']); 34 $v['route'] = RouteMap::getRoute(RouteMap::SOURCE_NEWS, $v['id'], $this->user['project_id']);
35 $v['url'] = $this->getProjectDomain() . $v['route']; 35 $v['url'] = $this->getProjectDomain() . $v['route'];
36 $v['image_link'] = getImageUrl($v['image']); 36 $v['image_link'] = getImageUrl($v['image']);
37 -// $v['operator_name'] = ; 37 + $v['operator_name'] = (new User())->read(['id'=>'operator_id'])['name'];
38 $lists['list'][$k] = $v; 38 $lists['list'][$k] = $v;
39 } 39 }
40 } 40 }
@@ -30,7 +30,8 @@ class LoginLogic extends BaseLogic @@ -30,7 +30,8 @@ class LoginLogic extends BaseLogic
30 30
31 public function login() 31 public function login()
32 { 32 {
33 - $manage = $this->model->select('id', 'name', 'password', 'token', 'status', 'gid', 'dept_id')->where('mobile', $this->requestAll['mobile'])->first(); 33 + $manage = $this->model->select('id', 'name', 'password', 'token', 'status', 'gid', 'dept_id')
  34 + ->where('mobile', $this->requestAll['mobile'])->first();
34 if (!$manage){ 35 if (!$manage){
35 $this->fail('登录用户名不存在'); 36 $this->fail('登录用户名不存在');
36 } 37 }