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

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

1 .打开app\ide\libs\sysplugins\smarty_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","'id'in(".implode(,ˊ,ˊjob_ids).") and state and status=0 and r_status=1","id");

php 复制代码
		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. 打开app\include\libs\sysplugins\smarty_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","'zid'in(".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","'zid'in(".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];
            }
        }`
相关推荐
Kika写代码10 小时前
【微信小程序】页面跳转基础 | 我的咖啡店-综合实训
服务器·微信小程序·小程序
栗子~~11 小时前
集成 jacoco 插件,查看单元测试覆盖率
缓存·单元测试·log4j
源码哥_博纳软云11 小时前
JAVA同城服务场馆门店预约系统支持H5小程序APP源码
java·开发语言·微信小程序·小程序·微信公众平台
禾高网络11 小时前
租赁小程序成品|租赁系统搭建核心功能
java·人工智能·小程序
YUJIAN。13 小时前
使用uniapp开发微信小程序-框架搭建
微信小程序·小程序·uni-app
关你西红柿子14 小时前
小程序app封装公用顶部筛选区uv-drop-down
前端·javascript·vue.js·小程序·uv
V+zmm1013414 小时前
基于小程序宿舍报修系统的设计与实现ssm+论文源码调试讲解
java·小程序·毕业设计·mvc·ssm
Hello.Reader20 小时前
Redis热点数据管理全解析:从MySQL同步到高效缓存的完整解决方案
redis·mysql·缓存
麦香--老农21 小时前
windows 钉钉缓存路径不能修改 默认C盘解决方案
缓存·钉钉
V+zmm1013421 小时前
基于微信小程序的乡村政务服务系统springboot+论文源码调试讲解
java·微信小程序·小程序·毕业设计·ssm