chengkun
2025-05-20 8642932b71c25e340c9b76d4432de77f9caeed36
提交
2 files modified
25 ■■■■■ changed files
app/model/job.model.php 5 ●●●●● patch | view | raw | blame | history
member/com/model/jobadd.class.php 20 ●●●●● patch | view | raw | blame | history
app/model/job.model.php
@@ -1099,7 +1099,6 @@
        $id     =   $data['id'];
        $uid    =   intval($data['uid']);
        unset($post['com_id']);
        $spid   =   !empty($data['spid']) ? intval($data['spid']) : '';
@@ -1120,6 +1119,7 @@
        $com                =   $this->select_once('company', array('uid' => $uid), '`uid`,`name`, `r_status`,`logo`,`provinceid`,`pr`,`mun`,`x`,`y`,`did`');
        if ($data['utype'] == 'admin') {    //后台修改添加不需要审核
            if ($post['r_status'] == 1) {
@@ -1132,7 +1132,6 @@
            //  查询企业认证是否认证成功
            $companycert    =   $this->select_once('company_cert', array('uid' => $uid, 'type' => 3), '`uid`,`type`,`status`');
            //  在企业用户设置里企业发布职位审核未开启的情况下,未审核和未通过的企业,发布职位默认是未审核的。
            if ($com['r_status'] != 1) {
@@ -1228,7 +1227,7 @@
                $this -> update_once('wxpub_twtask',array('jobname'=>$job_data['name'],'comname'=>$job_data['com_name']),array('jobid'=>$id));
                $this -> update_once('fav_job',array('job_name'=>$job_data['name']),array('job_id'=>$id));
                // 修改名企更新时间
                $this -> update_once('hot_job',array('lastupdate'=>time()),array('uid'=>$uid));
                $this -> update_once('hotjob',array('lastupdate'=>time()),array('uid'=>$uid));
            }
            
            if ($data['utype'] != 'admin') { 
member/com/model/jobadd.class.php
@@ -1,11 +1,9 @@
<?php
class jobadd_controller extends company
{
class jobadd_controller extends company {
    function index_action()
    {
    function index_action() {
        
        $company    =   $this -> comInfo['info'];
        if(!$company['name'] || ! $company['provinceid'] || (!$company['linktel'] && ! $company['linkphone'])){
@@ -131,8 +129,7 @@
        $this->com_tpl('jobadd');
    }
    function edit_action()
    {
    function edit_action() {
        $jobM       =   $this->MODEL('job');
        $statis     =   $this->company_satic();
@@ -165,8 +162,6 @@
        }
        
        $company = $this -> comInfo['info'];
        if ($company['linktel'] == '' && $company['linkphone']) {
            $company['linktel'] = $company['linkphone'];
@@ -197,7 +192,6 @@
    }
    function save_action(){
        if ($_POST) {
            
            $company    =   $this -> comInfo['info'];
@@ -273,7 +267,6 @@
                'zp_maxage'        => intval($_POST['zp_maxage'])
            );
            if($this->config['joblock']!=1 || empty($_POST['id'])){
                $post['name']    =    $_POST['name'];
@@ -317,8 +310,7 @@
        }
    }
    function getJobNum_action()
    {
    function getJobNum_action() {
        if ($_POST['uid']) {
            $statis = $this->company_satic();
@@ -333,8 +325,7 @@
    /**
     *  @desc 发布职位条件查询 
     */
    function jobCheck_action()
    {
    function jobCheck_action() {
        
        $jobM   =   $this->MODEL('job');
        $statisM=   $this->MODEL('statis');
@@ -357,4 +348,5 @@
        
    }
}
?>