本文介绍: phpyun 7.0补丁升级后由于缓存极致bug造成“网络招聘会”栏目不能显示,给小程序上架审核造成影响解决方法如下

最近Phpyun系统直接从6.44升级到了v7.0跨度非常大,以前都是0.1的标准升级现在直接跨度这么大升级内容很多,我看了下后台UI都改了 体验确实好了很多,老用户建议升级下,这次升级小程序不用重新上架,完美对接,但是有一个问题却出现了那就是升级后”网络招聘会”栏目不显示了,小程序也是,目前客服给的说法是是bug需要下一个版本里修复,。。。下一个版本又要一个月自己正在用这个功能还是自己动手吧!懂得看我教程不懂得也可以Q我2568478886分享给你请注明来自CSDN网友,我贴出代码文件对应得改过来

1.打开appidelibssyspluginssmarty_internal_compile_fairs.php 文件114行把原始代码改成如下代码
$jobidlist =

d

b

>

s

e

l

e

c

t

a

l

l

(

c

o

m

p

a

n

y

j

o

b

,

i

d

i

n

(

.

i

m

p

l

o

d

e

(

,

ˊ

,

ˊ

db->select_all(“company_job”,”`id` in (“.implode(‘,’,

db>selectall(companyjob,“‘idin(“.implode(,ˊ,ˊjob_ids).“) and state and status=0 and r_status=1”,“id”);


		if(is_array('.$name.')){
			foreach('.$name.' as $key=>$v){
				$array_zid[]=$v[id];
			}
            if(!empty($array_zid)){
                $rows=$db->select_all("zhaopinhui_com","`zid` in (".implode(',',$array_zid).") and `status`=1","`uid`,`zid`,`jobid`");
    			$zph_com=array();
                $job_ids=array();
                foreach($rows as $va){
                    
					$arr_uid[]=$a_uid[$va[zid]][]=$va[uid];

                    if($va[jobid]){

                        $job_ids = array_unique(array_merge($job_ids,@explode(",",$va[jobid])));

                    }
                    
				}
                
                if(!empty($arr_uid)){
                    $arr_uid  =  array_unique($arr_uid);
                    $joblist = $db->select_all("company_job","`uid` in (".implode(',',$arr_uid).") and `state`=1 and `status`=0 and `r_status`=1 GROUP BY `uid`","`uid`,count(*) as `num`");

                    $comalljobnum = array();

                    foreach($joblist as $val){
                        
                        $comalljobnum[$val[uid]] = $val[num];

                    }
                    
                    $jobidlist = $db->select_all("company_job","`id` in (".implode(',',$job_ids).") and `state`=1 and `status`=0 and `r_status`=1","`id`");

                    $jidarr =   array();

                    foreach($jobidlist as $jidv){
                        $jidarr[] = $jidv[id];
                    }

                    foreach($rows as $k=>$v){

                        $rows[$k][jobnum] = 0;

                        if($v["jobid"]){

                            $jobidarr = @explode(",",$v["jobid"]);

                            foreach($jobidarr as $jv){

                                if(in_array($jv,$jidarr)){

                                    $rows[$k][jobnum]++;

                                }

                            }
  1. 打开appincludelibssyspluginssmarty_internal_compile_zphnet.php页面
  2. 75行内容:$usercount =

    d

    b

    >

    s

    e

    l

    e

    c

    t

    a

    l

    l

    (

    z

    p

    h

    n

    e

    t

    u

    s

    e

    r

    ,

    z

    i

    d

    i

    n

    (

    .

    i

    m

    p

    l

    o

    d

    e

    (

    ,

    ˊ

    ,

    ˊ

    db->select_all(“zphnet_user”,”`zid` in (“.implode(‘,’,

    db>selectall(zphnetuser,“‘zidin(“.implode(,ˊ,ˊzids).“) and usertype=1 GROUP BY zid”,“zid,count(*) as num”);

  3. `

$comlist =

d

b

>

s

e

l

e

c

t

a

l

l

(

z

p

h

n

e

t

c

o

m

,

z

i

d

i

n

(

.

i

m

p

l

o

d

e

(

,

ˊ

,

ˊ

db->select_all(“zphnet_com”,”`zid` in (“.implode(‘,’,

db>selectall(zphnetcom,“‘zidin(“.implode(,ˊ,ˊzids).“) and status=1”,“zid,uid,jobid”);
$cuids = array();

j

o

b

i

d

s

=

a

r

r

a

y

(

)

;

f

o

r

e

a

c

h

(

job_ids=array(); foreach(

jobids=array();foreach(comlist as

c

o

m

k

=

>

comk=>

comk=>comv){
$cuids[] = $comv[“uid”];

            if($comv[jobid]){

                $job_ids = array_unique(array_merge($job_ids,@explode(",",$comv[jobid])));

            }
        }
        $jobarr = array();
        if(!empty($cuids)){
            $cuids  =  array_unique($cuids);
            $jobs = $db->select_all("company_job","`uid` in (".@implode(",",$cuids).") AND `state`=1 AND `r_status`=1 AND `status`='0' GROUP BY `uid`","count(*) as num,uid");

            foreach($jobs as $jk=>$jv){

                $jobarr[$jv["uid"]] = $jv["num"];
            }

            $jobidlist = $db->select_all("company_job","`id` in (".implode(',',$job_ids).") and `state`=1 and `status`=0 and `r_status`=1","`id`");

            $jidarr =   array();

            foreach($jobidlist as $jidv){
                $jidarr[] = $jidv[id];
            }
        }`

原文地址:https://blog.csdn.net/qq_43483900/article/details/135756506

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。

如若转载,请注明出处:http://www.7code.cn/show_62265.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注