[8] ErrorException in Index.php line 141

未定义数组索引: name

  1. return $this->fetch('',['banner'=>$banner,'tel'=>$tel,'yptel'=>$yptel,'yttel'=>$yttel,'yltel'=>$yltel,'lptel'=>$lptel,'lttel'=>$lttel,'lltel'=>$lltel,'dptel'=>$dptel,'dttel'=>$dttel,'dltel'=>$dltel,'yzf'=>$yzf,'lzf'=>$lzf,'dzf'=>$dzf,'newstel'=>$newstel,'ytels'=>$ytels,'zimage1'=>$zimage1,'yimage'=>$yimage,'limage'=>$limage,'dimage'=>$dimage,'limit'=>$limit,'page'=>$page,'see_tel'=>$see_tel]);
  2. }
  3. public function show_tel(){
  4. $this->ltel();
  5. $show_tel=db('goods')->field('id,name,operator_type_id,city_id,money1,money2,zifei,beizhu,jieshao')->where(['id'=>input('id')])->find();
  6. $show_tel['name1']=substr($show_tel['name'] , 0 , 3);
  7. $show_tel['name2']=substr($show_tel['name'] , 3 , 4);
  8. $show_tel['name3']=substr($show_tel['name'] , 7 , 4);
  9. $show_tel['operator']=db('tel_type')->field('name')->where(['id'=>$show_tel['operator_type_id']])->find()['name'];
  10. $show_tel['city']=db('region')->field('name')->where(['id'=>$show_tel['city_id']])->find()['name'];
  11. $show_tel['money']=$show_tel['money1']+$show_tel['money2'];
  12. //获取ip
  13. $ip = $_SERVER['REMOTE_ADDR'];
  14. $see=db('see')->field('id,click')->where(['ip'=>$ip,'tel_id'=>$show_tel['id']])->find();
  15. if($see){
  16. //增加浏览次数

Call Stack

  1. in Index.php line 141
  2. at Error::appError(8, 'Undefined index: nam...', 'D:\freehost\hytlhw\w...', 141, ['show_tel' => ['name1' => false]]) in Index.php line 141
  3. at Index->show_tel()
  4. at