【声明】关于六久阁私自出售我公司dedecms小程序插件声明
发布时间:2021-08-31 09:29:01查看:0dedecms小程序插件toplist接口附表bug修复 
找到index.php里边的toplist接口大概1209行的代码:
  1. if(!empty($res2)){ 
  2.                             foreach ($res2 as $m => $v) { 
  3.                                 $temp[$v['aid']] = $v;//把aid变成键值   
  4.                             } 
  5.                             foreach($r as $n =>$re){ 
  6.                                 if (isset($r[$n])){ 
  7.                                     $r[$n] = array_merge($temp[$re['id']], $r[$n]); 
  8.                                     $r[$n]['body'] = imgAllPath($r[$n]['body']); 
  9.                                     $r[$n]['arcimglist'] = getAllimg($r[$n]['body']); 
  10.                                 }  
  11.                             }  
  12.                         } 

改成:
  1. if(!empty($res2)){ 
  2.                             foreach ($res2 as $m => $v) { 
  3.                                 $temp[$v['aid']] = $v;//把aid变成键值   
  4.                             } 
  5.                             foreach($r as $n =>$re){ 
  6.                                 if (isset($r[$n])){ 
  7.                                     $r[$n] = array_merge($temp[$re['id']], $r[$n]); 
  8.                                     $r[$n]['body'] = imgAllPath($r[$n]['body']); 
  9.                                     $r[$n]['arcimglist'] = getAllimg($r[$n]['body']); 
  10.                                 }  
  11.                             }  
  12.                         } 

拒绝六久阁,拒绝无耻抄袭


版权声明:本文为原创文章,未经允许不得转载。https://doc.tengcee.com/dedecms/question/186.html

服务热线

15137100750

我知道你不会打


但是我还是要写


你懂得!

微信二维码

QQ群二维码