|
@@ -16,7 +16,7 @@ use app\common\model\TalentCondition;
|
|
|
*/
|
|
|
class VerifyApi {
|
|
|
|
|
|
- public static function getTalentInfoById($id) {
|
|
|
+ public static function getTalentInfoById($id,$isAdmin = false) {//添加admin只为区别导入数据管理端的显示差异
|
|
|
$where = [];
|
|
|
$where[] = ["id", "=", $id];
|
|
|
$info = Talent::findOrEmpty($id)->toArray();
|
|
@@ -82,9 +82,11 @@ class VerifyApi {
|
|
|
if (strtotime($timeStart)) {
|
|
|
$tmp_time = date("Y-m-d", strtotime($timeStart));
|
|
|
$qz_talent_info[1] = implode(":", [$tmp1, $tmp_time]);
|
|
|
- $batch_info = NoticeModel::where('batch',$tmp_time)->find();
|
|
|
- if($batch_info){
|
|
|
- $qz_talent_info[1] = "<a target='_blank' href='/common/notice/view/id/" . $batch_info['id'] ."'>".$qz_talent_info[1]."</a>";
|
|
|
+ if($isAdmin){
|
|
|
+ $batch_info = NoticeModel::where('batch',$tmp_time)->find();
|
|
|
+ if($batch_info){
|
|
|
+ $qz_talent_info[1] = "<a target='_blank' href='/common/notice/view/id/" . $batch_info['id'] ."'>".$qz_talent_info[1]."</a>";
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (strtotime($timeEnd)) {
|
|
@@ -100,9 +102,11 @@ class VerifyApi {
|
|
|
if (strtotime($timeStart)) {
|
|
|
$tmp_time = date("Y-m-d", strtotime($timeStart));
|
|
|
$fj_talent_info[0] = implode(":", [$tmp1, $tmp_time]);
|
|
|
- $batch_info = NoticeModel::where('batch',$tmp_time)->find();
|
|
|
- if($batch_info){
|
|
|
- $fj_talent_info[0] = "<a target='_blank' href='/common/notice/view/id/" . $batch_info['id'] ."'>".$fj_talent_info[0]."</a>";
|
|
|
+ if($isAdmin){
|
|
|
+ $batch_info = NoticeModel::where('batch',$tmp_time)->find();
|
|
|
+ if($batch_info){
|
|
|
+ $fj_talent_info[0] = "<a target='_blank' href='/common/notice/view/id/" . $batch_info['id'] ."'>".$fj_talent_info[0]."</a>";
|
|
|
+ }
|
|
|
}
|
|
|
if (strtotime($validYear)) {
|
|
|
$fj_talent_info[2] = implode(":", [$tmp2, date("Y-m-d", strtotime($validYear))]);
|