[8] ErrorException in ContentModel.php line 12

未定义数组索引: mid

  1. use think\Model;
  2. use think\Db;
  3. class ContentModel extends Model
  4. {
  5. protected $name='content';
  6. public function getContentByCon($con)
  7. {
  8. $tabname = db('diymodel')->where(['id'=>$con['mid']])->value('tabname');
  9. $info = db('diy_'.$tabname)->where(['conid'=>$con['vid']])->find();
  10. if ($info) {
  11. $con = array_merge($con, $info);
  12. }
  13. foreach ($con as $k => $v) {
  14. $con[$k] = disablewords($v);//替换禁用词
  15. if (config('sys.pc_mip')) {
  16. $con[$k] = str_replace("<img", '<mip-img', $v);

Exception Datas

Error Context
con { "ys_title": null }