From 96b4db3a6607c1b089b3f450b121e5a2e5ab953d Mon Sep 17 00:00:00 2001
From: chengkun <chengkun@ishangstudy.com>
Date: Thu, 22 May 2025 11:22:12 +0800
Subject: [PATCH] 提交

---
 app/model/resume.model.php           |    6 ++----
 app/controller/resume/show.class.php |    2 --
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/app/controller/resume/show.class.php b/app/controller/resume/show.class.php
index 17d9a2b..0ea427d 100644
--- a/app/controller/resume/show.class.php
+++ b/app/controller/resume/show.class.php
@@ -100,9 +100,7 @@
         }
         
         $this->yunset("eid", $id);
-        
         $resume_expect = $resumeM->getInfoByEid(array('eid' => $id, 'uid' => $this->uid, 'usertype' => $this->usertype, 'spid' => $this->spid));
-        
         if (empty($resume_expect)) {
             
             $this->ACT_msg($this->config['sy_weburl'], '没有找到该人才!');
diff --git a/app/model/resume.model.php b/app/model/resume.model.php
index 830313a..bc1a7da 100644
--- a/app/model/resume.model.php
+++ b/app/model/resume.model.php
@@ -1223,12 +1223,9 @@
         if (empty($eid)) {
             return $res;
         }
-        
         $cache = $this->getClass(array('user', 'city', 'job', 'hy', 'industry'));
-        
         //查询简历信息
         $expect = $this->getExpect(array('id' => $eid), array('cache' => $cache, 'needCache' => 1));
-        
         if (empty($expect)) {
             return $res;
         }
@@ -1253,6 +1250,7 @@
         $resume['username_n'] = $this->setUsernameShow(array('nametype' => $resume['nametype'], 'name' => $resume['name'], 'eid' => $eid, 'sex' => $resume['sex']));
         //图片显示处理
         $resume['photo'] = $this->setResumePhotoShow(array('photo' => $resume['photo'], 'defphoto' => $resume['defphoto'], 'photo_status' => $resume['photo_status'], 'phototype' => $resume['phototype'], 'sex' => $resume['sex']));
+        
         //年龄
         if (!empty($resume['birthday'])) {
             $resume['age'] = date('Y') - date('Y', strtotime($resume['birthday']));
@@ -6017,7 +6015,7 @@
                 
                 $return['worknum'] = $worknum > 0 ? $worknum : 0;
                 
-                $return['workavg'] = $workavg > 11 ? avgToYm($workavg) : $workavg;
+                $return['workavg'] = $workavg;
                 
                 $return['workmin'] = date('Y.m', $workmin);
                 $return['workmax'] = $workmax == 0 ? '至今' : date('Y.m', $workmax);

--
Gitblit v1.9.0