[8] ErrorException in Shop.php line 458

未定义数组索引: shopid

  1. // $currentInfo['content'] = strip_tags($currentInfo['content']);
  2. if($currentInfo['content'])
  3. $currentInfo['content']=htmlspecialchars_decode($currentInfo['content']);
  4. //图片
  5. $currentInfo['imgs'] = Db::name('member_case_pic')->where('case_id', $cid)->column('prepath');
  6. //图片个数
  7. $currentInfo['imgsCount'] = count($currentInfo['imgs']);
  8. if (!$currentInfo) return $this->error("信息不存在");
  9. //店铺信息
  10. $shop = Db::name('member_shop')->field('shopname,shoplogo,shopmemo,shoptel,id')->where('id', $currentInfo['shopid'])->find();
  11. //店铺其他信息
  12. $otherInfo = Db::name('member_case')->alias('mc')
  13. ->field('ms.shopname,mc.id,mc.title,ms.vip,ms.shoptel,ms.shoplogo,mc.iftop,mc.vr,mc.click,mc.shopid,mc.prepath,IFNULL(c.name,mc.cname) as cname')
  14. ->join('community c', 'mc.cid=c.id', 'left')
  15. ->join('member_shop ms', 'ms.id=mc.shopid', 'left')
  16. ->where('mc.status', 1)
  17. ->where('mc.shopid', $currentInfo['shopid'])
  18. ->where('mc.id', '<>', $cid)
  19. ->where("ms.closetime=0 or ms.closetime>{$currentTime}")